When compiling kernel, turn on Config_input_mouse compile error, prompt
Psmouse.ko Error
Undefined reference to ' Lifebook_detect '
Undefined reference to ' Fsp_detect '
The reason is that the GCC version is too high (GCC 5.x) to cause
Modify file drivers/input/mouse/lifebook.h and file drivers/input/mouse/sentelic.h
@@ -16,14 +16,14 @@ -16,14 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;
}
@@ -123,11 +123,11 @@ -123,11 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;
}
Reference:
Https://github.com/torvalds/linux/tree/master/drivers/input/mouse