Skip to content

Instantly share code, notes, and snippets.

@ored95
Created December 10, 2017 11:25
Show Gist options
  • Save ored95/382c312dd9da3d3e9c6a79228c390fd6 to your computer and use it in GitHub Desktop.
Save ored95/382c312dd9da3d3e9c6a79228c390fd6 to your computer and use it in GitHub Desktop.
Help!!!!! Need to fix bug when compilied kernel 3.16 (Ubuntu)
In file included from include/linux/rcupdate.h:38:0,
from include/linux/idr.h:18,
from include/linux/kernfs.h:14,
from include/linux/sysfs.h:15,
from include/linux/kobject.h:21,
from include/linux/pci.h:28,
from drivers/scsi/megaraid/megaraid_sas_base.c:37:
drivers/scsi/megaraid/megaraid_sas_internal.h: In function ‘megasas_return_cmd’:
drivers/scsi/megaraid/megaraid_sas_internal.h:53:29: error: ‘struct megasas_instance’ has no member named ‘mfi_pool_lock’
spin_lock_irqsave(&instance->mfi_pool_lock, flags);
^
include/linux/spinlock.h:209:34: note: in definition of macro ‘raw_spin_lock_irqsave’
flags = _raw_spin_lock_irqsave(lock); \
^
drivers/scsi/megaraid/megaraid_sas_internal.h:53:2: note: in expansion of macro ‘spin_lock_irqsave’
spin_lock_irqsave(&instance->mfi_pool_lock, flags);
^
In file included from drivers/scsi/megaraid/megaraid_sas_base.c:60:0:
drivers/scsi/megaraid/megaraid_sas_internal.h:54:2: error: implicit declaration of function ‘__megasas_return_cmd’ [-Werror=implicit-function-declaration]
__megasas_return_cmd(instance, cmd);
^
drivers/scsi/megaraid/megaraid_sas_internal.h:55:34: error: ‘struct megasas_instance’ has no member named ‘mfi_pool_lock’
spin_unlock_irqrestore(&instance->mfi_pool_lock, flags);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target 'drivers/scsi/megaraid/megaraid_sas_base.o' failed
make[3]: *** [drivers/scsi/megaraid/megaraid_sas_base.o] Error 1
scripts/Makefile.build:404: recipe for target 'drivers/scsi/megaraid' failed
make[2]: *** [drivers/scsi/megaraid] Error 2
scripts/Makefile.build:404: recipe for target 'drivers/scsi' failed
make[1]: *** [drivers/scsi] Error 2
Makefile:901: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment