From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Date: Mon, 24 Jun 2013 17:54:20 +0000 Subject: [PATCH 2/2 v2] fb: fix atyfb unused data warnings Message-Id: <51C887CC.6000301@infradead.org> List-Id: References: <51C26B56.20802@infradead.org> <20130624143737.GI305@game.jcrosoft.org> In-Reply-To: <20130624143737.GI305@game.jcrosoft.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jean-Christophe PLAGNIOL-VILLARD Cc: LKML , Linux Fbdev development list , Andrew Morton , Paul Mackerras , Benjamin Herrenschmidt , Tomi Valkeinen From: Randy Dunlap Fix compiler warnings of data defined but not used by using the __maybe_unused attribute. The date are only used with certain kconfig settings. drivers/video/aty/atyfb_base.c:534:13: warning: 'ram_dram' defined but not used [-Wunused-variable] drivers/video/aty/atyfb_base.c:535:13: warning: 'ram_resv' defined but not used [-Wunused-variable] Signed-off-by: Randy Dunlap Cc: Paul Mackerras Cc: Benjamin Herrenschmidt Cc: linux-fbdev@vger.kernel.org Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen --- drivers/video/aty/atyfb_base.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- lnx-310-rc7.orig/drivers/video/aty/atyfb_base.c +++ lnx-310-rc7/drivers/video/aty/atyfb_base.c @@ -58,6 +58,7 @@ #include #include #include +#include #include #include #include @@ -531,8 +532,8 @@ static int correct_chipset(struct atyfb_ return 0; } -static char ram_dram[] = "DRAM"; -static char ram_resv[] = "RESV"; +static char ram_dram[] __maybe_unused = "DRAM"; +static char ram_resv[] __maybe_unused = "RESV"; #ifdef CONFIG_FB_ATY_GX static char ram_vram[] = "VRAM"; #endif /* CONFIG_FB_ATY_GX */