diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-11-09 13:31:11 -0800 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-01-26 15:46:32 +0900 |
commit | a60349aa38f11dbf26424c661cf141a8c45f8415 (patch) | |
tree | 7ddb776681baa7308304d4dc81adbaf9fdcc472f | |
parent | 5166966d12617e3c149575a72adb7834559380e8 (diff) | |
download | kernel-common-a60349aa38f11dbf26424c661cf141a8c45f8415.tar.gz kernel-common-a60349aa38f11dbf26424c661cf141a8c45f8415.tar.bz2 kernel-common-a60349aa38f11dbf26424c661cf141a8c45f8415.zip |
Input: lifebook - use "static inline" instead of "inline" in lifebook.h
For functions defined in header files we should use static inline rather
than inline, which breaks under the latest upstream gcc (which is really
gcc issue, but static inline is better suited regardless).
The related error (with allmodconfig under tile):
MODPOST 4002 modules
ERROR: "lifebook_detect" [drivers/input/mouse/psmouse.ko] undefined!
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Change-Id: I91e796454fca7015ed81fdc54f287668e48c5096
-rw-r--r-- | drivers/input/mouse/lifebook.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/mouse/lifebook.h b/drivers/input/mouse/lifebook.h index 4c4326c6f504..0baf02a70a99 100644 --- a/drivers/input/mouse/lifebook.h +++ b/drivers/input/mouse/lifebook.h @@ -16,14 +16,14 @@ void lifebook_module_init(void); int lifebook_detect(struct psmouse *psmouse, bool set_properties); int lifebook_init(struct psmouse *psmouse); #else -inline void lifebook_module_init(void) +static inline void lifebook_module_init(void) { } -inline int lifebook_detect(struct psmouse *psmouse, bool set_properties) +static inline int lifebook_detect(struct psmouse *psmouse, bool set_properties) { return -ENOSYS; } -inline int lifebook_init(struct psmouse *psmouse) +static inline int lifebook_init(struct psmouse *psmouse) { return -ENOSYS; } |