[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202501101445.zIwSpQgC-lkp@intel.com>
Date: Fri, 10 Jan 2025 14:45:52 +0800
From: kernel test robot <lkp@...el.com>
To: Stephen Boyd <sboyd@...nel.org>,
Michael Turquette <mturquette@...libre.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-clk@...r.kernel.org, patches@...ts.linux.dev
Subject: Re: [PATCH 4/4] clk: Make debugfs code into a loadable kernel module
Hi Stephen,
kernel test robot noticed the following build errors:
[auto build test ERROR on fac04efc5c793dccbd07e2d59af9f90b7fc0dca4]
url: https://github.com/intel-lab-lkp/linux/commits/Stephen-Boyd/clk-Prepare-clk_debug_create_one-to-be-split-off/20250108-085933
base: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
patch link: https://lore.kernel.org/r/20250108005854.2973184-5-sboyd%40kernel.org
patch subject: [PATCH 4/4] clk: Make debugfs code into a loadable kernel module
config: parisc-randconfig-001-20250110 (https://download.01.org/0day-ci/archive/20250110/202501101445.zIwSpQgC-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250110/202501101445.zIwSpQgC-lkp@intel.com/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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501101445.zIwSpQgC-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/clk/clk.c: In function 'clk_core_debug_create_one':
>> drivers/clk/clk.c:3513:13: error: 'struct clk_core' has no member named 'dentry'
3513 | core->dentry = clk_hw_debug_create_one(hw);
| ^~
drivers/clk/clk.c:3515:47: error: 'struct clk_core' has no member named 'dentry'
3515 | core->ops->debug_init(hw, core->dentry);
| ^~
drivers/clk/clk.c: In function 'clk_debug_register':
>> drivers/clk/clk.c:3529:29: error: 'struct clk_core' has no member named 'debug_node'
3529 | hlist_add_head(&core->debug_node, &clk_debug_list);
| ^~
drivers/clk/clk.c: In function 'clk_core_debug_remove_one':
drivers/clk/clk.c:3536:29: error: 'struct clk_core' has no member named 'debug_node'
3536 | hlist_del_init(&core->debug_node);
| ^~
drivers/clk/clk.c:3537:38: error: 'struct clk_core' has no member named 'dentry'
3537 | debugfs_remove_recursive(core->dentry);
| ^~
drivers/clk/clk.c:3538:13: error: 'struct clk_core' has no member named 'dentry'
3538 | core->dentry = NULL;
| ^~
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/clk.c:9:
drivers/clk/clk.c: In function 'clk_hw_debug_for_each_init':
>> include/linux/container_of.h:20:54: error: 'struct clk_core' has no member named 'debug_node'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1155:20: note: in expansion of macro 'hlist_entry_safe'
1155 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer
483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1155:20: note: in expansion of macro 'hlist_entry_safe'
1155 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/parisc/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:324,
from include/linux/err.h:5,
from include/linux/clk.h:12:
>> include/linux/stddef.h:16:33: error: 'struct clk_core' has no member named 'debug_node'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~
include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof'
23 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1155:20: note: in expansion of macro 'hlist_entry_safe'
1155 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mutex.h:15,
from include/linux/notifier.h:14,
from include/linux/clk.h:14:
>> include/linux/list.h:1157:42: error: 'struct clk_core' has no member named 'debug_node'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~
include/linux/list.h:1144:19: note: in definition of macro 'hlist_entry_safe'
1144 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/list.h:1157:42: error: 'struct clk_core' has no member named 'debug_node'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~
include/linux/list.h:1144:35: note: in definition of macro 'hlist_entry_safe'
1144 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/container_of.h:20:35: error: invalid type argument of unary '*' (have 'int')
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/container_of.h:20:54: error: 'struct clk_core' has no member named 'debug_node'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int')
21 | __same_type(*(ptr), void), \
| ^~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer
483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:16:33: error: 'struct clk_core' has no member named 'debug_node'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~
include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof'
23 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3562:9: note: in expansion of macro 'hlist_for_each_entry'
3562 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
drivers/clk/clk.c: In function 'clk_hw_debug_exit':
>> include/linux/container_of.h:20:54: error: 'struct clk_core' has no member named 'debug_node'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1155:20: note: in expansion of macro 'hlist_entry_safe'
1155 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer
483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1155:20: note: in expansion of macro 'hlist_entry_safe'
1155 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:16:33: error: 'struct clk_core' has no member named 'debug_node'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~
include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof'
23 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1155:20: note: in expansion of macro 'hlist_entry_safe'
1155 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/list.h:1157:42: error: 'struct clk_core' has no member named 'debug_node'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~
include/linux/list.h:1144:19: note: in definition of macro 'hlist_entry_safe'
1144 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/list.h:1157:42: error: 'struct clk_core' has no member named 'debug_node'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~
include/linux/list.h:1144:35: note: in definition of macro 'hlist_entry_safe'
1144 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/container_of.h:20:35: error: invalid type argument of unary '*' (have 'int')
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/container_of.h:20:54: error: 'struct clk_core' has no member named 'debug_node'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int')
21 | __same_type(*(ptr), void), \
| ^~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer
483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert'
78 | #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), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:20:23: note: in expansion of macro '__same_type'
20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
>> include/linux/stddef.h:16:33: error: 'struct clk_core' has no member named 'debug_node'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^~~~~~~~~~~~~~~~~~
include/linux/container_of.h:23:28: note: in expansion of macro 'offsetof'
23 | ((type *)(__mptr - offsetof(type, member))); })
| ^~~~~~~~
include/linux/list.h:1134:40: note: in expansion of macro 'container_of'
1134 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^~~~~~~~~~~~
include/linux/list.h:1145:22: note: in expansion of macro 'hlist_entry'
1145 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^~~~~~~~~~~
include/linux/list.h:1157:20: note: in expansion of macro 'hlist_entry_safe'
1157 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^~~~~~~~~~~~~~~~
drivers/clk/clk.c:3574:9: note: in expansion of macro 'hlist_for_each_entry'
3574 | hlist_for_each_entry(core, &clk_debug_list, debug_node)
| ^~~~~~~~~~~~~~~~~~~~
vim +3513 drivers/clk/clk.c
06c1e876918854 Stephen Boyd 2025-01-07 3505
06c1e876918854 Stephen Boyd 2025-01-07 3506 static void clk_core_debug_create_one(struct clk_core *core)
06c1e876918854 Stephen Boyd 2025-01-07 3507 {
06c1e876918854 Stephen Boyd 2025-01-07 3508 struct clk_hw *hw = core->hw;
06c1e876918854 Stephen Boyd 2025-01-07 3509
22ece94fca2e92 Stephen Boyd 2025-01-07 3510 if (!clk_hw_debug_create_one)
06c1e876918854 Stephen Boyd 2025-01-07 3511 return;
06c1e876918854 Stephen Boyd 2025-01-07 3512
94dffe79bcc703 Stephen Boyd 2025-01-07 @3513 core->dentry = clk_hw_debug_create_one(hw);
8a26bbbb932021 Greg Kroah-Hartman 2018-05-29 3514 if (core->ops->debug_init)
06c1e876918854 Stephen Boyd 2025-01-07 3515 core->ops->debug_init(hw, core->dentry);
4dff95dc9477a3 Stephen Boyd 2015-04-30 3516 }
b2476490ef1113 Mike Turquette 2012-03-15 3517
4dff95dc9477a3 Stephen Boyd 2015-04-30 3518 /**
6e5ab41b1064ee Stephen Boyd 2015-04-30 3519 * clk_debug_register - add a clk node to the debugfs clk directory
6e5ab41b1064ee Stephen Boyd 2015-04-30 3520 * @core: the clk being added to the debugfs clk directory
4dff95dc9477a3 Stephen Boyd 2015-04-30 3521 *
6e5ab41b1064ee Stephen Boyd 2015-04-30 3522 * Dynamically adds a clk to the debugfs clk directory if debugfs has been
6e5ab41b1064ee Stephen Boyd 2015-04-30 3523 * initialized. Otherwise it bails out early since the debugfs clk directory
4dff95dc9477a3 Stephen Boyd 2015-04-30 3524 * will be created lazily by clk_debug_init as part of a late_initcall.
4dff95dc9477a3 Stephen Boyd 2015-04-30 3525 */
8a26bbbb932021 Greg Kroah-Hartman 2018-05-29 3526 static void clk_debug_register(struct clk_core *core)
4dff95dc9477a3 Stephen Boyd 2015-04-30 3527 {
4dff95dc9477a3 Stephen Boyd 2015-04-30 3528 mutex_lock(&clk_debug_lock);
4dff95dc9477a3 Stephen Boyd 2015-04-30 @3529 hlist_add_head(&core->debug_node, &clk_debug_list);
06c1e876918854 Stephen Boyd 2025-01-07 3530 clk_core_debug_create_one(core);
4dff95dc9477a3 Stephen Boyd 2015-04-30 3531 mutex_unlock(&clk_debug_lock);
b2476490ef1113 Mike Turquette 2012-03-15 3532 }
035a61c314eb3d Tomeu Vizoso 2015-01-23 3533
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists