summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-02-19 15:10:10 -0800
committerKhem Raj <raj.khem@gmail.com>2018-02-19 20:18:45 -0800
commitecc37a0f8ac8a08ecf63b0df1c34f26317bcbc69 (patch)
tree00cf90ba7f9b2c4b877ca0d3c3b9ad76b90495a8
parent3d836fcc4a8fe198f113148e0100e64f6acbfab1 (diff)
downloadu-boot-odroid-c1-ecc37a0f8ac8a08ecf63b0df1c34f26317bcbc69.tar.gz
drivers/gpio: Disable int-in-bool-context with gcc7
This warning when treated as error fails the build amlogic_gpio.c:69:20: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] bool dir = !!(val * BIT(bit)); ~~~~~^~~~~~~~~~~ Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--drivers/gpio/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index 8d95da9931..b6e36db566 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -38,3 +38,5 @@ obj-$(CONFIG_TCA642X) += tca642x.o
oby-$(CONFIG_SX151X) += sx151x.o
obj-$(CONFIG_SUNXI_GPIO) += sunxi_gpio.o
obj-$(CONFIG_AML_GPIO) += amlogic_gpio.o
+
+ccflags-$(CONFIG_AML_GPIO) += $(call cc-option,-Wno-int-in-bool-context)