From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 7/9] ps3: disable display flipping during mode changes Date: Fri, 26 Jan 2007 03:13:36 +0100 Message-ID: <200701260313.36700.arnd@arndb.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: linuxppc-dev@ozlabs.org Cc: Geert Uytterhoeven , Paul Mackerras , James Simmons , Linux Frame Buffer Device Development On Thursday 25 January 2007 18:51, Geert Uytterhoeven wrote: > @@ -33,6 +33,12 @@ > #define DPRINTK(fmt, args...) do { } while (0) > #endif > > +#ifdef CONFIG_FB_PS3 > +extern int ps3fb_flip_ctl(int); > +#else > +#define ps3fb_flip_ctl(x) > +#endif The empty function should by convention be defined as 'do { } while (0)', like the DPRINTK above. Even better might be an empty inline function static inline int ps3fb_flip_ctl(int arg) { return 0; } that enables type checking in gcc. Arnd <><