From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753537AbaAWROm (ORCPT ); Thu, 23 Jan 2014 12:14:42 -0500 Received: from mail-ea0-f171.google.com ([209.85.215.171]:43871 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751970AbaAWROk (ORCPT ); Thu, 23 Jan 2014 12:14:40 -0500 Date: Thu, 23 Jan 2014 18:14:36 +0100 From: Ingo Molnar To: David Herrmann Cc: "dri-devel@lists.freedesktop.org" , "linux-fbdev@vger.kernel.org" , Dave Airlie , Daniel Vetter , Tomi Valkeinen , linux-kernel , Tom Gundersen Subject: Re: [PATCH 02/11] x86: sysfb: remove sysfb when probing real hw Message-ID: <20140123171436.GA27345@gmail.com> References: <1390486503-1504-1-git-send-email-dh.herrmann@gmail.com> <1390486503-1504-3-git-send-email-dh.herrmann@gmail.com> <20140123165115.GB23869@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * David Herrmann wrote: > >> +#ifdef CONFIG_X86_SYSFB > >> +# include > >> +#endif > > > > I guess a single space is sufficient? > > > > Better yet, I'd include sysfb.h unconditionally: > > Unconditionally won't work as only x86 has this header. [...] Well, in non-x86 code an #ifdef x86 looks ugly as well - but I guess better than not building. > [...] If there's a way to place a dummy into asm-generic which is > picked if arch/xy/include/asm/ doesn't have the header, let me know. Not that I know of. > But if I include it unconditionally without any fallback, this will > fail on non-x86. And adding the header to all archs seems overkill. So why not drop the x86-ism and rename it to CONFIG_PLATFORM_SYSFB? Some platforms configure it, some don't. Then the prototypes could move into include/linux/sysfb.h or so and would be platform agnostic. Thanks, Ingo