Input: sentelic - use "static inline" instead of "inline"
authorKhem Raj <raj.khem@gmail.com>
Fri, 22 May 2015 16:56:29 +0000 (09:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 22 May 2015 17:59:54 +0000 (10:59 -0700)
gcc-5 defaults to gnu11 which used c99 inline semantics in c99 'inline' is
not externally visible unlike gnu89, therefore we use 'static inline' which
has same semantics between gnu89 and c99

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/sentelic.h

index aa697ece405b18a0ac7434560e2c191c6bd6dce6..42df9e3beae8c80d129f23692cd55501336e396a 100644 (file)
@@ -123,11 +123,11 @@ struct fsp_data {
 extern int fsp_detect(struct psmouse *psmouse, bool set_properties);
 extern int fsp_init(struct psmouse *psmouse);
 #else
-inline int fsp_detect(struct psmouse *psmouse, bool set_properties)
+static inline int fsp_detect(struct psmouse *psmouse, bool set_properties)
 {
        return -ENOSYS;
 }
-inline int fsp_init(struct psmouse *psmouse)
+static inline int fsp_init(struct psmouse *psmouse)
 {
        return -ENOSYS;
 }
This page took 0.024982 seconds and 5 git commands to generate.