All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pei Xiao <xiaopei01@kylinos.cn>
Cc: oe-kbuild-all@lists.linux.dev, devel@driverdev.osuosl.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [driver-core:driver-core-testing 5/32] include/linux/device.h:381:16: error: implicit declaration of function 'IOMEM_ERR_PTR'
Date: Fri, 21 Feb 2025 06:45:13 +0800	[thread overview]
Message-ID: <202502210658.mLwakFLV-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-02-20 22:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202502210658.mLwakFLV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=xiaopei01@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.