From: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
To: Kees Cook <kees@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
nathan@kernel.org, hch@lst.de,
Madhavan Srinivasan <maddy@linux.ibm.com>,
LKML <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: [linux-next-20250422] Build failure: Wvla-larger-than=0 is meaningless
Date: Sat, 26 Apr 2025 20:23:49 +0530 [thread overview]
Message-ID: <e8bf676e-7bf0-4896-b104-ac75e1b22d2e@linux.ibm.com> (raw)
In-Reply-To: <202504252249.6F09D31FD1@keescook>
On 26/04/25 11:20 am, Kees Cook wrote:
> On Wed, Apr 23, 2025 at 07:11:43PM +0530, Venkat Rao Bagalkote wrote:
>> I am observing linux-next build failure on IBM Power8 server.
>>
>>
>> Repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
>>
>> Branch: master
>>
>> GCC: 8.5.0 20210514
>>
>> ldd (GNU libc) 2.28
>>
>> Attached is the .config file.
>>
>>
>> Build errors:
>>
>>
>> [[01m^[[Kcc1:^[[m^[[K ^[[01;36m^[[Knote: ^[[m^[[K-Wvla-larger-than=0 is
>> meaningless
> Weird that it doesn't get dropped by "cc-option". I reproduced the
> issue, and this patch seems to fix it:
>
> diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
> index 70ff932fd5ec..59d3d196fe4f 100644
> --- a/scripts/Makefile.extrawarn
> +++ b/scripts/Makefile.extrawarn
> @@ -51,7 +51,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
> # types, so depend on GCC for now to keep stack VLAs out of the tree.
> # https://github.com/llvm/llvm-project/issues/57098
> # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98217
> -KBUILD_CFLAGS += $(call cc-option,-Wvla-larger-than=0)
> +KBUILD_CFLAGS += $(call cc-option,-Wvla-larger-than=1)
>
> # disable pointer signed / unsigned warnings in gcc 4.0
> KBUILD_CFLAGS += -Wno-pointer-sign
>
Thanks for the fix. Applied the above patch on top of next-20250424 and
it fixes the reported issue. Hence,
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Regards,
Venkat.
prev parent reply other threads:[~2025-04-26 14:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-23 13:41 [linux-next-20250422] Build failure: Wvla-larger-than=0 is meaningless Venkat Rao Bagalkote
2025-04-26 5:21 ` Venkat Rao Bagalkote
2025-04-26 5:50 ` Kees Cook
2025-04-26 14:53 ` Venkat Rao Bagalkote [this message]
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=e8bf676e-7bf0-4896-b104-ac75e1b22d2e@linux.ibm.com \
--to=venkat88@linux.ibm.com \
--cc=hch@lst.de \
--cc=kees@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=maddy@linux.ibm.com \
--cc=nathan@kernel.org \
--cc=sfr@canb.auug.org.au \
/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 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.