aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-01-16 00:44:33 +0200
committerAdrian Bunk <bunk@kernel.org>2008-01-16 00:44:33 +0200
commite8a69d24cf98dae9d5087503344cc28e2383f915 (patch)
treeebb79786b75885eee8cce77c7ee771c4fd985e44
parent16770f51251ce5bc5593abdc5f6c5e4b240205fd (diff)
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 <bunk@kernel.org>
-rw-r--r--include/linux/input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 6d4cc3c110d..1a418a94197 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.