Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error on 3.17 #14

Open
ghost opened this issue Nov 14, 2014 · 2 comments
Open

Compilation error on 3.17 #14

ghost opened this issue Nov 14, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 14, 2014

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
Copy link

Lompik commented Nov 28, 2014

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

@boombatower
Copy link

Working fine on 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants