include: convert various register fcns to macros to avoid include chaining
The original implementations reference THIS_MODULE in an inline. We could include <linux/export.h>, but it is better to avoid chaining. Fortunately someone else already thought of this, and made a similar inline into a #define in <linux/device.h> for device_schedule_callback(), [see commit 523ded71] so follow that precedent here. Also bubble up any __must_check that were used on the prev. wrapper inline functions up one to the real __register functions, to preserve any prev. sanity checks that were used in those instances. Signed-off-by:Paul Gortmaker <paul.gortmaker@windriver.com>
Showing
- include/linux/bcma/bcma.h 3 additions, 4 deletionsinclude/linux/bcma/bcma.h
- include/linux/device.h 8 additions, 4 deletionsinclude/linux/device.h
- include/linux/gameport.h 8 additions, 9 deletionsinclude/linux/gameport.h
- include/linux/hid.h 5 additions, 4 deletionsinclude/linux/hid.h
- include/linux/i2c.h 3 additions, 4 deletionsinclude/linux/i2c.h
- include/linux/pci_hotplug.h 3 additions, 7 deletionsinclude/linux/pci_hotplug.h
- include/linux/serio.h 11 additions, 9 deletionsinclude/linux/serio.h
- include/linux/ssb/ssb.h 3 additions, 4 deletionsinclude/linux/ssb/ssb.h
- include/linux/uio_driver.h 5 additions, 5 deletionsinclude/linux/uio_driver.h
- include/linux/usb.h 5 additions, 4 deletionsinclude/linux/usb.h
- include/linux/uwb/umc.h 3 additions, 4 deletionsinclude/linux/uwb/umc.h
Loading
Please register or sign in to comment