Messages in this thread | | | Date | Fri, 1 Apr 2022 02:16:25 +0800 | From | kernel test robot <> | Subject | [palmer:riscv-d1 11/14] arch/riscv/include/asm/pgtable-64.h:109:2: error: expected assembly-time absolute expression |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git riscv-d1 head: f705a2550d38971a0ad596ebe02c083ec163722f commit: 0d3244d2ebd54130bb80c0e27394f57d30e7364f [11/14] riscv: add RISC-V Svpbmt extension support config: riscv-randconfig-r042-20220331 (https://download.01.org/0day-ci/archive/20220401/202204010256.mroJYOIf-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 22a95dd3e6c911c2854dd75f42ba32d34840a61a) 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 # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git/commit/?id=0d3244d2ebd54130bb80c0e27394f57d30e7364f git remote add palmer https://git.kernel.org/pub/scm/linux/kernel/git/palmer/linux.git git fetch --no-tags palmer riscv-d1 git checkout 0d3244d2ebd54130bb80c0e27394f57d30e7364f # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/staging/sm750fb/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/staging/sm750fb/sm750_hw.c:6: In file included from include/linux/mm.h:29: In file included from include/linux/pgtable.h:6: In file included from arch/riscv/include/asm/pgtable.h:112: >> arch/riscv/include/asm/pgtable-64.h:109:2: error: expected assembly-time absolute expression ALT_SVPBMT(val, _PAGE_IO); ^ arch/riscv/include/asm/errata_list.h:46:5: note: expanded from macro 'ALT_SVPBMT' asm(ALTERNATIVE("li %0, 0\t\nnop", "li %0, %1\t\nslli %0,%0,%2", 0, \ ^ arch/riscv/include/asm/alternative-macros.h:173:2: note: expanded from macro 'ALTERNATIVE' _ALTERNATIVE_CFG(old_content, new_content, vendor_id, errata_id, CONFIG_k) ^ arch/riscv/include/asm/alternative-macros.h:109:2: note: expanded from macro '_ALTERNATIVE_CFG' __ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k)) ^ arch/riscv/include/asm/alternative-macros.h:106:2: note: expanded from macro '__ALTERNATIVE_CFG' ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) ^ arch/riscv/include/asm/alternative-macros.h:94:3: note: expanded from macro 'ALT_NEW_CONTENT' ".org . - (887b - 886b) + (889b - 888b)\n" \ ^ <inline asm>:27:6: note: instantiated into assembly here .org . - (887b - 886b) + (889b - 888b) ^ In file included from drivers/staging/sm750fb/sm750_hw.c:6: In file included from include/linux/mm.h:29: In file included from include/linux/pgtable.h:6: In file included from arch/riscv/include/asm/pgtable.h:112: >> arch/riscv/include/asm/pgtable-64.h:109:2: error: expected assembly-time absolute expression ALT_SVPBMT(val, _PAGE_IO); ^ arch/riscv/include/asm/errata_list.h:46:5: note: expanded from macro 'ALT_SVPBMT' asm(ALTERNATIVE("li %0, 0\t\nnop", "li %0, %1\t\nslli %0,%0,%2", 0, \ ^ arch/riscv/include/asm/alternative-macros.h:173:2: note: expanded from macro 'ALTERNATIVE' _ALTERNATIVE_CFG(old_content, new_content, vendor_id, errata_id, CONFIG_k) ^ arch/riscv/include/asm/alternative-macros.h:109:2: note: expanded from macro '_ALTERNATIVE_CFG' __ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k)) ^ arch/riscv/include/asm/alternative-macros.h:106:2: note: expanded from macro '__ALTERNATIVE_CFG' ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) ^ arch/riscv/include/asm/alternative-macros.h:95:3: note: expanded from macro 'ALT_NEW_CONTENT' ".org . - (889b - 888b) + (887b - 886b)\n" \ ^ <inline asm>:28:6: note: instantiated into assembly here .org . - (889b - 888b) + (887b - 886b) ^ In file included from drivers/staging/sm750fb/sm750_hw.c:6: In file included from include/linux/mm.h:29: In file included from include/linux/pgtable.h:6: In file included from arch/riscv/include/asm/pgtable.h:112: >> arch/riscv/include/asm/pgtable-64.h:109:2: error: expected assembly-time absolute expression ALT_SVPBMT(val, _PAGE_IO); ^ arch/riscv/include/asm/errata_list.h:46:5: note: expanded from macro 'ALT_SVPBMT' asm(ALTERNATIVE("li %0, 0\t\nnop", "li %0, %1\t\nslli %0,%0,%2", 0, \ ^ arch/riscv/include/asm/alternative-macros.h:173:2: note: expanded from macro 'ALTERNATIVE' _ALTERNATIVE_CFG(old_content, new_content, vendor_id, errata_id, CONFIG_k) ^ arch/riscv/include/asm/alternative-macros.h:109:2: note: expanded from macro '_ALTERNATIVE_CFG' __ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k)) ^ arch/riscv/include/asm/alternative-macros.h:106:2: note: expanded from macro '__ALTERNATIVE_CFG' ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) ^ arch/riscv/include/asm/alternative-macros.h:94:3: note: expanded from macro 'ALT_NEW_CONTENT' ".org . - (887b - 886b) + (889b - 888b)\n" \ ^ <inline asm>:27:6: note: instantiated into assembly here .org . - (887b - 886b) + (889b - 888b) ^ In file included from drivers/staging/sm750fb/sm750_hw.c:6: In file included from include/linux/mm.h:29: In file included from include/linux/pgtable.h:6: In file included from arch/riscv/include/asm/pgtable.h:112: >> arch/riscv/include/asm/pgtable-64.h:109:2: error: expected assembly-time absolute expression ALT_SVPBMT(val, _PAGE_IO); ^ arch/riscv/include/asm/errata_list.h:46:5: note: expanded from macro 'ALT_SVPBMT' asm(ALTERNATIVE("li %0, 0\t\nnop", "li %0, %1\t\nslli %0,%0,%2", 0, \ ^ arch/riscv/include/asm/alternative-macros.h:173:2: note: expanded from macro 'ALTERNATIVE' _ALTERNATIVE_CFG(old_content, new_content, vendor_id, errata_id, CONFIG_k) ^ arch/riscv/include/asm/alternative-macros.h:109:2: note: expanded from macro '_ALTERNATIVE_CFG' __ALTERNATIVE_CFG(old_c, new_c, vendor_id, errata_id, IS_ENABLED(CONFIG_k)) ^ arch/riscv/include/asm/alternative-macros.h:106:2: note: expanded from macro '__ALTERNATIVE_CFG' ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c) ^ arch/riscv/include/asm/alternative-macros.h:95:3: note: expanded from macro 'ALT_NEW_CONTENT' ".org . - (889b - 888b) + (887b - 886b)\n" \ ^ <inline asm>:28:6: note: instantiated into assembly here .org . - (889b - 888b) + (887b - 886b) ^ 4 errors generated.
vim +109 arch/riscv/include/asm/pgtable-64.h
104 105 static inline u64 riscv_page_io(void) 106 { 107 u64 val; 108 > 109 ALT_SVPBMT(val, _PAGE_IO); 110 return val; 111 } 112
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |