From: Kees Cook <keescook@chromium.org>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>
Subject: Re: linux-next: build warnings after merge of the kspp tree
Date: Thu, 26 Aug 2021 20:29:01 -0700 [thread overview]
Message-ID: <202108262021.65CA0EC3@keescook> (raw)
In-Reply-To: <20210826180042.35e8aab6@canb.auug.org.au>
On Thu, Aug 26, 2021 at 06:00:42PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> After merging the kspp tree, today's linux-next build (arm
> multi_v7_defconfig) produced these warnings:
>
> In file included from ./arch/arm/include/generated/asm/rwonce.h:1,
> from include/linux/compiler.h:264,
> from include/uapi/linux/swab.h:6,
> from include/linux/swab.h:5,
> from arch/arm/include/asm/opcodes.h:86,
> from arch/arm/include/asm/bug.h:7,
> from include/linux/bug.h:5,
> from include/linux/thread_info.h:13,
> from include/asm-generic/current.h:5,
> from ./arch/arm/include/generated/asm/current.h:1,
> from include/linux/sched.h:12,
> from include/linux/cgroup.h:12,
> from kernel/cgroup/cgroup-internal.h:5,
> from kernel/cgroup/cgroup.c:31:
> kernel/cgroup/cgroup.c: In function 'of_css':
> kernel/cgroup/cgroup.c:651:42: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
> 651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
Oh, that's cute. That's "with cgroups but no cgroup subsystems". :P I
will get this fixed.
> [...]
> Introduced by commit
>
> 7d8aac16a0a8 ("Makefile: Enable -Wzero-length-bounds")
>
> --
> Cheers,
> Stephen Rothwell
--
Kees Cook
next prev parent reply other threads:[~2021-08-27 3:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 8:00 linux-next: build warnings after merge of the kspp tree Stephen Rothwell
2021-08-27 3:29 ` Kees Cook [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-02-05 5:14 Stephen Rothwell
2024-02-05 12:43 ` Kees Cook
2016-06-22 5:14 Stephen Rothwell
2016-06-22 17:10 ` Kees Cook
2016-06-22 17:39 ` Kees Cook
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=202108262021.65CA0EC3@keescook \
--to=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.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 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).