lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 16 Apr 2019 22:19:41 +0200
From:   Arnd Bergmann <arnd@...db.de>
To:     Alexander Viro <viro@...iv.linux.org.uk>
Cc:     linux-fsdevel@...r.kernel.org, y2038@...ts.linaro.org,
        linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...db.de>
Subject: [PATCH v3 03/26] compat_ioctl: avoid unused function warning for do_ioctl

The users are becoming rarer, and when the remaining ones are
all turned off, gcc warns about an unused function.

Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
 fs/compat_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 54f26a9fa9f2..2772b539674d 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -79,7 +79,7 @@
 	get_user(val, srcptr) || put_user(val, dstptr);	\
 })
 
-static int do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
+static inline int do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
 	int err;
 
-- 
2.20.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ