]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: mark some functions __must_check
authorDmitry Torokhov <dtor@insightbb.com>
Wed, 18 Jul 2007 05:20:58 +0000 (01:20 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 18 Jul 2007 05:20:58 +0000 (01:20 -0400)
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>
include/linux/input.h

index e02c6a66b2ba74fecdb015b202933541dc3f5257..adfbe4fcc1b2034841e2708e23eb8461841c7800 100644 (file)
@@ -1125,10 +1125,10 @@ static inline void input_set_drvdata(struct input_dev *dev, void *data)
        dev->private = data;
 }
 
-int input_register_device(struct input_dev *);
+int __must_check input_register_device(struct input_dev *);
 void input_unregister_device(struct input_dev *);
 
-int input_register_handler(struct input_handler *);
+int __must_check input_register_handler(struct input_handler *);
 void input_unregister_handler(struct input_handler *);
 
 int input_register_handle(struct input_handle *);