[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4941A42A.7030607@zytor.com>
Date: Thu, 11 Dec 2008 15:37:14 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Greg KH <gregkh@...e.de>
CC: Zachary Amsden <zach@...are.com>, Yinghai Lu <yinghai@...nel.org>,
Huang Ying <ying.huang@...el.com>,
Jeremy Fitzhardinge <jeremy@...p.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>,
"norman@...backs.co.uk" <norman@...backs.co.uk>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Alok Kataria <alokkataria1@...il.com>,
"bruno.premont@...tena.lu" <bruno.premont@...tena.lu>,
"xl@...igned.net" <xl@...igned.net>,
"dsd@...too.org" <dsd@...too.org>
Subject: Re: [PATCH] Fix VMI crash on boot in 2.6.27, 2.6.28 kernels
Greg KH wrote:
>> +#else
>> +#define vmi_init()
>> +#define vmi_activate()
>> +#define vmi_bringup()
>> +#endif
>
> static inline please, don't use #defines for function prototypes, it's
> not nice. See Andrew's previous rants about this for details :)
And if it is not possible, technically, for whatever reason, the proper
forms look like:
#define foo() ((void)0)
#define bar(x) ((void)(x))
#define baz(x,y) ((void)((x),(y)))
... which preserve side effects, even if they don't guarantee type safety.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists