Re: [PATCH 2/6] clk: renesas: r9a06g032: Add reset controller

From: kernel test robot

Date: Fri Nov 20 2026 - 18:26:26 EST


Hi Kyle,

kernel test robot noticed the following build errors:

[auto build test ERROR on 662377fd1bb1d7cf4e97d312255fed868f56342d]

url: https://github.com/intel-lab-lkp/linux/commits/Kyle-Hendry-via-B4-Relay/dt-bindings-clock-r9a06g032-sysctrl-Document-reset-cells/20261119-095743
base: 662377fd1bb1d7cf4e97d312255fed868f56342d
patch link: https://lore.kernel.org/r/20261119-rzn1-miic-resets-v1-2-feee2bb28bb4%40reliablecontrols.com
patch subject: [PATCH 2/6] clk: renesas: r9a06g032: Add reset controller
config: arm-shmobile_defconfig (https://download.01.org/0day-ci/archive/20261121/202611210721.sFAijXHV-lkp@xxxxxxxxx/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261121/202611210721.sFAijXHV-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611210721.sFAijXHV-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from include/linux/container_of.h:5,
from include/linux/kernel.h:22,
from include/linux/clk.h:13,
from drivers/clk/renesas/r9a06g032-clocks.c:10:
drivers/clk/renesas/r9a06g032-clocks.c: In function 'r9a06g032_reset_set':
>> include/linux/container_of.h:8:47: error: 'struct r9a06g032_priv' has no member named 'rcdev'
8 | #define typeof_member(T, m) typeof(((T*)0)->m)
| ^~
include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~
include/linux/container_of.h:20:43: note: in expansion of macro 'typeof_member'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1317:33: note: in expansion of macro 'container_of'
1317 | #define rcdev_to_priv(x) container_of(x, struct r9a06g032_priv, rcdev)
| ^~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1322:39: note: in expansion of macro 'rcdev_to_priv'
1322 | struct r9a06g032_priv *priv = rcdev_to_priv(rcdev);
| ^~~~~~~~~~~~~
>> include/linux/compiler_types.h:610:27: error: expression in static assertion is not an integer
610 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1317:33: note: in expansion of macro 'container_of'
1317 | #define rcdev_to_priv(x) container_of(x, struct r9a06g032_priv, rcdev)
| ^~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1322:39: note: in expansion of macro 'rcdev_to_priv'
1322 | struct r9a06g032_priv *priv = rcdev_to_priv(rcdev);
| ^~~~~~~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:5,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/arm/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:391,
from include/linux/err.h:5,
from include/linux/clk.h:12:
>> include/linux/stddef.h:16:33: error: 'struct r9a06g032_priv' has no member named 'rcdev'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~
include/linux/container_of.h:23:34: note: in expansion of macro 'offsetof'
23 | (type *)((void *)(ptr) - offsetof(type, member)); })
| ^~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1317:33: note: in expansion of macro 'container_of'
1317 | #define rcdev_to_priv(x) container_of(x, struct r9a06g032_priv, rcdev)
| ^~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1322:39: note: in expansion of macro 'rcdev_to_priv'
1322 | struct r9a06g032_priv *priv = rcdev_to_priv(rcdev);
| ^~~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c: In function 'r9a06g032_reset_status':
>> include/linux/container_of.h:8:47: error: 'struct r9a06g032_priv' has no member named 'rcdev'
8 | #define typeof_member(T, m) typeof(((T*)0)->m)
| ^~
include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~
include/linux/container_of.h:20:43: note: in expansion of macro 'typeof_member'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1317:33: note: in expansion of macro 'container_of'
1317 | #define rcdev_to_priv(x) container_of(x, struct r9a06g032_priv, rcdev)
| ^~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1354:39: note: in expansion of macro 'rcdev_to_priv'
1354 | struct r9a06g032_priv *priv = rcdev_to_priv(rcdev);
| ^~~~~~~~~~~~~
>> include/linux/compiler_types.h:610:27: error: expression in static assertion is not an integer
610 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:80:56: note: in definition of macro '__static_assert'
80 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^~~~
include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
| ^~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1317:33: note: in expansion of macro 'container_of'
1317 | #define rcdev_to_priv(x) container_of(x, struct r9a06g032_priv, rcdev)
| ^~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1354:39: note: in expansion of macro 'rcdev_to_priv'
1354 | struct r9a06g032_priv *priv = rcdev_to_priv(rcdev);
| ^~~~~~~~~~~~~
>> include/linux/stddef.h:16:33: error: 'struct r9a06g032_priv' has no member named 'rcdev'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~
include/linux/container_of.h:23:34: note: in expansion of macro 'offsetof'
23 | (type *)((void *)(ptr) - offsetof(type, member)); })
| ^~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1317:33: note: in expansion of macro 'container_of'
1317 | #define rcdev_to_priv(x) container_of(x, struct r9a06g032_priv, rcdev)
| ^~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c:1354:39: note: in expansion of macro 'rcdev_to_priv'
1354 | struct r9a06g032_priv *priv = rcdev_to_priv(rcdev);
| ^~~~~~~~~~~~~
drivers/clk/renesas/r9a06g032-clocks.c: In function 'r9a06g032_clocks_probe':
>> drivers/clk/renesas/r9a06g032-clocks.c:1463:15: error: 'struct r9a06g032_priv' has no member named 'rcdev'
1463 | clocks->rcdev.ops = &r9a06g032_reset_ops;
| ^~
drivers/clk/renesas/r9a06g032-clocks.c:1464:15: error: 'struct r9a06g032_priv' has no member named 'rcdev'
1464 | clocks->rcdev.of_node = np;
| ^~
drivers/clk/renesas/r9a06g032-clocks.c:1465:15: error: 'struct r9a06g032_priv' has no member named 'rcdev'
1465 | clocks->rcdev.of_reset_n_cells = 1;
| ^~
drivers/clk/renesas/r9a06g032-clocks.c:1466:15: error: 'struct r9a06g032_priv' has no member named 'rcdev'
1466 | clocks->rcdev.nr_resets = ARRAY_SIZE(r9a06g032_resets);
| ^~
drivers/clk/renesas/r9a06g032-clocks.c:1467:61: error: 'struct r9a06g032_priv' has no member named 'rcdev'
1467 | error = devm_reset_controller_register(dev, &clocks->rcdev);
| ^~


vim +8 include/linux/container_of.h

d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 4
d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 @5 #include <linux/build_bug.h>
2b8e35337605ca5 Andy Shevchenko 2023-01-30 6 #include <linux/stddef.h>
d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 7
d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 @8 #define typeof_member(T, m) typeof(((T*)0)->m)
d2a8ebbf8192b84 Andy Shevchenko 2021-11-08 9

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki