Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2021 17:20:25 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 1fd26da926d5 - main - LinuxKPI: Put compat code under appropriate condition.
Message-ID:  <202106291720.15THKP09062363@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=1fd26da926d55bc0923b1218af65720dfaa4ca28

commit 1fd26da926d55bc0923b1218af65720dfaa4ca28
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2021-06-29 17:19:17 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2021-06-29 17:19:17 +0000

    LinuxKPI: Put compat code under appropriate condition.
    
    Reviewed by:            hselasky, emaste, kib
    Differential Revision:  https://reviews.freebsd.org/D30927
    MFC after:              2 weeks
---
 sys/compat/linuxkpi/common/src/linux_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_compat.c b/sys/compat/linuxkpi/common/src/linux_compat.c
index 4e949cdb91c4..3e1b2e517141 100644
--- a/sys/compat/linuxkpi/common/src/linux_compat.c
+++ b/sys/compat/linuxkpi/common/src/linux_compat.c
@@ -964,7 +964,7 @@ linux_file_ioctl_sub(struct file *fp, struct linux_file *filp,
 		/* fetch user-space pointer */
 		data = *(void **)data;
 	}
-#if defined(__amd64__)
+#ifdef COMPAT_FREEBSD32
 	if (SV_PROC_FLAG(td->td_proc, SV_ILP32)) {
 		/* try the compat IOCTL handler first */
 		if (fop->compat_ioctl != NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106291720.15THKP09062363>