lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210113145009.1272040-21-lee.jones@linaro.org>
Date:   Wed, 13 Jan 2021 14:49:58 +0000
From:   Lee Jones <lee.jones@...aro.org>
To:     lee.jones@...aro.org
Cc:     linux-kernel@...r.kernel.org, carter@...psci.bristol.ac.uk,
        William Rucklidge <wjr@...cornell.edu>,
        Jes Sorensen <jds@....auc.dk>,
        Emmanuel Marty <core@...-project.org>,
        Jakub Jelinek <jj@...ra.linux.cz>, Martin Mares <mj@....cz>,
        Brad Douglas <brad@...uo.com>, dri-devel@...ts.freedesktop.org,
        linux-fbdev@...r.kernel.org
Subject: [PATCH 20/31] video: fbdev: core: fbcon: Mark 'pending' as __maybe_unused

'pending' is only used if FBCONDEBUG is defined.

Fixes the following W=1 kernel build warning(s):

 drivers/video/fbdev/core/fbcon.c: In function ‘fbcon_exit’:
 drivers/video/fbdev/core/fbcon.c:3295:7: warning: variable ‘pending’ set but not used [-Wunused-but-set-variable]

Cc: carter@...psci.bristol.ac.uk
Cc: William Rucklidge <wjr@...cornell.edu>
Cc: Jes Sorensen <jds@....auc.dk>
Cc: Emmanuel Marty <core@...-project.org>
Cc: Jakub Jelinek <jj@...ra.linux.cz>
Cc: Martin Mares <mj@....cz>
Cc: Brad Douglas <brad@...uo.com>
Cc: dri-devel@...ts.freedesktop.org
Cc: linux-fbdev@...r.kernel.org
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
 drivers/video/fbdev/core/fbcon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c
index bf61598bf1c39..f3d628fd07dc1 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -3292,7 +3292,7 @@ static void fbcon_exit(void)
 #endif
 
 	for_each_registered_fb(i) {
-		int pending = 0;
+		int __maybe_unused pending = 0;
 
 		mapped = 0;
 		info = registered_fb[i];
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ