From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by ozlabs.org (Postfix) with ESMTP id 475B9DDE2C for ; Fri, 26 Jan 2007 13:14:06 +1100 (EST) From: Arnd Bergmann To: linuxppc-dev@ozlabs.org Subject: Re: [PATCH 7/9] ps3: disable display flipping during mode changes Date: Fri, 26 Jan 2007 03:13:36 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200701260313.36700.arnd@arndb.de> Cc: Geert Uytterhoeven , Paul Mackerras , James Simmons , Linux Frame Buffer Device Development List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 <><