From: Andrew Morton Add return-value checking. [cornelia.huck@de.ibm.com: fix bus_rescan_devices()] Cc: "Randy.Dunlap" Cc: Greg KH Signed-off-by: Cornelia Huck Signed-off-by: Andrew Morton --- drivers/base/base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/base/base.h~drivers-base-check-errors drivers/base/base.h --- a/drivers/base/base.h~drivers-base-check-errors +++ a/drivers/base/base.h @@ -15,8 +15,8 @@ extern int system_bus_init(void); extern int cpu_dev_init(void); extern int attribute_container_init(void); -extern int bus_add_device(struct device * dev); -extern int bus_attach_device(struct device * dev); +extern int __must_check bus_add_device(struct device * dev); +extern int __must_check bus_attach_device(struct device * dev); extern void bus_remove_device(struct device * dev); extern struct bus_type *get_bus(struct bus_type * bus); extern void put_bus(struct bus_type * bus); _