undefined reference for __bad_spinloc_type with CONFIG_NETFILTER_DEBUG enabled
Hi everyone,
i was trying to enable the netfilters debugging option by enabling the above macro but the subsequent compilation is giving compilation error. The complete error is:
--------------------------------------------------------------------------
net/built-in.o(.text+0x76c84): In function `ip_set_hash_add':
sysctl_net.c: undefined reference to `__bad_spinlock_type'
net/built-in.o(.text+0x76da4):sysctl_net.c: undefined reference to `__bad_spinlock_type'
net/built-in.o(.text+0x76de8): In function `ip_set_testip_kernel':
sysctl_net.c: undefined reference to `__bad_spinlock_type'
net/built-in.o(.text+0x76e8c):sysctl_net.c: undefined reference to `__bad_spinlock_type'
net/built-in.o(.text+0x76ec4): In function `ip_set_addip_kernel':
sysctl_net.c: undefined reference to `__bad_spinlock_type'
net/built-in.o(.text+0x76f6c):sysctl_net.c: more undefined references to `__bad_spinlock_type' follow
make: *** [vmlinux] Error 1
--------------------------------------------------------------------------
the function ip_set_hash_add is using the call write_unlock_bh () which is a macro defined in spinlock.h. The macro,eventually, is replaced with call to __bad_spinlock_type (). Now grep'ing the kernel code doesn't provides any reference to the function definition.
can any body provide any kind of reference here. Googling it up does provides some links but those are full of kernel patches, unsure about if any patch is needed or not?
my doubt is, is there any other macro required in conjunction with the aforementined macro ?. Though i had checked the spinloch.h, and the macros are not wrapped around by any #ifdef <KERNEL CONFIGURATION MACRO>
any kind of help will be appreciated.
|