Comment 22 for bug 1315360

Revision history for this message
Windforce (zhehou1115) wrote :

I'm using 2014 Razer Blade 14", tried the files from git and the link from Matthew Williams, but when I did sudo make they both gave me the following error:

=================================================================
make -C /lib/modules/3.13.0-32-generic/build SUBDIRS=/home/zhe/Downloads/hid-rmi-rb14 modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-32-generic'
  CC [M] /home/zhe/Downloads/hid-rmi-rb14/hid-rmi.o
In file included from /home/zhe/Downloads/hid-rmi-rb14/hid-rmi.c:25:0:
/home/zhe/Downloads/hid-rmi-rb14/compat.h:24:19: error: redefinition of ‘hid_hw_raw_request’
 static inline int hid_hw_raw_request(struct hid_device *hdev,
                   ^
In file included from /home/zhe/Downloads/hid-rmi-rb14/hid-rmi.c:14:0:
include/linux/hid.h:999:19: note: previous definition of ‘hid_hw_raw_request’ was here
 static inline int hid_hw_raw_request(struct hid_device *hdev,
                   ^
In file included from /home/zhe/Downloads/hid-rmi-rb14/hid-rmi.c:25:0:
/home/zhe/Downloads/hid-rmi-rb14/compat.h: In function ‘hid_hw_raw_request’:
/home/zhe/Downloads/hid-rmi-rb14/compat.h:37:14: error: ‘struct hid_device’ has no member named ‘hid_get_raw_report’
   return hdev->hid_get_raw_report(hdev, reportnum, buf, len, rtype);
              ^
/home/zhe/Downloads/hid-rmi-rb14/compat.h: At top level:
/home/zhe/Downloads/hid-rmi-rb14/compat.h:43:19: error: redefinition of ‘hid_hw_output_report’
 static inline int hid_hw_output_report(struct hid_device *hdev, __u8 *buf,
                   ^
In file included from /home/zhe/Downloads/hid-rmi-rb14/hid-rmi.c:14:0:
include/linux/hid.h:1019:19: note: previous definition of ‘hid_hw_output_report’ was here
 static inline int hid_hw_output_report(struct hid_device *hdev, __u8 *buf,
                   ^
make[2]: *** [/home/zhe/Downloads/hid-rmi-rb14/hid-rmi.o] Error 1
make[1]: *** [_module_/home/zhe/Downloads/hid-rmi-rb14] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-32-generic'
make: *** [default] Error 2
=================================================================

This happened in Ubuntu 14.04 and now I'm using Lubuntu 14.04 with kernel 3.13.0-32-generic. Any ideas how to solve this?