OpenWrt environment, when compiling kernel, turn on Config_input_mouse compile error

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.