oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [arm-integrator:kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split-pointless-c13 18/31] arch/riscv/include/asm/page.h:142:34: error: expected identifier or '(' before '{' token
@ 2023-03-14 11:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-03-14 11:48 UTC (permalink / raw)
  To: Linus Walleij; +Cc: oe-kbuild-all

Hi Linus,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split-pointless-c13
head:   961fd7e75191ae82383f80c1dfd97559f14965b8
commit: d047dc9f56633d427434d6593fce94cf1190abe8 [18/31] riscv: Make virt_to_pfn() a real function
config: riscv-allnoconfig (https://download.01.org/0day-ci/archive/20230314/202303141957.MDqAGIEh-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.1.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=d047dc9f56633d427434d6593fce94cf1190abe8
        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-v6.2-rc3-just-ttbr0-split-pointless-c13
        git checkout d047dc9f56633d427434d6593fce94cf1190abe8
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/mm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303141957.MDqAGIEh-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/riscv/include/asm/thread_info.h:11,
                    from include/linux/thread_info.h:60,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/riscv/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:78,
                    from include/linux/spinlock.h:56,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/mm.h:7,
                    from arch/riscv/mm/physaddr.c:5:
>> arch/riscv/include/asm/page.h:142:34: error: expected identifier or '(' before '{' token
     142 | #define __va_to_pa_nodebug(x)   ({                                              \
         |                                  ^
   arch/riscv/include/asm/page.h:154:33: note: in expansion of macro '__va_to_pa_nodebug'
     154 | #define __phys_addr_symbol(x)   __va_to_pa_nodebug(x)
         |                                 ^~~~~~~~~~~~~~~~~~
   arch/riscv/mm/physaddr.c:15:13: note: in expansion of macro '__phys_addr_symbol'
      15 | phys_addr_t __phys_addr_symbol(unsigned long x)
         |             ^~~~~~~~~~~~~~~~~~


vim +142 arch/riscv/include/asm/page.h

2bfc6cd81bd17e Alexandre Ghiti 2021-04-11  133  
658e2c5125bbbc Alexandre Ghiti 2021-06-17  134  #define linear_mapping_va_to_pa(x)	((unsigned long)(x) - kernel_map.va_pa_offset)
44c922572952d8 Vitaly Wool     2021-04-13  135  #define kernel_mapping_va_to_pa(y) ({						\
583286e2072ed2 Samuel Holland  2022-11-26  136  	unsigned long _y = (unsigned long)(y);					\
59a27e11221338 Alexandre Ghiti 2021-07-21  137  	(IS_ENABLED(CONFIG_XIP_KERNEL) && _y < kernel_map.virt_addr + XIP_OFFSET) ? \
583286e2072ed2 Samuel Holland  2022-11-26  138  		(_y - kernel_map.va_kernel_xip_pa_offset) :			\
583286e2072ed2 Samuel Holland  2022-11-26  139  		(_y - kernel_map.va_kernel_pa_offset - XIP_OFFSET);		\
44c922572952d8 Vitaly Wool     2021-04-13  140  	})
7094e6acaf7ab8 Alexandre Ghiti 2021-06-04  141  
2bfc6cd81bd17e Alexandre Ghiti 2021-04-11 @142  #define __va_to_pa_nodebug(x)	({						\
2bfc6cd81bd17e Alexandre Ghiti 2021-04-11  143  	unsigned long _x = x;							\
e5c35fa0401971 Alexandre Ghiti 2021-06-24  144  	is_linear_mapping(_x) ?							\
2bfc6cd81bd17e Alexandre Ghiti 2021-04-11  145  		linear_mapping_va_to_pa(_x) : kernel_mapping_va_to_pa(_x);	\
2bfc6cd81bd17e Alexandre Ghiti 2021-04-11  146  	})
6435f773d81f02 Zong Li         2020-01-02  147  

:::::: The code at line 142 was first introduced by commit
:::::: 2bfc6cd81bd17e4306e24ee47b9554c967bcb499 riscv: Move kernel mapping outside of linear mapping

:::::: TO: Alexandre Ghiti <alex@ghiti.fr>
:::::: CC: Palmer Dabbelt <palmerdabbelt@google.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-14 11:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-14 11:48 [arm-integrator:kernel-in-vmalloc-v6.2-rc3-just-ttbr0-split-pointless-c13 18/31] arch/riscv/include/asm/page.h:142:34: error: expected identifier or '(' before '{' token kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).