* [driver-core:driver-core-testing 5/32] include/linux/device.h:381:16: error: implicit declaration of function 'IOMEM_ERR_PTR'
@ 2025-02-20 22:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-20 22:45 UTC (permalink / raw)
To: Pei Xiao; +Cc: oe-kbuild-all, devel, Greg Kroah-Hartman
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head: 820252db26434126c85a78027a1bcbe9c0903204
commit: cd29796e495160c05a672f3098dffe0fb6ae9daf [5/32] driver core: device.h: fix incorrect type in return expression
config: s390-randconfig-002-20250220 (https://download.01.org/0day-ci/archive/20250221/202502210658.mLwakFLV-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250221/202502210658.mLwakFLV-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502210658.mLwakFLV-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/static_call.h:135,
from include/linux/tracepoint.h:22,
from include/trace/syscall.h:5,
from include/linux/syscalls.h:94,
from include/linux/syscalls_api.h:1,
from kernel/sched/core.c:14:
include/linux/device.h: In function 'devm_ioremap_resource':
>> include/linux/device.h:381:16: error: implicit declaration of function 'IOMEM_ERR_PTR' [-Wimplicit-function-declaration]
381 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~
>> include/linux/device.h:381:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
381 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h: In function 'devm_ioremap_resource_wc':
include/linux/device.h:388:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
388 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h: In function 'devm_of_iomap':
include/linux/device.h:396:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
396 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/blk_types.h:11,
from include/linux/writeback.h:13,
from include/linux/memcontrol.h:23,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from kernel/sched/build_policy.c:33:
include/linux/device.h: In function 'devm_ioremap_resource':
>> include/linux/device.h:381:16: error: implicit declaration of function 'IOMEM_ERR_PTR' [-Wimplicit-function-declaration]
381 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~
>> include/linux/device.h:381:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
381 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h: In function 'devm_ioremap_resource_wc':
include/linux/device.h:388:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
388 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h: In function 'devm_of_iomap':
include/linux/device.h:396:16: error: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
396 | return IOMEM_ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/sched/build_policy.c:52:
kernel/sched/rt.c: At top level:
kernel/sched/rt.c:9:18: warning: 'max_rt_runtime' defined but not used [-Wunused-const-variable=]
9 | static const u64 max_rt_runtime = MAX_BW;
| ^~~~~~~~~~~~~~
vim +/IOMEM_ERR_PTR +381 include/linux/device.h
376
377 static inline
378 void __iomem *devm_ioremap_resource(struct device *dev,
379 const struct resource *res)
380 {
> 381 return IOMEM_ERR_PTR(-EINVAL);
382 }
383
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-20 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-20 22:45 [driver-core:driver-core-testing 5/32] include/linux/device.h:381:16: error: implicit declaration of function 'IOMEM_ERR_PTR' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.