All of lore.kernel.org
 help / color / mirror / Atom feed
* [avpatel:riscv_defconfig_v1 61/77] arch/riscv/include/asm/io.h:34:19: error: implicit declaration of function 'ioremap_prot'; did you mean 'ioremap_wt'?
@ 2025-05-27 12:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-27 12:14 UTC (permalink / raw)
  To: Himanshu Chauhan; +Cc: oe-kbuild-all, Anup Patel

tree:   https://github.com/avpatel/linux.git riscv_defconfig_v1
head:   bd9f757ef4bfde0edc1b68dd9af6e35e1f999fb3
commit: 7edc82b9a1b5d8dfab77c5ac582cd28b6ebbaef6 [61/77] riscv: Define ioremap_cache for RISC-V
config: riscv-randconfig-r052-20250527 (https://download.01.org/0day-ci/archive/20250527/202505272041.K796220K-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250527/202505272041.K796220K-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/202505272041.K796220K-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/io.h:12,
                    from kernel/iomem.c:4:
   kernel/iomem.c: In function 'arch_memremap_wb':
>> arch/riscv/include/asm/io.h:34:19: error: implicit declaration of function 'ioremap_prot'; did you mean 'ioremap_wt'? [-Werror=implicit-function-declaration]
     ((__force void *)ioremap_prot((addr), (size), PAGE_KERNEL))
                      ^~~~~~~~~~~~
   kernel/iomem.c:13:25: note: in expansion of macro 'ioremap_cache'
     return (__force void *)ioremap_cache(offset, size);
                            ^~~~~~~~~~~~~
   arch/riscv/include/asm/io.h:34:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
     ((__force void *)ioremap_prot((addr), (size), PAGE_KERNEL))
      ^
   kernel/iomem.c:13:25: note: in expansion of macro 'ioremap_cache'
     return (__force void *)ioremap_cache(offset, size);
                            ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +34 arch/riscv/include/asm/io.h

    32	
    33	#define ioremap_cache(addr, size)					\
  > 34		((__force void *)ioremap_prot((addr), (size), PAGE_KERNEL))
    35	

-- 
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-05-27 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-27 12:14 [avpatel:riscv_defconfig_v1 61/77] arch/riscv/include/asm/io.h:34:19: error: implicit declaration of function 'ioremap_prot'; did you mean 'ioremap_wt'? 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.