Wattos / logitech-g710-linux-driver

Logitech G710 Linux Driver
GNU General Public License v2.0
130 stars 38 forks source link

Compilation error on 3.17 #14

Open ghost opened 9 years ago

ghost commented 9 years ago

Driver doesn't compile anymore on Linux 3.17.2:

  CC [M]  /home/***/logitech-g710-linux-driver/src/kernel/hid-lg-g710-plus.o
In file included from include/linux/thread_info.h:11:0,
                 from ./arch/x86/include/asm/preempt.h:6,
                 from include/linux/preempt.h:18,
                 from include/linux/spinlock.h:50,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:5,
                 from include/linux/slab.h:14,
                 from include/linux/hid.h:30,
                 from /home/***/logitech-g710-linux-driver/src/kernel/hid-lg-g710-plus.c:17:
include/linux/bug.h:33:45: Fehler: Negative Breite in Bitfeld »<anonym>«
 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                             ^
include/linux/kernel.h:849:3: Anmerkung: bei Substitution des Makros »BUILD_BUG_ON_ZERO«
   BUILD_BUG_ON_ZERO((perms) & 2) +    \
   ^
include/linux/sysfs.h:75:12: Anmerkung: bei Substitution des Makros »VERIFY_OCTAL_PERMISSIONS«
    .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },  \
            ^
include/linux/device.h:539:45: Anmerkung: bei Substitution des Makros »__ATTR«
  struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
                                             ^
/home/***/logitech-g710-linux-driver/src/kernel/hid-lg-g710-plus.c:82:8: Anmerkung: bei Substitution des Makros »DEVICE_ATTR«
 static DEVICE_ATTR(led_macro, S_IRUGO | S_IWUGO, lg_g710_plus_show_led_macro, lg_g710_plus_store_led_macro);
        ^
include/linux/bug.h:33:45: Fehler: Negative Breite in Bitfeld »<anonym>«
 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                             ^
include/linux/kernel.h:849:3: Anmerkung: bei Substitution des Makros »BUILD_BUG_ON_ZERO«
   BUILD_BUG_ON_ZERO((perms) & 2) +    \
   ^
include/linux/sysfs.h:75:12: Anmerkung: bei Substitution des Makros »VERIFY_OCTAL_PERMISSIONS«
    .mode = VERIFY_OCTAL_PERMISSIONS(_mode) },  \
            ^
include/linux/device.h:539:45: Anmerkung: bei Substitution des Makros »__ATTR«
  struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store)
                                             ^
/home/***/logitech-g710-linux-driver/src/kernel/hid-lg-g710-plus.c:83:8: Anmerkung: bei Substitution des Makros »DEVICE_ATTR«
 static DEVICE_ATTR(led_keys,  S_IRUGO | S_IWUGO, lg_g710_plus_show_led_keys,  lg_g710_plus_store_led_keys);
        ^
scripts/Makefile.build:263: die Regel für Ziel „/home/***/logitech-g710-linux-driver/src/kernel/hid-lg-g710-plus.o“ scheiterte
make[3]: *** [/home/***/logitech-g710-linux-driver/src/kernel/hid-lg-g710-plus.o] Fehler 1
Makefile:1377: die Regel für Ziel „_module_/home/***/logitech-g710-linux-driver/src/kernel“ scheiterte
make[2]: *** [_module_/home/***/logitech-g710-linux-driver/src/kernel] Fehler 2
make[2]: Verzeichnis „/usr/lib/modules/3.17.2-1-ck/build“ wird verlassen
Makefile:11: die Regel für Ziel „build“ scheiterte
make[1]: *** [build] Fehler 2

This has always worked fine until 3.16, so I assume the error it is related to changes in the kernel. I'm running Arch Linux with latest linux-ck packages.

Lompik commented 9 years ago

This is fixed now. The LED arent working properly anymore with the new kernels though.

boombatower commented 8 years ago

Working fine on 4.3.