Skip to content

Fix to compile on kernel 6.12.0-211 #365

Description

@kdevries

Hi,

Thanks for you great work to make our beloved xbox controllers workable under Linux :)

Since update from kernel 6.12.0-124 to 6.12.0-211 I could not compile the driver anymore (I use secure boot so need to recompile after every kernel update)

in xpad.c, problem seems to be :
// backward compatibility. from_timer is renamed to timer_container_of since 6.16.0
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,16,0)
#define timer_container_of from_timer
#endif

But 6.12.0-211 kernel already has:

#define timer_container_of(...)

which is why I got:

warning: "timer_container_of" redefined

fix is to comment this out:
/*
#define timer_container_of from_timer
*/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions