login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
21
Re: [PATCH 06/15] driver model: anti-oopsing medicine
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Greg KH
Subject:
Re: [PATCH 06/15] driver model: anti-oopsing medicine
Date: Thursday, August 21, 2008 - 1:04 pm
On Thu, Aug 21, 2008 at 11:24:22AM -0700, David Brownell wrote:
quoted text
> On Thursday 21 August 2008, Greg Kroah-Hartman wrote: > > + if (!class->p) { > > + WARN(1, "%s called for class '%s' before it was initialized", > > + __func__, class->name); > > + return -EINVAL; > > + } > > Or -- for future reference -- using WARN() with non-constant > initial parameter: > > if (WARN(!class-p, "%s called ...\n" ...)) > return -EINVAL; > > Some of those macros now have return values, supportin C code > that looks a bit more compact.
Ah, yeah, that looks much nicer, I'll remember that in the future. thanks, greg k-h --
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:
[GIT PATCH] driver core patches against 2.6.26-rc4
, Greg KH
, (Thu Aug 21, 10:30 am)
[PATCH 01/15] kobject: Replace ALL occurrences of '/' with ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 02/15] Japanese translation of Documentation/Submit ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 03/15] Documentation: HOWTO-ja_JP-sync patch
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 04/15] drivers/base/driver.c: remove unused to_dev( ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 05/15] dev_printk(): constify the `dev' argument
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 06/15] driver model: anti-oopsing medicine
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 07/15] PM: don't skip device PM init when CONFIG_PM ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 08/15] driver core: add init_name to struct device
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 09/15] PM: Remove WARN_ON from device_pm_add
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 10/15] block: fix partial read() of /proc/{partitio ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 11/15] block: drop references taken by class_find_d ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:32 am)
[PATCH 12/15] UIO: uio_pdrv: fix memory leak
, Greg Kroah-Hartman
, (Thu Aug 21, 10:33 am)
[PATCH 13/15] UIO: uio_pdrv: fix license specification
, Greg Kroah-Hartman
, (Thu Aug 21, 10:33 am)
[PATCH 14/15] UIO: generic irq handling for some uio platf ...
, Greg Kroah-Hartman
, (Thu Aug 21, 10:33 am)
[PATCH 15/15] pnp: fix "add acpi:* modalias entries"
, Greg Kroah-Hartman
, (Thu Aug 21, 10:33 am)
Re: [PATCH 06/15] driver model: anti-oopsing medicine
, David Brownell
, (Thu Aug 21, 11:24 am)
Re: [PATCH 06/15] driver model: anti-oopsing medicine
, Greg KH
, (Thu Aug 21, 1:04 pm)
Re: [PATCH 01/15] kobject: Replace ALL occurrences of '/' ...
, Ville
, (Fri Aug 22, 5:41 am)
Re: [PATCH 01/15] kobject: Replace ALL occurrences of '/' ...
, Greg KH
, (Fri Aug 22, 7:14 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Josef Sipek
Re: [PATCH 01/24] Unionfs: Documentation
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Oleg Nesterov
Re: init's children list is long and slows reaping children.
Randy Dunlap
Re: mmotm 2010-06-11-16-40 uploaded
Pete Clements
2.6.20-git8 fails compile -- net/built-in.o __ipv6_addr_type
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Jacob Yocom-Piatt
Re: Same shit all over again
Colocation donated by:
Syndicate