arch/sh/boards/mach-landisk/setup.c:86:9: error: implicit declaration of function '__set_io_port_base'

kernel test robot
2023-09-23T16:37:56Z

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d90b0276af8f25a0b8ae081a30d1b2a61263393b
commit: 0c64a0dce51faa9c706fdf1f957d6f19878f4b81 sh: landisk: Add missing initialization of sh_io_port_base
date: 3 years, 1 month ago
config: sh-randconfig-r021-20220916 (https://download.01.org/0day-ci/archive/20230924/202309240004.TQItBMlc-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230924/202309240004.TQItBMlc-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/202309240004.TQItBMlc-lkp@intel.com/

All errors (new ones prefixed by >>):

arch/sh/boards/mach-landisk/setup.c: In function 'landisk_setup':
>> arch/sh/boards/mach-landisk/setup.c:86:9: error: implicit declaration of function '__set_io_port_base' [-Werror=implicit-function-declaration]
86 | __set_io_port_base(0);
| ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/__set_io_port_base +86 arch/sh/boards/mach-landisk/setup.c

82
83 static void __init landisk_setup(char **cmdline_p)
84 {
85 /* I/O port identity mapping */
> 86 __set_io_port_base(0);
87
88 /* LED ON */
89 __raw_writeb(__raw_readb(PA_LED) | 0x03, PA_LED);
90
91 printk(KERN_INFO "I-O DATA DEVICE, INC. \"LANDISK Series\" support.\n");
92 pm_power_off = landisk_power_off;
93 }
94

--
0-DAY CI Kernel Test Service