diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-18 01:20:58 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-18 01:20:58 -0400 |
commit | 501cc54c4d2b0c2bbae1a6490b0e547be46fc09f (patch) | |
tree | 3c41ecdd42ae2fb2791cf103680835b4066f47d8 | |
parent | 018db6bb0d726c3683a5e1eb4621e728965db94c (diff) |
Input: mark some functions __must_check
Mark input_register_device() and input_register_handler() functions
as __must_check so authors of new drivers add error handling right
away.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | include/linux/input.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index e02c6a66b2ba..adfbe4fcc1b2 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1125,10 +1125,10 @@ static inline void input_set_drvdata(struct input_dev *dev, void *data) | |||
1125 | dev->private = data; | 1125 | dev->private = data; |
1126 | } | 1126 | } |
1127 | 1127 | ||
1128 | int input_register_device(struct input_dev *); | 1128 | int __must_check input_register_device(struct input_dev *); |
1129 | void input_unregister_device(struct input_dev *); | 1129 | void input_unregister_device(struct input_dev *); |
1130 | 1130 | ||
1131 | int input_register_handler(struct input_handler *); | 1131 | int __must_check input_register_handler(struct input_handler *); |
1132 | void input_unregister_handler(struct input_handler *); | 1132 | void input_unregister_handler(struct input_handler *); |
1133 | 1133 | ||
1134 | int input_register_handle(struct input_handle *); | 1134 | int input_register_handle(struct input_handle *); |