]> git.hungrycats.org Git - linux/commitdiff
struct input_device_id mustn't be userspace visible
authorAdrian Bunk <bunk@kernel.org>
Tue, 15 Jan 2008 22:44:33 +0000 (00:44 +0200)
committerAdrian Bunk <bunk@kernel.org>
Tue, 15 Jan 2008 22:44:33 +0000 (00:44 +0200)
struct input_device_id mustn't be userspace visible since
it uses kernel_ulong_t.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
include/linux/input.h

index 6d4cc3c110d6b375ab90fa3e979bbe0cbd33cbde..1a418a9419755439e4d04a2aaa473d4232f50d00 100644 (file)
@@ -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.