[arm-integrator:kernel-in-vmalloc-v5.19-rc1 23/33] arch/microblaze/include/asm/page.h:130: Error: junk at end of line, first unrecognized character is `{'

From: kernel test robot
Date: Tue Jun 14 2022 - 06:05:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head: 62fa3e7c2288a1f8d5b9bb2c1f31cee3c26df806
commit: ff24dffbd3b9ca146bea98a2f4b76042e03267c9 [23/33] microblaze: Make virt_to_pfn() a static inline
config: microblaze-randconfig-r003-20220613 (https://download.01.org/0day-ci/archive/20220614/202206141700.Z7jYs3Rm-lkp@xxxxxxxxx/config)
compiler: microblaze-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=ff24dffbd3b9ca146bea98a2f4b76042e03267c9
git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1
git checkout ff24dffbd3b9ca146bea98a2f4b76042e03267c9
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=microblaze SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arch/microblaze/include/asm/page.h: Assembler messages:
arch/microblaze/include/asm/page.h:129: Error: unknown opcode "static"
>> arch/microblaze/include/asm/page.h:130: Error: junk at end of line, first unrecognized character is `{'
arch/microblaze/include/asm/page.h:131: Error: unknown opcode "return"
arch/microblaze/include/asm/page.h:132: Error: junk at end of line, first unrecognized character is `}'


vim +130 arch/microblaze/include/asm/page.h

128
129 static inline unsigned long virt_to_pfn(const void *vaddr)
> 130 {
131 return phys_to_pfn(__pa(vaddr));
132 }
133 # define pfn_to_virt(pfn) __va(pfn_to_phys((pfn)))
134

--
0-DAY CI Kernel Test Service
https://01.org/lkp