浏览代码

Input: sentelic - use "static inline" instead of "inline"

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>
Khem Raj 10 年之前
父节点
当前提交
bde304575f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/input/mouse/sentelic.h

+ 2 - 2
drivers/input/mouse/sentelic.h

@@ -123,11 +123,11 @@ struct fsp_data {
 extern int fsp_detect(struct psmouse *psmouse, bool set_properties);
 extern int fsp_detect(struct psmouse *psmouse, bool set_properties);
 extern int fsp_init(struct psmouse *psmouse);
 extern int fsp_init(struct psmouse *psmouse);
 #else
 #else
-inline int fsp_detect(struct psmouse *psmouse, bool set_properties)
+static inline int fsp_detect(struct psmouse *psmouse, bool set_properties)
 {
 {
 	return -ENOSYS;
 	return -ENOSYS;
 }
 }
-inline int fsp_init(struct psmouse *psmouse)
+static inline int fsp_init(struct psmouse *psmouse)
 {
 {
 	return -ENOSYS;
 	return -ENOSYS;
 }
 }