login
Login
/
Register
Search
Header Space
Forums
News
Jobs
Blogs
Features
Man Pages
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
7
Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_register+0x7a
view
thread
Score:
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Rafael J. Wysocki <rjw@...>
To: Mike Galbraith <efault@...>
Cc: Ingo Molnar <mingo@...>, Len Brown <lenb@...>, <linux-kernel@...>
Subject:
Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_register+0x7a
Date: Wednesday, May 7, 2008 - 2:56 pm
On Wednesday, 7 of May 2008, Mike Galbraith wrote:
quoted text
> > On Wed, 2008-05-07 at 00:39 +0200, Rafael J. Wysocki wrote: > > On Tuesday, 22 of April 2008, Mike Galbraith wrote: > > > > > > On Tue, 2008-04-22 at 09:53 +0200, Ingo Molnar wrote: > > > > hi Len, > > > > > > > > randconfig boot testing found this new debug warning message in the > > > > syslog: > > > > > > Ditto with Q6600 and v2.6.25-3410-g8075014. > > > > Does it still happen with the current -git? > > No, it was fixed by:
OK, thanks.
quoted text
> commit db176c6ed8974fae94328ad5ac9e70b094ff22fd > Author: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> > Date: Wed May 7 04:02:53 2008 +0900 > > Fix bogus warning in sysdev_driver_register() > > if ((drv->entry.next != drv->entry.prev) || > (drv->entry.next != NULL)) { > > warns list_empty(&drv->entry). > > Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> > Cc: Greg KH <gregkh@suse.de> > Cc: Len Brown <lenb@kernel.org> > [ Version 2 totally redone based on suggestions from Linus & Greg ] > Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> > > diff --git a/drivers/base/sys.c b/drivers/base/sys.c > index 4fbb56b..358bb0b 100644 > --- a/drivers/base/sys.c > +++ b/drivers/base/sys.c > @@ -175,8 +175,7 @@ int sysdev_driver_register(struct sysdev_class *cls, struct sysdev_driver *drv) > } > > /* Check whether this driver has already been added to a class. */ > - if ((drv->entry.next != drv->entry.prev) || > - (drv->entry.next != NULL)) { > + if (drv->entry.next && !list_empty(&drv->entry)) { > printk(KERN_WARNING "sysdev: class %s: driver (%p) has already" > " been registered to a class, something is wrong, but " > "will forge on!\n", cls->name, drv); > > > > > >
-- "Premature optimization is the root of all evil." - Donald Knuth --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
WARNING: at drivers/base/sys.c:183 sysdev_driver_register+0x7a
, Ingo Molnar
, (Tue Apr 22, 3:53 am)
Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_registe...
, Mike Galbraith
, (Tue Apr 22, 5:04 am)
Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_registe...
, Rafael J. Wysocki
, (Tue May 6, 6:39 pm)
Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_registe...
, Mike Galbraith
, (Wed May 7, 2:16 am)
Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_registe...
, Rafael J. Wysocki
, (Wed May 7, 2:56 pm)
Navigation
Create content
Mailing list archives
Recent posts
Mail archive search
Enter your search terms.
all mailing lists
alsa-devel
dragonflybsd-bugs
dragonflybsd-commit
dragonflybsd-docs
dragonflybsd-kernel
dragonflybsd-submit
dragonflybsd-user
freebsd-announce
freebsd-bugs
freebsd-chat
freebsd-cluster
freebsd-current
freebsd-drivers
freebsd-embeded
freebsd-fs
freebsd-hackers
freebsd-hardware
freebsd-mobile
freebsd-net
freebsd-performance
freebsd-pf
freebsd-security
freebsd-security-notifications
freebsd-threads
git
git-commits-head
linux-activists
linux-arm
linux-ath5k-devel
linux-btrfs
linux-c-programming
linux-driver-devel
linux-ext4
linux-fsdevel
linux-ia64
linux-input
linux-kernel
linux-kernel-janitors
linux-kernel-mentors
linux-kernel-newbies
linux-kvm
linux-net
linux-netdev
linux-newbie
linux-nfs
linux-raid
linux-scsi
linux-security-module
linux-sparse
linux-usb
linux-usb-devel
madwifi-devel
netbsd-announce
netbsd-tech-kern
open-graphics
open-graphics-announce-kt
openbsd-announce
openbsd-bugs
openbsd-ipv6
openbsd-misc
openbsd-security-announce
openbsd-smp
openbsd-source-changes
openbsd-tech
openfabrics-general
openmoko-community
openmoko-devel
openmoko-kernel
reiserfs-devel
tux3
ucarp
Optionally limit your search to a specific mailing list.
advanced
Popular discussions
linux-kernel
:
Andrea Arcangeli
[PATCH 06 of 11] rwsem contended
Mikulas Patocka
LFENCE instruction (was: [rfc][patch 3/3] x86: optimise barriers)
Rafael J. Wysocki
Re: [Bug 10030] Suspend doesn't work when SD card is inserted
Manu Abraham
PCIE
git
:
Sverre Rabbelier
Git vs Monotone
Junio C Hamano
[ANNOUNCE] GIT 1.5.4
Bill Lear
Meaning of "fatal: protocol error: bad line length character"?
Junio C Hamano
Re: [PATCH] Teach remote machinery about remotes.default config variable
openbsd-misc
:
Richard Stallman
Real men don't attack straw men
Stefan Beke
mail dovecot: pipe() failed: Too many open files
Wijnand Wiersma
Almost success: OpenBSD on Xen
Didier Wiroth
how can I "find xyz | xargs tar" ... like gtar
netbsd-tech-kern
:
Greg A. Woods
Re: Fork bomb protection patch
Tyler Retzlaff
Re: more summer of code fun
Elad Efrat
Re: sysctl knob to let sugid processes dump core (pr 15994)
Thor Lancelot Simon
Re: FFS journal
Latest forum posts
Serial Driver Implementation Help
9 hours ago
Linux kernel
aacraid bad
10 hours ago
Linux general
Tools: GCC 3.4.6, Final GCC 3 Release
1 day ago
Applications and Utilities
GNU/Hurd is so awful
2 days ago
GNU/Hurd
read /dev/mem not working in 2.6
4 days ago
Linux general
Issues with NETLINK sockets
4 days ago
Linux kernel
Anyone experiancing compiling issues with 2.6.26.6 patching with rt patch 2.6.26.6-rt11?
5 days ago
Linux kernel
Change network interface from eth0 to ppp0
5 days ago
Linux general
kernel module to intercept socket creation
5 days ago
Linux kernel
command to set Subnet Mask
5 days ago
Linux general
Show all forums...
Recent Tags
more tags
Colocation donated by:
Who's online
There are currently
2 users
and
966 guests
online.
Online users
Jeremy
zeekec
Syndicate
speck-geostationary