]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
compat_ioctl: remove unused convert_in_user macro
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2019 10:22:38 +0000 (11:22 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:46 +0000 (17:23 +0200)
The last users are all gone, so let's remove the macro as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/compat_ioctl.c

index 1ed32cca2176ee7b80be6e551d2299e2410016e4..1e740f4406d30a30f77a5afa15847ce2b023dd9a 100644 (file)
 
 #include <linux/sort.h>
 
-#define convert_in_user(srcptr, dstptr)                        \
-({                                                     \
-       typeof(*srcptr) val;                            \
-                                                       \
-       get_user(val, srcptr) || put_user(val, dstptr); \
-})
-
 static int do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
        int err;