Menu

#2 Fails to build on more recent kernels.

open
nobody
5
2012-07-23
2012-07-23
No

Apparently the SPIN_LOCK_UNLOCKED macro is deprecated and not present in current kernels. I just helped someone compile the kernel module on Ubuntu 12.04 to use their DM2 with Mixxx and I had to make this modification:

On dm2.c line 991 change:
dev->lock = SPIN_LOCK_UNLOCKED;
to:
spin_lock_init(&dev->lock);

and it worked fine.

Thanks,
RJ Ryan

Discussion

  • Russell Ryan

    Russell Ryan - 2012-07-23

    to be more specific the kernel version it didn't build on was 3.2.0-26-generic

     
  • Hunter Payne

    Hunter Payne - 2012-08-24

    I have an Ubuntu 12.04 install with this kernel:

    Linux hunter-oct 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    I had the same compile error and fixed it the same way. However, it still doesn't work. It crashes when the DM2 is plugged in and won't boot with the DM2 plugged in.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.