login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
3
Re: [linux-pm] [PATCH RFC] introduce pm_call() macro to get rid of most #ifdef CONFIG_PM
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
David Brownell <david-b@...>
To: <linux-pm@...>
Cc: Pavel Machek <pavel@...>, Anton Vorontsov <cbouatmailru@...>, <linux-kernel@...>
Subject:
Re: [linux-pm] [PATCH RFC] introduce pm_call() macro to get rid of most #ifdef CONFIG_PM
Date: Monday, March 3, 2008 - 6:56 pm
On Monday 03 March 2008, Pavel Machek wrote:
quoted text
> > +/* avoid `defined but not used' warning */ > > +#define pm_call(x) ((x) - 1 ? NULL : NULL) > > +#endif /* CONFIG_PM */ > > + > > This is evil.
Ugly, yes. It might merit some casts too.
quoted text
> Maybe your gcc is smart enough to optimize this away, > but I'm not sure mine is.
It'll be a constant expression; it certainly ought to be. --
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:
[PATCH RFC] introduce pm_call() macro to get rid of most #if...
, Anton Vorontsov
, (Sun Mar 2, 7:43 pm)
Re: [PATCH RFC] introduce pm_call() macro to get rid of most...
, Pavel Machek
, (Mon Mar 3, 10:18 am)
Re: [PATCH RFC] introduce pm_call() macro to get rid of most...
, Anton Vorontsov
, (Mon Mar 3, 6:42 pm)
Re: [linux-pm] [PATCH RFC] introduce pm_call() macro to get ...
, David Brownell
, (Mon Mar 3, 6:56 pm)
Re: [linux-pm] [PATCH RFC] introduce pm_call() macro to get ...
, Pavel Machek
, (Mon Mar 3, 7:16 pm)
Re: [PATCH RFC] introduce pm_call() macro to get rid of most...
, Arjan van de Ven
, (Sun Mar 2, 8:08 pm)
Re: [PATCH RFC] introduce pm_call() macro to get rid of most...
, Anton Vorontsov
, (Mon Mar 3, 7:26 pm)
Re: [PATCH RFC] introduce pm_call() macro to get rid of most...
, Rafael J. Wysocki
, (Sun Mar 2, 8:29 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Matt Mackall
Re: [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c compiling
James Bottomley
Re: Integration of SCST in the mainstream Linux kernel
openbsd-misc
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Natalie Protasevich
[BUG] New Kernel Bugs
git
:
Colocation donated by:
Who's online
There are currently
0 users
and
521 guests
online.
Syndicate