linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: linuxppc-dev@ozlabs.org
Cc: maddy@linux.ibm.com, keescook@chromium.org
Subject: [PATCH 3/4] powerpc: Add -Wvla to arch CFLAGS
Date: Wed, 10 Oct 2018 16:13:07 +1100	[thread overview]
Message-ID: <20181010051308.25422-3-mpe@ellerman.id.au> (raw)
In-Reply-To: <20181010051308.25422-1-mpe@ellerman.id.au>

Upstream has declared that Variable Length Array's (VLAs) are a bad
idea, and eventually -Wvla will be added to the top-level Makefile. We
can go one better and make sure we don't introduce any more by adding
it to the arch Makefile.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
 arch/powerpc/Kbuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/Kbuild b/arch/powerpc/Kbuild
index 1625a06802ca..86b261d6bde5 100644
--- a/arch/powerpc/Kbuild
+++ b/arch/powerpc/Kbuild
@@ -1,4 +1,5 @@
-subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
+subdir-ccflags-y := $(call cc-option, -Wvla)
+subdir-ccflags-$(CONFIG_PPC_WERROR) += -Werror
 
 obj-y += kernel/
 obj-y += mm/
-- 
2.17.1


  parent reply	other threads:[~2018-10-10  5:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-10  5:13 [PATCH 1/4] powerpc: Move core kernel logic into arch/powerpc/Kbuild Michael Ellerman
2018-10-10  5:13 ` [PATCH 2/4] powerpc: Add -Werror at arch/powerpc level Michael Ellerman
2018-10-19  2:51   ` [2/4] " Michael Ellerman
2018-10-10  5:13 ` Michael Ellerman [this message]
2018-10-10 14:45   ` [PATCH 3/4] powerpc: Add -Wvla to arch CFLAGS Kees Cook
2018-10-11  0:30     ` Michael Ellerman
2018-10-10  5:13 ` [PATCH 4/4] powerpc: Add -Wimplicit-fallthrough " Michael Ellerman
2018-10-10 14:47   ` Kees Cook
2018-10-11  0:32     ` Michael Ellerman
2018-10-11  1:35       ` Kees Cook
2018-10-11 13:11         ` Gustavo A. R. Silva
2018-10-11 15:23       ` Gustavo A. R. Silva
2018-10-12  9:32         ` Michael Ellerman
2018-10-12  9:59           ` Gustavo A. R. Silva
2018-10-13  1:23             ` Kees Cook
2018-10-13  7:39               ` Gustavo A. R. Silva
2018-10-10 16:55   ` kbuild test robot
2018-10-10 17:00   ` kbuild test robot
2018-10-19  2:51 ` [1/4] powerpc: Move core kernel logic into arch/powerpc/Kbuild Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181010051308.25422-3-mpe@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=keescook@chromium.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=maddy@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).