[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210113145009.1272040-5-lee.jones@linaro.org>
Date: Wed, 13 Jan 2021 14:49:42 +0000
From: Lee Jones <lee.jones@...aro.org>
To: lee.jones@...aro.org
Cc: linux-kernel@...r.kernel.org,
Vaibhav Gupta <vaibhavgupta40@...il.com>,
Alex Kern <alex.kern@....de>, "Eddie C. Dost" <ecd@...net.be>,
Anthony Tong <atong@...c.edu>, dri-devel@...ts.freedesktop.org,
linux-fbdev@...r.kernel.org
Subject: [PATCH 04/31] video: fbdev: aty: atyfb_base: Mark 'dac_type' as __maybe_unused
'dac_type' is only used in the '#ifdef CONFIG_ATARI' clause.
Fixes the following W=1 kernel build warning(s):
drivers/video/fbdev/aty/atyfb_base.c: In function ‘aty_init’:
drivers/video/fbdev/aty/atyfb_base.c:2363:6: warning: variable ‘dac_type’ set but not used [-Wunused-but-set-variable]
Cc: Vaibhav Gupta <vaibhavgupta40@...il.com>
Cc: Alex Kern <alex.kern@....de>
Cc: "Eddie C. Dost" <ecd@...net.be>
Cc: Anthony Tong <atong@...c.edu>
Cc: dri-devel@...ts.freedesktop.org
Cc: linux-fbdev@...r.kernel.org
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/video/fbdev/aty/atyfb_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c
index 11c328f0585ce..9b056b49f2807 100644
--- a/drivers/video/fbdev/aty/atyfb_base.c
+++ b/drivers/video/fbdev/aty/atyfb_base.c
@@ -2360,7 +2360,7 @@ static int aty_init(struct fb_info *info)
#ifdef CONFIG_FB_ATY_GX
if (!M64_HAS(INTEGRATED)) {
u32 stat0;
- u8 dac_type, dac_subtype, clk_type;
+ u8 __maybe_unused dac_type, dac_subtype, clk_type;
stat0 = aty_ld_le32(CNFG_STAT0, par);
par->bus_type = (stat0 >> 0) & 0x07;
par->ram_type = (stat0 >> 3) & 0x07;
--
2.25.1
Powered by blists - more mailing lists