* BUG: 'Unknown symbol in module' happens after reloading ehci-hcd module
@ 2010-07-28 6:50 Ming Lei
2010-07-28 7:33 ` Ming Lei
0 siblings, 1 reply; 4+ messages in thread
From: Ming Lei @ 2010-07-28 6:50 UTC (permalink / raw)
To: linux-kernel, linux-usb
Hi,
'Unknown symbol in module' happens after the actions below:
rmmod ehci-hcd
modprobe ehci-hcd
kernel version: 2.6.35-rc6+gregkh tree+wireless tree
dmsg info:
[ 689.025428] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 689.025431] Warning! ehci_hcd should always be loaded before
uhci_hcd and ohci_hcd, not after
[ 689.025434] ehci_hcd: block sizes: qh 104 qtd 96 itd 192 sitd 96
>From source code of ehci-hcd, seems debugfs_create_dir or usb_debug_root
in ehci_hcd_init is thought as unknown symbol mistakenly by kernel.
--
Lei Ming
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: BUG: 'Unknown symbol in module' happens after reloading ehci-hcd module
2010-07-28 6:50 BUG: 'Unknown symbol in module' happens after reloading ehci-hcd module Ming Lei
@ 2010-07-28 7:33 ` Ming Lei
2010-07-28 13:56 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Ming Lei @ 2010-07-28 7:33 UTC (permalink / raw)
To: linux-kernel, linux-usb
2010/7/28 Ming Lei <tom.leiming@gmail.com>:
> Hi,
>
> 'Unknown symbol in module' happens after the actions below:
>
> rmmod ehci-hcd
> modprobe ehci-hcd
>
The issue is caused by returning failure of debugfs_create_dir, and
which may be fixed by replacing debugfs_remove with
debugfs_remove_recursive in ehci_hcd_cleanup.
Why does insmod show 'Unknown symbol in module' when module .init
return -ENOENT? The message does make us confused.
--
Lei Ming
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BUG: 'Unknown symbol in module' happens after reloading ehci-hcd module
2010-07-28 7:33 ` Ming Lei
@ 2010-07-28 13:56 ` Greg KH
2010-07-28 14:36 ` Ming Lei
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-07-28 13:56 UTC (permalink / raw)
To: Ming Lei; +Cc: linux-kernel, linux-usb
On Wed, Jul 28, 2010 at 03:33:30PM +0800, Ming Lei wrote:
> 2010/7/28 Ming Lei <tom.leiming@gmail.com>:
> > Hi,
> >
> > 'Unknown symbol in module' ?happens after the actions below:
> >
> > ? ? ? ? rmmod ehci-hcd
> > ? ? ? ? modprobe ehci-hcd
> >
>
> The issue is caused by returning failure of debugfs_create_dir, and
> which may be fixed by replacing debugfs_remove with
> debugfs_remove_recursive in ehci_hcd_cleanup.
Or we can properly clean up all of the files, right?
Care to send a patch to resolve this?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BUG: 'Unknown symbol in module' happens after reloading ehci-hcd module
2010-07-28 13:56 ` Greg KH
@ 2010-07-28 14:36 ` Ming Lei
0 siblings, 0 replies; 4+ messages in thread
From: Ming Lei @ 2010-07-28 14:36 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel, linux-usb
2010/7/28 Greg KH <greg@kroah.com>:
> On Wed, Jul 28, 2010 at 03:33:30PM +0800, Ming Lei wrote:
>> 2010/7/28 Ming Lei <tom.leiming@gmail.com>:
>> > Hi,
>> >
>> > 'Unknown symbol in module' ?happens after the actions below:
>> >
>> > ? ? ? ? rmmod ehci-hcd
>> > ? ? ? ? modprobe ehci-hcd
>> >
>>
>> The issue is caused by returning failure of debugfs_create_dir, and
>> which may be fixed by replacing debugfs_remove with
>> debugfs_remove_recursive in ehci_hcd_cleanup.
>
> Or we can properly clean up all of the files, right?
>
> Care to send a patch to resolve this?
Sent, follows the patch's title:
USB: ehci: fix remove of ehci debugfs dir
thanks,
--
Lei Ming
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-28 14:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-28 6:50 BUG: 'Unknown symbol in module' happens after reloading ehci-hcd module Ming Lei
2010-07-28 7:33 ` Ming Lei
2010-07-28 13:56 ` Greg KH
2010-07-28 14:36 ` Ming Lei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®