[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202503011920.E8wPk3yy-lkp@intel.com>
Date: Sat, 1 Mar 2025 19:42:31 +0800
From: kernel test robot <lkp@...el.com>
To: xiaopeitux@...mail.com, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org, andriy.shevchenko@...ux.intel.com
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Pei Xiao <xiaopei01@...inos.cn>
Subject: Re: [PATCH] driver core: Split devres APIs to device/devres.h
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20250227]
[cannot apply to linus/master v6.14-rc4 v6.14-rc3 v6.14-rc2 v6.14-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/xiaopeitux-foxmail-com/driver-core-Split-devres-APIs-to-device-devres-h/20250228-172012
base: next-20250227
patch link: https://lore.kernel.org/r/tencent_66CF9C91EB4A4417F70E9511649A57DEC906%40qq.com
patch subject: [PATCH] driver core: Split devres APIs to device/devres.h
config: arm64-randconfig-004-20250301 (https://download.01.org/0day-ci/archive/20250301/202503011920.E8wPk3yy-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250301/202503011920.E8wPk3yy-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/202503011920.E8wPk3yy-lkp@intel.com/
All error/warnings (new ones prefixed by >>):
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:10:
>> include/linux/device/devres.h:182:6: error: variable has incomplete type 'void'
182 | void __percpu *__devm_alloc_percpu(struct device *dev, size_t size,
| ^
include/linux/compiler_types.h:60:19: note: expanded from macro '__percpu'
60 | # define __percpu __percpu_qual BTF_TYPE_TAG(percpu)
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:10:
>> include/linux/device/devres.h:182:15: error: expected ';' after top level declarator
182 | void __percpu *__devm_alloc_percpu(struct device *dev, size_t size,
| ^
>> include/linux/device/devres.h:184:57: error: expected ')'
184 | void devm_free_percpu(struct device *dev, void __percpu *pdata);
| ^
include/linux/device/devres.h:184:22: note: to match this '('
184 | void devm_free_percpu(struct device *dev, void __percpu *pdata);
| ^
>> include/linux/device/devres.h:184:48: error: 'void' must be the first and only parameter if specified
184 | void devm_free_percpu(struct device *dev, void __percpu *pdata);
| ^
include/linux/compiler_types.h:60:19: note: expanded from macro '__percpu'
60 | # define __percpu __percpu_qual BTF_TYPE_TAG(percpu)
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:10:
>> include/linux/device/devres.h:186:25: warning: declaration of 'struct attribute_group' will not be visible outside of this function [-Wvisibility]
186 | const struct attribute_group *grp);
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:13:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:14:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/arm64/include/asm/elf.h:141:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
98 | return (set->sig[3] | set->sig[2] |
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:13:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:14:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/arm64/include/asm/elf.h:141:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
98 | return (set->sig[3] | set->sig[2] |
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:13:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:14:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/arm64/include/asm/elf.h:141:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
99 | set->sig[1] | set->sig[0]) == 0;
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:13:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:14:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/arm64/include/asm/elf.h:141:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
101 | return (set->sig[1] | set->sig[0]) == 0;
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:13:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:14:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/arm64/include/asm/elf.h:141:
In file included from include/linux/fs.h:34:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
114 | return (set1->sig[3] == set2->sig[3]) &&
| ^ ~
include/uapi/asm-generic/signal.h:62:2: note: array 'sig' declared here
62 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from drivers/iio/imu/st_lsm9ds0/st_lsm9ds0_i2c.c:13:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:14:
In file included from include/linux/device.h:32:
In file included from include/linux/device/driver.h:21:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/arm64/include/asm/elf.h:141:
vim +/void +182 include/linux/device/devres.h
148
149 int __devm_add_action(struct device *dev, void (*action)(void *), void *data, const char *name);
150 #define devm_add_action(dev, action, data) \
151 __devm_add_action(dev, action, data, #action)
152
153 static inline int __devm_add_action_or_reset(struct device *dev, void (*action)(void *),
154 void *data, const char *name)
155 {
156 int ret;
157
158 ret = __devm_add_action(dev, action, data, name);
159 if (ret)
160 action(data);
161
162 return ret;
163 }
164 #define devm_add_action_or_reset(dev, action, data) \
165 __devm_add_action_or_reset(dev, action, data, #action)
166
167 /**
168 * devm_alloc_percpu - Resource-managed alloc_percpu
169 * @dev: Device to allocate per-cpu memory for
170 * @type: Type to allocate per-cpu memory for
171 *
172 * Managed alloc_percpu. Per-cpu memory allocated with this function is
173 * automatically freed on driver detach.
174 *
175 * RETURNS:
176 * Pointer to allocated memory on success, NULL on failure.
177 */
178 #define devm_alloc_percpu(dev, type) \
179 ((typeof(type) __percpu *)__devm_alloc_percpu((dev), sizeof(type), \
180 __alignof__(type)))
181
> 182 void __percpu *__devm_alloc_percpu(struct device *dev, size_t size,
183 size_t align);
> 184 void devm_free_percpu(struct device *dev, void __percpu *pdata);
185 int __must_check devm_device_add_group(struct device *dev,
> 186 const struct attribute_group *grp);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists