Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Kernel 2.6.18 uses usb/input.h too (2)

closed
nobody
None
5
2007-04-17
2007-04-08
Simon Flood
No

Previous attempt at logging this bug was done anonymously and I only got to submit one .patch file.

Both lirc_mod_mce.c and mod_mce.c have tests within them to check the
version of the kernel being used and based on the version to then either
#include linux/usb/input.h (if >= 2.6.19) or #include linux/usb_input.h (if
< 2.6.19).

However usb_input.h changed to usb/input.h with 2.6.18 so the check is
incorrect.

The correct check should be

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
#include <linux/usb/input.h>
#else
#include <linux/usb_input.h>
#endif

I attach two patch files, one for each C source file.

HTH

Simon

Discussion

  • Simon Flood
    Simon Flood
    2007-04-08

    mod_mce.patch to fix usb/input.h vs. usb_input.h

     
    Attachments
  • Florian Demski
    Florian Demski
    2007-04-17

    • status: open --> closed
     
  • Florian Demski
    Florian Demski
    2007-04-17

    Logged In: YES
    user_id=1549018
    Originator: NO

    Uploaded a new version.