diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2013-06-24 13:54:20 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-06-26 08:13:53 -0400 |
commit | 9abc907ed781ea12825fde867d473c90214e3b4c (patch) | |
tree | d91e2308fb0d01db2554dd3159d1c6d3ed411ca4 | |
parent | 6e36308a6fb87d104452855610398446aafb0ea6 (diff) |
fb: fix atyfb unused data warnings
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 <rdunlap@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-fbdev@vger.kernel.org
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 813b7d752bed..a89c15de9f45 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -58,6 +58,7 @@ | |||
58 | #include <linux/slab.h> | 58 | #include <linux/slab.h> |
59 | #include <linux/vmalloc.h> | 59 | #include <linux/vmalloc.h> |
60 | #include <linux/delay.h> | 60 | #include <linux/delay.h> |
61 | #include <linux/compiler.h> | ||
61 | #include <linux/console.h> | 62 | #include <linux/console.h> |
62 | #include <linux/fb.h> | 63 | #include <linux/fb.h> |
63 | #include <linux/init.h> | 64 | #include <linux/init.h> |
@@ -531,8 +532,8 @@ static int correct_chipset(struct atyfb_par *par) | |||
531 | return 0; | 532 | return 0; |
532 | } | 533 | } |
533 | 534 | ||
534 | static char ram_dram[] = "DRAM"; | 535 | static char ram_dram[] __maybe_unused = "DRAM"; |
535 | static char ram_resv[] = "RESV"; | 536 | static char ram_resv[] __maybe_unused = "RESV"; |
536 | #ifdef CONFIG_FB_ATY_GX | 537 | #ifdef CONFIG_FB_ATY_GX |
537 | static char ram_vram[] = "VRAM"; | 538 | static char ram_vram[] = "VRAM"; |
538 | #endif /* CONFIG_FB_ATY_GX */ | 539 | #endif /* CONFIG_FB_ATY_GX */ |