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>] [day] [month] [year] [list]
Date:	Tue,  5 Feb 2013 22:35:43 +0800
From:	Haojian Zhuang <haojian.zhuang@...aro.org>
To:	qingx@...vell.com, sameo@...ux.intel.com,
	linux-kernel@...r.kernel.org
Cc:	patches@...aro.org, Haojian Zhuang <haojian.zhuang@...aro.org>
Subject: [PATCH] backlight: max8925: clean build warning

drivers/video/backlight/max8925_bl.c: In function
‘max8925_backlight_probe’:
drivers/video/backlight/max8925_bl.c:177:3: warning: statement with no
effect [-Wunused-value]

Replace the macro definition by function.

Signed-off-by: Haojian Zhuang <haojian.zhuang@...aro.org>
---
 drivers/video/backlight/max8925_bl.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c
index 5ca11b0..d0714ad 100644
--- a/drivers/video/backlight/max8925_bl.c
+++ b/drivers/video/backlight/max8925_bl.c
@@ -121,7 +121,11 @@ static int max8925_backlight_dt_init(struct platform_device *pdev,
 	return 0;
 }
 #else
-#define max8925_backlight_dt_init(x, y)	(-1)
+static int max8925_backlight_dt_init(struct platform_device *pdev,
+			      struct max8925_backlight_pdata *pdata)
+{
+	return -1;
+}
 #endif
 
 static int max8925_backlight_probe(struct platform_device *pdev)
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ