[ammarfaizi2-block:palmer/linux/riscv-d1 12/12] arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards

From: kernel test robot
Date: Tue Mar 08 2022 - 10:40:34 EST


tree: https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-d1
head: b3cda759adb0111b5b3efd3a0b986864b647a94a
commit: b3cda759adb0111b5b3efd3a0b986864b647a94a [12/12] riscv: add memory-type errata for T-Head
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220308/202203082302.eZ9h0xp5-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 11.2.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://github.com/ammarfaizi2/linux-block/commit/b3cda759adb0111b5b3efd3a0b986864b647a94a
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-d1
git checkout b3cda759adb0111b5b3efd3a0b986864b647a94a
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross 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 >>):

arch/riscv/include/asm/pgtable.h: Assembler messages:
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable.h: Assembler messages:
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
--
arch/riscv/mm/init.c:724:13: warning: no previous prototype for 'pt_ops_set_early' [-Wmissing-prototypes]
724 | void __init pt_ops_set_early(void)
| ^~~~~~~~~~~~~~~~
arch/riscv/mm/init.c:744:13: warning: no previous prototype for 'pt_ops_set_fixmap' [-Wmissing-prototypes]
744 | void __init pt_ops_set_fixmap(void)
| ^~~~~~~~~~~~~~~~~
arch/riscv/mm/init.c:760:13: warning: no previous prototype for 'pt_ops_set_late' [-Wmissing-prototypes]
760 | void __init pt_ops_set_late(void)
| ^~~~~~~~~~~~~~~
arch/riscv/include/asm/pgtable.h: Assembler messages:
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
arch/riscv/include/asm/pgtable.h:280: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable-64.h: Assembler messages:
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
arch/riscv/include/asm/pgtable.h:280: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable.h: Assembler messages:
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable.h: Assembler messages:
arch/riscv/include/asm/pgtable.h:436: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable.h: Assembler messages:
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable.h: Assembler messages:
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable.h: Assembler messages:
arch/riscv/include/asm/pgtable.h:436: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable-64.h: Assembler messages:
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
--
arch/riscv/include/asm/pgtable-64.h: Assembler messages:
>> arch/riscv/include/asm/pgtable-64.h:214: Error: attempt to move .org backwards
>> arch/riscv/include/asm/pgtable.h:323: Error: attempt to move .org backwards
..


vim +323 arch/riscv/include/asm/pgtable.h

08f051eda33b51 Andrew Waterman 2017-10-25 319
07037db5d479f9 Palmer Dabbelt 2017-07-10 320 static inline int pte_huge(pte_t pte)
07037db5d479f9 Palmer Dabbelt 2017-07-10 321 {
f5397c3ee0a3e2 Nanyong Sun 2021-04-30 322 return pte_present(pte) && (pte_val(pte) & _PAGE_LEAF);
07037db5d479f9 Palmer Dabbelt 2017-07-10 @323 }
07037db5d479f9 Palmer Dabbelt 2017-07-10 324

:::::: The code at line 323 was first introduced by commit
:::::: 07037db5d479f90377c998259a4f9a469c404edf RISC-V: Paging and MMU

:::::: TO: Palmer Dabbelt <palmer@xxxxxxxxxxx>
:::::: CC: Palmer Dabbelt <palmer@xxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx