[esmil:visionfive-nc 9/28] <inline asm>:27:6: error: expected assembly-time absolute expression

From: kernel test robot
Date: Fri Apr 15 2022 - 02:43:15 EST


tree: https://github.com/esmil/linux visionfive-nc
head: b0b9e814967f0f06d0baca439d5e0d7a71201cf1
commit: 2c47ef8bb308963658bc94e8a2074bf4ec12c612 [9/28] riscv: add RISC-V Svpbmt extension support
config: riscv-randconfig-c006-20220414 (https://download.01.org/0day-ci/archive/20220415/202204151455.LXfFw7ik-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b7e6ea489f6dd45a9b0da9ac20871560917b9b0)
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://github.com/esmil/linux/commit/2c47ef8bb308963658bc94e8a2074bf4ec12c612
git remote add esmil https://github.com/esmil/linux
git fetch --no-tags esmil visionfive-nc
git checkout 2c47ef8bb308963658bc94e8a2074bf4ec12c612
# 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

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

All errors (new ones prefixed by >>):

>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
In file included from drivers/uio/uio_sercos3.c:29:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:15:
In file included from include/linux/pgtable.h:6:
In file included from arch/riscv/include/asm/pgtable.h:114:
arch/riscv/include/asm/pgtable-64.h:93:2: error: expected assembly-time absolute expression
ALT_SVPBMT(val, _PAGE_MTMASK);
^
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:187: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:113: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:110:2: note: expanded from macro '__ALTERNATIVE_CFG'
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
^
arch/riscv/include/asm/alternative-macros.h:98: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/uio/uio_sercos3.c:29:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:15:
In file included from include/linux/pgtable.h:6:
In file included from arch/riscv/include/asm/pgtable.h:114:
arch/riscv/include/asm/pgtable-64.h:93:2: error: expected assembly-time absolute expression
ALT_SVPBMT(val, _PAGE_MTMASK);
^
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:187: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:113: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:110:2: note: expanded from macro '__ALTERNATIVE_CFG'
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
^
arch/riscv/include/asm/alternative-macros.h:99: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/uio/uio_sercos3.c:29:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:15:
In file included from include/linux/pgtable.h:6:
In file included from arch/riscv/include/asm/pgtable.h:114:
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:187: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:113: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:110:2: note: expanded from macro '__ALTERNATIVE_CFG'
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
^
arch/riscv/include/asm/alternative-macros.h:98: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)
--
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
12 errors generated.
--
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
>> <inline asm>:27:6: error: expected assembly-time absolute expression
.org . - (887b - 886b) + (889b - 888b)
^
<inline asm>:28:6: error: expected assembly-time absolute expression
.org . - (889b - 888b) + (887b - 886b)
^
In file included from drivers/pci/pci.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:15:
In file included from include/linux/pgtable.h:6:
In file included from arch/riscv/include/asm/pgtable.h:114:
arch/riscv/include/asm/pgtable-64.h:93:2: error: expected assembly-time absolute expression
ALT_SVPBMT(val, _PAGE_MTMASK);
^
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:187: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:113: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:110:2: note: expanded from macro '__ALTERNATIVE_CFG'
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
^
arch/riscv/include/asm/alternative-macros.h:98: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/pci/pci.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:15:
In file included from include/linux/pgtable.h:6:
In file included from arch/riscv/include/asm/pgtable.h:114:
arch/riscv/include/asm/pgtable-64.h:93:2: error: expected assembly-time absolute expression
ALT_SVPBMT(val, _PAGE_MTMASK);
^
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:187: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:113: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:110:2: note: expanded from macro '__ALTERNATIVE_CFG'
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
^
arch/riscv/include/asm/alternative-macros.h:99: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/pci/pci.c:18:
In file included from include/linux/pci.h:38:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:15:
In file included from include/linux/pgtable.h:6:
In file included from arch/riscv/include/asm/pgtable.h:114:
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:187: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:113: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:110:2: note: expanded from macro '__ALTERNATIVE_CFG'
ALT_NEW_CONTENT(vendor_id, errata_id, enable, new_c)
^
arch/riscv/include/asm/alternative-macros.h:98: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)

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