* linux-next: build warnings after merge of the kspp tree
@ 2016-06-22 5:14 Stephen Rothwell
2016-06-22 17:10 ` Kees Cook
2016-06-22 17:39 ` Kees Cook
0 siblings, 2 replies; 7+ messages in thread
From: Stephen Rothwell @ 2016-06-22 5:14 UTC (permalink / raw)
To: Kees Cook; +Cc: linux-next, linux-kernel, Emese Revfy
Hi Kees,
After merging the kspp tree, today's linux-next build (i386 defconfig)
produced these warning:
x86_64-linux-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
(over 2000 of these)
Introduced (maybe) by commit
e2135c84d5d2 ("kbuild: no gcc-plugins during cc-option tests")
--
Cheers,
Stephen Rothwell
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the kspp tree
2016-06-22 5:14 linux-next: build warnings after merge of the kspp tree Stephen Rothwell
@ 2016-06-22 17:10 ` Kees Cook
2016-06-22 17:39 ` Kees Cook
1 sibling, 0 replies; 7+ messages in thread
From: Kees Cook @ 2016-06-22 17:10 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linux-Next, LKML, Emese Revfy
On Tue, Jun 21, 2016 at 10:14 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Kees,
>
> After merging the kspp tree, today's linux-next build (i386 defconfig)
> produced these warning:
>
> x86_64-linux-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
>
> (over 2000 of these)
>
> Introduced (maybe) by commit
>
> e2135c84d5d2 ("kbuild: no gcc-plugins during cc-option tests")
I will investigate.
-Kees
--
Kees Cook
Chrome OS & Brillo Security
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the kspp tree
2016-06-22 5:14 linux-next: build warnings after merge of the kspp tree Stephen Rothwell
2016-06-22 17:10 ` Kees Cook
@ 2016-06-22 17:39 ` Kees Cook
1 sibling, 0 replies; 7+ messages in thread
From: Kees Cook @ 2016-06-22 17:39 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linux-Next, LKML, Emese Revfy
On Tue, Jun 21, 2016 at 10:14 PM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Kees,
>
> After merging the kspp tree, today's linux-next build (i386 defconfig)
> produced these warning:
>
> x86_64-linux-gcc: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
>
> (over 2000 of these)
>
> Introduced (maybe) by commit
>
> e2135c84d5d2 ("kbuild: no gcc-plugins during cc-option tests")
This is fixed now in the kspp tree; sorry for the noise. If anyone
wants to manual fix this up for i386 builds:
index 2da7f8eed1d7..f585766989c2 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -109,7 +109,7 @@ as-instr = $(call try-run,\
printf "%b\n" "$(1)" | $(CC) $(KBUILD_AFLAGS) -c -x assembler
-o "$$TMP" -,$(2),$(3))
# Do not attempt to build with gcc plugins during cc-option tests.
-CC_OPTION_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS))
+CC_OPTION_CFLAGS = $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS))
# cc-option
# Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
-Kees
--
Kees Cook
Chrome OS & Brillo Security
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the kspp tree
2024-02-05 5:14 Stephen Rothwell
@ 2024-02-05 12:43 ` Kees Cook
0 siblings, 0 replies; 7+ messages in thread
From: Kees Cook @ 2024-02-05 12:43 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linux Kernel Mailing List, Linux Next Mailing List
On Mon, Feb 05, 2024 at 04:14:46PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the kspp tree, today's linux-next build (htmldocs) produced
> these warnings:
>
> include/linux/overflow.h:97: warning: Function parameter or struct member 'var' not described in 'inc_wrap'
> include/linux/overflow.h:97: warning: Function parameter or struct member 'offset' not described in 'inc_wrap'
> include/linux/overflow.h:97: warning: Excess function parameter 'a' description in 'inc_wrap'
> include/linux/overflow.h:97: warning: Excess function parameter 'b' description in 'inc_wrap'
> include/linux/overflow.h:142: warning: Function parameter or struct member 'var' not described in 'dec_wrap'
> include/linux/overflow.h:142: warning: Function parameter or struct member 'offset' not described in 'dec_wrap'
> include/linux/overflow.h:142: warning: Excess function parameter 'a' description in 'dec_wrap'
> include/linux/overflow.h:142: warning: Excess function parameter 'b' description in 'dec_wrap'
>
> Introduced by commit
>
> 6ad835d8849c ("overflow: Introduce inc_wrap() and dec_wrap()")
Eek, thanks! I've fixed and pushed this now.
--
Kees Cook
^ permalink raw reply [flat|nested] 7+ messages in thread
* linux-next: build warnings after merge of the kspp tree
@ 2024-02-05 5:14 Stephen Rothwell
2024-02-05 12:43 ` Kees Cook
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2024-02-05 5:14 UTC (permalink / raw)
To: Kees Cook; +Cc: Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 1057 bytes --]
Hi all,
After merging the kspp tree, today's linux-next build (htmldocs) produced
these warnings:
include/linux/overflow.h:97: warning: Function parameter or struct member 'var' not described in 'inc_wrap'
include/linux/overflow.h:97: warning: Function parameter or struct member 'offset' not described in 'inc_wrap'
include/linux/overflow.h:97: warning: Excess function parameter 'a' description in 'inc_wrap'
include/linux/overflow.h:97: warning: Excess function parameter 'b' description in 'inc_wrap'
include/linux/overflow.h:142: warning: Function parameter or struct member 'var' not described in 'dec_wrap'
include/linux/overflow.h:142: warning: Function parameter or struct member 'offset' not described in 'dec_wrap'
include/linux/overflow.h:142: warning: Excess function parameter 'a' description in 'dec_wrap'
include/linux/overflow.h:142: warning: Excess function parameter 'b' description in 'dec_wrap'
Introduced by commit
6ad835d8849c ("overflow: Introduce inc_wrap() and dec_wrap()")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: linux-next: build warnings after merge of the kspp tree
2021-08-26 8:00 Stephen Rothwell
@ 2021-08-27 3:29 ` Kees Cook
0 siblings, 0 replies; 7+ messages in thread
From: Kees Cook @ 2021-08-27 3:29 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: Linux Kernel Mailing List, Linux Next Mailing List
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* linux-next: build warnings after merge of the kspp tree
@ 2021-08-26 8:00 Stephen Rothwell
2021-08-27 3:29 ` Kees Cook
0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2021-08-26 8:00 UTC (permalink / raw)
To: Kees Cook; +Cc: Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 45766 bytes --]
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_file_write':
kernel/cgroup/cgroup.c:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_get_e_css':
kernel/cgroup/cgroup.c:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
kernel/cgroup/cgroup.c:590:27: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
590 | css = init_css_set.subsys[ss->id];
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:205:30: note: while referencing 'subsys'
205 | struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
kernel/cgroup/cgroup.c:744:16: note: defined here 'init_css_set'
744 | struct css_set init_css_set = {
| ^~~~~~~~~~~~
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 'cgroup_subtree_control_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_controllers_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cpu_stat_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_freeze_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_max_depth_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_max_descendants_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_stat_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_events_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_type_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_seqfile_show':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_addrm_files':
kernel/cgroup/cgroup.c:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_e_css':
kernel/cgroup/cgroup.c:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
kernel/cgroup/cgroup.c:561:28: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
561 | return init_css_set.subsys[ss->id];
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:205:30: note: while referencing 'subsys'
205 | struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
kernel/cgroup/cgroup.c:744:16: note: defined here 'init_css_set'
744 | struct css_set init_css_set = {
| ^~~~~~~~~~~~
kernel/cgroup/cgroup.c: In function 'cgroup_taskset_next':
kernel/cgroup/cgroup.c:2395:29: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
2395 | *dst_cssp = cset->subsys[tset->ssid];
| ~~~~~~~~~~~~^~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:205:30: note: while referencing 'subsys'
205 | struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
kernel/cgroup/cgroup.c:2393:42: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
2393 | *dst_cssp = cset->mg_dst_cset->subsys[tset->ssid];
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:205:30: note: while referencing 'subsys'
205 | struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_rm_cftypes':
kernel/cgroup/cgroup.c:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
kernel/cgroup/cgroup.c: In function 'css_task_iter_start':
kernel/cgroup/cgroup.c:4647:18: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct list_head[0]' [-Wzero-length-bounds]
4647 | it->cset_pos = &css->cgroup->e_csets[css->ss->id];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:443:19: note: while referencing 'e_csets'
443 | struct list_head e_csets[CGROUP_SUBSYS_COUNT];
| ^~~~~~~
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 '__cgroup_procs_start':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'cgroup_procs_start':
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]);
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:403:25: note: in expansion of macro 'READ_ONCE'
403 | typeof(p) ________p1 = READ_ONCE(p); \
| ^~~~~~~~~
kernel/cgroup/cgroup.c:651:10: note: in expansion of macro 'rcu_dereference_raw'
651 | return rcu_dereference_raw(cgrp->subsys[cft->ss->id]);
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
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 'css_tryget_online_from_dir':
kernel/cgroup/cgroup.c:476:44: warning: array subscript '<unknown>' is outside the bounds of an interior zero-length array 'struct cgroup_subsys_state *[0]' [-Wzero-length-bounds]
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rcupdate.h:389:48: note: in expansion of macro 'READ_ONCE'
389 | typeof(*p) *________p1 = (typeof(*p) *__force)READ_ONCE(p); \
| ^~~~~~~~~
include/linux/rcupdate.h:528:2: note: in expansion of macro '__rcu_dereference_check'
528 | __rcu_dereference_check((p), (c) || rcu_read_lock_held(), __rcu)
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/cgroup/cgroup.c:476:10: note: in expansion of macro 'rcu_dereference_check'
476 | return rcu_dereference_check(cgrp->subsys[ss->id],
| ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/cgroup.h:28,
from kernel/cgroup/cgroup-internal.h:5,
from kernel/cgroup/cgroup.c:31:
include/linux/cgroup-defs.h:426:36: note: while referencing 'subsys'
426 | struct cgroup_subsys_state __rcu *subsys[CGROUP_SUBSYS_COUNT];
| ^~~~~~
Introduced by commit
7d8aac16a0a8 ("Makefile: Enable -Wzero-length-bounds")
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-02-05 12:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-22 5:14 linux-next: build warnings after merge of the kspp tree Stephen Rothwell
2016-06-22 17:10 ` Kees Cook
2016-06-22 17:39 ` Kees Cook
2021-08-26 8:00 Stephen Rothwell
2021-08-27 3:29 ` Kees Cook
2024-02-05 5:14 Stephen Rothwell
2024-02-05 12:43 ` Kees Cook
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).