linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: aspeed: Wrap -Woverride-init with cc-option
@ 2018-12-11  0:05 Nathan Chancellor
  2018-12-11  0:10 ` Andrew Jeffery
  2018-12-16  0:23 ` Linus Walleij
  0 siblings, 2 replies; 5+ messages in thread
From: Nathan Chancellor @ 2018-12-11  0:05 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Joel Stanley, Andrew Jeffery, linux-gpio, linux-arm-kernel,
	linux-aspeed, linux-kernel, Nathan Chancellor

Clang does not support this option:

warning: unknown warning option '-Woverride-init'; did you mean
'-Woverride-module'? [-Wunknown-warning-option]
1 warning generated.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
---
 drivers/pinctrl/aspeed/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/aspeed/Makefile b/drivers/pinctrl/aspeed/Makefile
index 191ed0fc1804..790b406aae19 100644
--- a/drivers/pinctrl/aspeed/Makefile
+++ b/drivers/pinctrl/aspeed/Makefile
@@ -1,6 +1,6 @@
 # Aspeed pinctrl support
 
-ccflags-y += -Woverride-init
+ccflags-y += $(call cc-option,-Woverride-init)
 obj-$(CONFIG_PINCTRL_ASPEED)	+= pinctrl-aspeed.o
 obj-$(CONFIG_PINCTRL_ASPEED_G4)	+= pinctrl-aspeed-g4.o
 obj-$(CONFIG_PINCTRL_ASPEED_G5)	+= pinctrl-aspeed-g5.o
-- 
2.20.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-16  0:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-11  0:05 [PATCH] pinctrl: aspeed: Wrap -Woverride-init with cc-option Nathan Chancellor
2018-12-11  0:10 ` Andrew Jeffery
2018-12-11  0:16   ` Joel Stanley
2018-12-11  0:25     ` Nathan Chancellor
2018-12-16  0:23 ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).