[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ide-cs module "cannot be unloaded due to unsafe usage"



Hello everyone,

My environment:  Thinkpad X31 running a mix of testing/unstable with
kernel 2.6.3 from kernel.org.  I'm using the CF Card slot on the machine
to access pictures from a digital camera.  Everything (mount, unmount,
card insert/remove detection, file access, APM suspend/resume) works. The only annoyance is this message that comes up the first time I insert the card:

Mar  7 18:28:06 0x19 kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
Mar  7 18:28:06 0x19 cardmgr[1013]: socket 1: ATA/IDE Fixed Disk
Mar  7 18:28:06 0x19 cardmgr[1013]: executing: 'modprobe ide-cs'
Mar  7 18:28:07 0x19 kernel: hde: SanDisk SDCFH-512, CFA DISK drive
Mar  7 18:28:07 0x19 kernel: ide2 at 0x100-0x107,0x10e on irq 3
Mar  7 18:28:07 0x19 kernel: hde: max request size: 128KiB
Mar  7 18:28:07 0x19 kernel: hde: 1000944 sectors (512 MB) w/1KiB Cache,
CHS=993/16/63
Mar  7 18:28:07 0x19 kernel:  hde: hde1
Mar  7 18:28:07 0x19 kernel: Module ide_cs cannot be unloaded due to
unsafe usage in include/linux/module.h:489
Mar  7 18:28:07 0x19 kernel: ide-cs: hde: Vcc = 3.3, Vpp = 0.0
Mar  7 18:28:07 0x19 cardmgr[1013]: executing: './ide start hde'
Mar  7 18:28:52 0x19 kernel:  hde: hde1

As far as I can tell from the relevant part of module.h, the ide-cs
module code is using a deprecated reference count macro when built as a
module.  Is that the cause of these messages or could there be something
I haven't configured correctly on my system?

The relevant entries from my kernel config:

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

Regards,

Dimitris.



Reply to: