#76 vhba-module doesn't build for linux 3.15rc1

None
closed
None
vhba-module
default
2015-01-28
2014-04-18
No

Since updating to linux-mainline 3.15rc1 the vhba module doesn't compile due to a macro redefinition of scmd_dbg, introduced by this kernel patch: https://github.com/torvalds/linux/commit/3af74a3c07d93e34fce3d6c6dcd73676d8381d21

make -C /usr/lib/modules/3.15.0-1-mainline/build M=/var/abs/local/vhba-module-mainline/src/vhba-module-20130607 modules
make[1]: Entering directory '/usr/lib/modules/3.15.0-1-mainline/build'
  CC [M]  /var/abs/local/vhba-module-mainline/src/vhba-module-20130607/vhba.o
/var/abs/local/vhba-module-mainline/src/vhba-module-20130607/vhba.c:57:0: error: "scmd_dbg" redefined [-Werror]
 #define scmd_dbg(scmd, fmt, a...)       \
 ^
In file included from /var/abs/local/vhba-module-mainline/src/vhba-module-20130607/vhba.c:38:0:
include/scsi/scsi_device.h:253:0: note: this is the location of the previous definition
 #define scmd_dbg(scmd, fmt, a...)        \
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:324: recipe for target '/var/abs/local/vhba-module-mainline/src/vhba-module-20130607/vhba.o' failed
make[2]: *** [/var/abs/local/vhba-module-mainline/src/vhba-module-20130607/vhba.o] Error 1
Makefile:1310: recipe for target '_module_/var/abs/local/vhba-module-mainline/src/vhba-module-20130607' failed
make[1]: *** [_module_/var/abs/local/vhba-module-mainline/src/vhba-module-20130607] Error 2
make[1]: Leaving directory '/usr/lib/modules/3.15.0-1-mainline/build'
Makefile:24: recipe for target 'modules' failed
make: *** [modules] Error 2

Discussion

  • Rok Mandeljc

    Rok Mandeljc - 2014-04-19
    • status: open --> closed
    • assigned_to: Rok Mandeljc
    • Milestone: -->
     
  • Rok Mandeljc

    Rok Mandeljc - 2014-04-19

    Thanks for the heads-up. It seems that adding "#ifndef scmd_dbg" around our definition should do the trick, which is what I have done in git head.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks