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-next>] [day] [month] [year] [list]
Date:	Tue, 21 Jul 2015 09:00:07 -0700
From:	Guenter Roeck <linux@...ck-us.net>
To:	Liam Girdwood <lgirdwood@...il.com>
Cc:	Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org,
	Guenter Roeck <linux@...ck-us.net>,
	Chris Zhong <zyw@...k-chips.com>
Subject: [PATCH -next] regulator: rk808: Add missing include file

Include gpio/consumer.h to avoid the following build errors if GPIOLIB
is not configured.

drivers/regulator/rk808-regulator.c:97:2: error:
	implicit declaration of function 'gpiod_get_value'
drivers/regulator/rk808-regulator.c:194:2: error:
	implicit declaration of function 'gpiod_set_value'
drivers/regulator/rk808-regulator.c:543:3: error:
	implicit declaration of function 'gpiod_get_index'
drivers/regulator/rk808-regulator.c:543:62: error: 'GPIOD_ASIS' undeclared
drivers/regulator/rk808-regulator.c:549:3: error:
	implicit declaration of function 'gpiod_direction_output'
drivers/regulator/rk808-regulator.c:553:5: error:
	implicit declaration of function 'gpiod_is_active_low'
drivers/regulator/rk808-regulator.c:569:4: error:
		implicit declaration of function 'gpiod_put'

Fixes: bad47ad2eef3 ("regulator: rk808: fixed the overshoot when adjust
	voltage")
Cc: Chris Zhong <zyw@...k-chips.com>
Signed-off-by: Guenter Roeck <linux@...ck-us.net>
---
 drivers/regulator/rk808-regulator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/regulator/rk808-regulator.c b/drivers/regulator/rk808-regulator.c
index cfec52c1a4a2..2dd4e7df2ae4 100644
--- a/drivers/regulator/rk808-regulator.c
+++ b/drivers/regulator/rk808-regulator.c
@@ -18,6 +18,7 @@
 
 #include <linux/delay.h>
 #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/i2c.h>
 #include <linux/module.h>
 #include <linux/of_device.h>
-- 
2.1.0

--
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