From e8a69d24cf98dae9d5087503344cc28e2383f915 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Wed, 16 Jan 2008 00:44:33 +0200 Subject: [PATCH] struct input_device_id mustn't be userspace visible struct input_device_id mustn't be userspace visible since it uses kernel_ulong_t. Signed-off-by: Adrian Bunk --- include/linux/input.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/input.h b/include/linux/input.h index 6d4cc3c110d6..1a418a941975 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -796,6 +796,8 @@ struct ff_effect { #define FF_MAX 0x7f +/* musn't be userspace visible since it uses kernel_ulong_t */ +#if defined(__KERNEL__) || defined (LINUX_MOD_DEVICETABLE_H) struct input_device_id { kernel_ulong_t flags; @@ -814,6 +816,7 @@ struct input_device_id { kernel_ulong_t driver_info; }; +#endif /* defined(__KERNEL__) || defined (LINUX_MOD_DEVICETABLE_H) */ /* * Structure for hotplug & device<->driver matching. -- 2.39.5