... kobject 'devices' does not have a release() function, it is broken and must be fixed. ...
this happens if I rmmod usb modules, like: pear:~ # rmmod hid {e,o,u}hci_hcd ; umount -v usbdevfs && rmmod -v usbcore ERROR: Module hid does not exist in /proc/modules ERROR: Module ehci_hcd does not exist in /proc/modules ERROR: Module ohci_hcd does not exist in /proc/modules ERROR: Module uhci_hcd does not exist in /proc/modules usbdevfs umounted rmmod usbcore, wait=no Sources come from Gregs usb-2.5 tree. Maybe the else branch in kobject_cleanup() is bogus? @@ -459,6 +459,13 @@ void kobject_cleanup(struct kobject * ko kobj->k_name = NULL; if (t && t->release) t->release(kobj); + else { + printk(KERN_ERR "kobject '%s' does not have a release() function, " + "it is broken and must be fixed.\n", + kobj->name); + WARN_ON(1); + } + if (s) kset_put(s); if (parent) of_stdout_device /[EMAIL PROTECTED]/ATY,[EMAIL PROTECTED] name ATY,Rage128y Total memory = 256MB; using 512kB for hash table (at c0480000) Linux version 2.6.0-test11-12-default-usbdbg ([EMAIL PROTECTED]) (gcc-Version 3.3.2 (SuSE Linux)) #3 Tue Dec 16 15:49:44 UTC 2003 Found a Paddington mac-io controller, rev: 0, mapped at 0xfdf80000 PowerMac motherboard: Blue&White G3 Found Grackle (MPC106) PCI host bridge at 0x80000000. Firmware bus number: 0->1 On node 0 totalpages: 65536 DMA zone: 65536 pages, LIFO batch:16 Normal zone: 0 pages, LIFO batch:1 HighMem zone: 0 pages, LIFO batch:1 Building zonelist for node : 0 Kernel command line: System has 64 possible interrupts PID hash table entries: 2048 (order 11: 16384 bytes) GMT Delta read from XPRAM: 0 minutes, DST: off via_calibrate_decr: ticks per jiffy = 249348 (1496093 ticks) Console: colour dummy device 80x25 serial8250_console_init: nothing to do on PowerMac Memory: 254336k available (2580k kernel code, 1484k data, 180k init, 0k highmem) Calibrating delay loop... 697.95 BogoMIPS Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) POSIX conformance testing by UNIFIX do_initcalls init_elf_binfmt NET: Registered protocol family 16 PCI: Probing PCI hardware ... the first call_usermodehelper: pci Registering pmac pic with sysfs... Linux Plug and Play Support v0.97 (c) Adam Belay SCSI subsystem initialized PCI: Enabling device 0000:00:10.0 (0086 -> 0087) aty128fb: Rage128 RE (PCI) [chip rev 0x2] 16M 128-bit SDR SGRAM (1:1) fb0: ATY Rage128 frame buffer device on Rage128 RE (PCI) Thermal assist unit using timers, shrink_timer: 200 jiffies ikconfig 0.7 with /proc/config* VFS: Disk quotas dquot_6.5.1 Initializing Cryptographic API isapnp: ISA Plug & Play support disabled Console: switching to colour frame buffer device 128x48 pty: 256 Unix98 ptys configured Generic RTC Driver v1.07 serial8250_init: nothing to do on PowerMac pmac_zilog.c 0.5a (Benjamin Herrenschmidt <[EMAIL PROTECTED]>) ttyS0 at MMIO 0x80813020 (irq = 15) is a PowerMac Zilog ttyS1 at MMIO 0x80813000 (irq = 16) is a PowerMac Zilog Using anticipatory io scheduler Floppy drive(s): fd0 is 2.88M IN from bad port 3f4 at c0188588 IN from bad port 3f4 at c01878f4 floppy0: no floppy controllers found RAMDISK driver initialized: 16 RAM disks of 123456K size 1024 blocksize loop: loaded (max 8 devices) MacIO PCI driver attached to Paddington chipset Macintosh non-volatile memory driver v1.0 input: Macintosh mouse button emulation Macintosh CUDA driver v0.5 for Unified ADB. apm_emu: Requires a machine with a PMU. Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx CMD646: IDE controller at PCI slot 0000:01:01.0 CMD646: chipset revision 7 CMD646: chipset revision 0x07, UltraDMA Capable CMD646: 100% native mode on irq 26 ide0: BM-DMA at 0x1050-0x1057, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0x1058-0x105f, BIOS settings: hdc:pio, hdd:pio Probing IDE interface ide0... hda: Maxtor 90648D3, ATA DISK drive Unhandled interrupt 1a, disabled ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ide0 at 0x1090-0x1097,0x1082 on irq 26 adb: starting probe task... adb devices: adb: finished probe task... Probing IDE interface ide1... ide1: Wait for ready failed before probe ! ide2: Found Apple Heathrow ATA controller, bus ID 0 Probing IDE interface ide2... hde: MATSHITADVD-ROM SR-8583, ATAPI CD/DVD-ROM drive hde: MDMA, cycleTime: 120, accessTime: 75, recTime: 45 hde: Set MDMA timing for mode 2, reg: 0x00211526 hde: Enabling MultiWord DMA 2 ide2 at 0xd2020000-0xd2020007,0xd2020160 on irq 13 Probing IDE interface ide1... ide1: Wait for ready failed before probe ! hda: max request size: 128KiB hda: 12656448 sectors (6480 MB) w/512KiB Cache, CHS=12556/16/63, UDMA(33) hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6 hda7 hda8 hda9 hda10 hda11 mesh: configured for synchronous 5 MB/s mesh: performing initial bus reset... scsi0 : MESH Console: switching to colour frame buffer device 128x48 mice: PS/2 mouse device common for all mice input: PC Speaker i8042_platform_init: nothing to do on PowerMac md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27 NET: Registered protocol family 2 IP: routing cache hash table of 2048 buckets, 16Kbytes TCP: Hash tables configured (established 16384 bind 32768) NET: Registered protocol family 1 NET: Registered protocol family 17 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. found reiserfs format "3.6" with standard journal Reiserfs journal params: device hda11, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30 reiserfs: checking transaction log (hda11) for (hda11) Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. Freeing unused kernel memory: 180k init 4k chrp 36k prep md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. device-mapper: 4.0.0-ioctl (2003-06-04) initialised: [EMAIL PROTECTED] Adding 190336k swap on /dev/hda8. Priority:42 extents:1 Module bmac cannot be unloaded due to unsafe usage in include/linux/module.h:486 eth%d: BMAC+ at 00:50:e4:20:f0:73 phy registers: 1100 7829 7810 0001 00a1 45e1 0003 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 4000 0000 2ffb 0010 0000 0002 0001 0000 0000 0000 0000 0000 0000 0000 drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub ohci_hcd: 2003 Oct 13 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci_hcd: block sizes: ed 64 td 64 ohci_hcd 0000:01:06.0: OHCI Host Controller ohci_hcd 0000:01:06.0: irq 28, pci mem d210f000 ohci_hcd 0000:01:06.0: new USB bus registered, assigned bus number 1 ohci_hcd 0000:01:06.0: WARNING: OPTi workarounds unavailable hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected hub 1-0:1.0: new USB device on port 1, assigned address 2 hub 1-1:1.0: USB hub found hub 1-1:1.0: 4 ports detected drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1 hub 1-1:1.0: new USB device on port 1, assigned address 3 hub 1-1:1.0: new USB device on port 2, assigned address 4 drivers/usb/core/usb.c: registered new driver hiddev drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Keyboard [Alps Electric M2452] on usb-0000:01:06.0-1.1 drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Mouse [Logitech M4848] on usb-0000:01:06.0-1.2 drivers/usb/core/usb.c: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver NET: Registered protocol family 10 Disabled Privacy Extensions on device c031b478(lo) IPv6 over IPv4 tunneling driver hub 1-1:1.0: new USB device on port 3, assigned address 5 drivers/usb/input/hid-core.c: ctrl urb status -32 received drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Gamepad [Gravis GamePad Pro USB ] on usb-0000:01:06.0-1.3 nfs warning: mount version older than kernel usb 1-1.3: USB disconnect, address 5 hub 1-1:1.0: new USB device on port 3, assigned address 6 drivers/usb/input/hid-core.c: ctrl urb status -32 received drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Gamepad [Gravis GamePad Pro USB ] on usb-0000:01:06.0-1.3 usb 1-1.1: USB disconnect, address 3 usb 1-1.2: USB disconnect, address 4 usb 1-1.3: USB disconnect, address 6 hub 1-1:1.0: new USB device on port 1, assigned address 7 drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Keyboard [Alps Electric M2452] on usb-0000:01:06.0-1.1 hub 1-1:1.0: new USB device on port 2, assigned address 8 drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Mouse [Logitech M4848] on usb-0000:01:06.0-1.2 hub 1-1:1.0: new USB device on port 3, assigned address 9 drivers/usb/input/hid-core.c: ctrl urb status -32 received drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Gamepad [Gravis GamePad Pro USB ] on usb-0000:01:06.0-1.3 drivers/usb/core/usb.c: deregistering driver hiddev drivers/usb/core/usb.c: deregistering driver hid drivers/usb/core/usb.c: registered new driver hiddev drivers/usb/input/hid-core.c: ctrl urb status -2 received drivers/usb/input/hid-core.c: timeout initializing reports drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Keyboard [Alps Electric M2452] on usb-0000:01:06.0-1.1 drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Mouse [Logitech M4848] on usb-0000:01:06.0-1.2 drivers/usb/input/hid-core.c: ctrl urb status -32 received drivers/usb/input/hid-ff.c: hid_ff_init could not find initializer input: USB HID v1.00 Gamepad [Gravis GamePad Pro USB ] on usb-0000:01:06.0-1.3 drivers/usb/core/usb.c: registered new driver hid drivers/usb/input/hid-core.c: v2.0:USB HID core driver drivers/usb/core/usb.c: deregistering driver hiddev drivers/usb/core/usb.c: deregistering driver hid ohci_hcd 0000:01:06.0: remove, state 1 usb usb1: USB disconnect, address 1 usb 1-1: USB disconnect, address 2 usb 1-1.1: USB disconnect, address 7 usb 1-1.2: USB disconnect, address 8 usb 1-1.3: USB disconnect, address 9 ohci_hcd 0000:01:06.0: USB bus 1 deregistered kobject 'usb' does not have a release() function, it is broken and must be fixed. Badness in kobject_cleanup at lib/kobject.c:477 Call trace: [<c000bc30>] dump_stack+0x18/0x28 [<c0008c84>] check_bug_trap+0x84/0xac [<c0008d74>] ProgramCheckException+0xc8/0x180 [<c000830c>] ret_from_except_full+0x0/0x4c [<c013e7dc>] kobject_cleanup+0x7c/0xc8 [<c013e704>] kobject_unregister+0x20/0x34 [<c0177940>] class_unregister+0x14/0x24 [<d213daa0>] usb_major_cleanup+0x18/0x38 [usbcore] [<d2144294>] usb_exit+0x3c/0x64 [usbcore] [<c0033e24>] sys_delete_module+0x1a8/0x230 [<c0007d4c>] ret_from_syscall+0x0/0x4c drivers/usb/core/usb.c: deregistering driver usbfs drivers/usb/core/usb.c: deregistering driver hub kobject 'drivers' does not have a release() function, it is broken and must be fixed. Badness in kobject_cleanup at lib/kobject.c:477 Call trace: [<c000bc30>] dump_stack+0x18/0x28 [<c0008c84>] check_bug_trap+0x84/0xac [<c0008d74>] ProgramCheckException+0xc8/0x180 [<c000830c>] ret_from_except_full+0x0/0x4c [<c013e7dc>] kobject_cleanup+0x7c/0xc8 [<c013e704>] kobject_unregister+0x20/0x34 [<c01774f0>] bus_unregister+0x1c/0x44 [<d21442ac>] usb_exit+0x54/0x64 [usbcore] [<c0033e24>] sys_delete_module+0x1a8/0x230 [<c0007d4c>] ret_from_syscall+0x0/0x4c kobject 'devices' does not have a release() function, it is broken and must be fixed. Badness in kobject_cleanup at lib/kobject.c:477 Call trace: [<c000bc30>] dump_stack+0x18/0x28 [<c0008c84>] check_bug_trap+0x84/0xac [<c0008d74>] ProgramCheckException+0xc8/0x180 [<c000830c>] ret_from_except_full+0x0/0x4c [<c013e7dc>] kobject_cleanup+0x7c/0xc8 [<c013e704>] kobject_unregister+0x20/0x34 [<c01774fc>] bus_unregister+0x28/0x44 [<d21442ac>] usb_exit+0x54/0x64 [usbcore] [<c0033e24>] sys_delete_module+0x1a8/0x230 [<c0007d4c>] ret_from_syscall+0x0/0x4c kobject 'usb' does not have a release() function, it is broken and must be fixed. Badness in kobject_cleanup at lib/kobject.c:477 Call trace: [<c000bc30>] dump_stack+0x18/0x28 [<c0008c84>] check_bug_trap+0x84/0xac [<c0008d74>] ProgramCheckException+0xc8/0x180 [<c000830c>] ret_from_except_full+0x0/0x4c [<c013e7dc>] kobject_cleanup+0x7c/0xc8 [<c013e704>] kobject_unregister+0x20/0x34 [<c0177504>] bus_unregister+0x30/0x44 [<d21442ac>] usb_exit+0x54/0x64 [usbcore] [<c0033e24>] sys_delete_module+0x1a8/0x230 [<c0007d4c>] ret_from_syscall+0x0/0x4c -- USB is for mice, FireWire is for men! sUse lINUX ag, nÃRNBERG ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel