All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: aspeed: Wrap -Woverride-init with cc-option
@ 2018-12-11  0:05 ` Nathan Chancellor
  0 siblings, 0 replies; 15+ messages in thread
From: Nathan Chancellor @ 2018-12-11  0:05 UTC (permalink / raw)
  To: linux-aspeed

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] 15+ messages in thread

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

Thread overview: 15+ 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:05 ` Nathan Chancellor
2018-12-11  0:05 ` Nathan Chancellor
2018-12-11  0:10 ` Andrew Jeffery
2018-12-11  0:10   ` Andrew Jeffery
2018-12-11  0:10   ` Andrew Jeffery
2018-12-11  0:16   ` Joel Stanley
2018-12-11  0:16     ` Joel Stanley
2018-12-11  0:16     ` Joel Stanley
2018-12-11  0:25     ` Nathan Chancellor
2018-12-11  0:25       ` Nathan Chancellor
2018-12-11  0:25       ` Nathan Chancellor
2018-12-16  0:23 ` Linus Walleij
2018-12-16  0:23   ` Linus Walleij
2018-12-16  0:23   ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.