Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030264AbWHHTyo (ORCPT ); Tue, 8 Aug 2006 15:54:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030279AbWHHTyo (ORCPT ); Tue, 8 Aug 2006 15:54:44 -0400 Received: from ipn26-148.piekary.net ([83.238.26.148]:53010 "EHLO ipn26-148.piekary.net") by vger.kernel.org with ESMTP id S1030264AbWHHTyo (ORCPT ); Tue, 8 Aug 2006 15:54:44 -0400 Date: Tue, 8 Aug 2006 21:54:41 +0200 From: Michal Januszewski To: linux-kernel@vger.kernel.org Cc: trivial@kernel.org Subject: [PATCH] fbdev: include backlight.h only when __KERNEL__ is defined Message-ID: <20060808195441.GA12060@spock.one.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Disposition: inline X-PGP-Key: http://dev.gentoo.org/~spock/spock.gpg User-Agent: Mutt/1.5.12-2006-07-14 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 32 linux/backlight.h pulls in header files (eg. ioport.h) that break compilation of userspace programs. To solve the problem, only include backlight.h in fb.h if compiling kernel stuff. Signed-off-by: Michal Januszewski --- diff --git a/include/linux/fb.h b/include/linux/fb.h index 4ad0673..2f335e9 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -1,7 +1,6 @@ #ifndef _LINUX_FB_H #define _LINUX_FB_H -#include #include /* Definitions of frame buffers */ @@ -381,6 +380,7 @@ #include #include #include #include +#include #include struct vm_area_struct; - 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/