public inbox for [email protected]
 help / color / mirror / Atom feed
* [ammarfaizi2-block:palmer/linux/riscv-asidlen 1/1] arch/riscv/mm/context.c:308:45: error: 'mm_context_t' has no member named 'id'
@ 2022-04-01 14:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-01 14:54 UTC (permalink / raw)
  To: Alistair Francis
  Cc: kbuild-all, GNU/Weeb Mailing List, linux-kernel, Palmer Dabbelt,
	Anup Patel, Guo Ren

tree:   https://github.com/ammarfaizi2/linux-block palmer/linux/riscv-asidlen
head:   bdfae0d4f28854d02d1f78fcb18b41d01ae32832
commit: bdfae0d4f28854d02d1f78fcb18b41d01ae32832 [1/1] riscv: Ensure only ASIDLEN is used for sfence.vma
config: riscv-nommu_k210_defconfig (https://download.01.org/0day-ci/archive/20220401/[email protected]/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/bdfae0d4f28854d02d1f78fcb18b41d01ae32832
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block palmer/linux/riscv-asidlen
        git checkout bdfae0d4f28854d02d1f78fcb18b41d01ae32832
        # 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 arch/riscv/mm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

   arch/riscv/mm/context.c: In function 'get_mm_asid':
>> arch/riscv/mm/context.c:308:45: error: 'mm_context_t' has no member named 'id'
     308 |         return atomic_long_read(&mm->context.id) & asid_mask;
         |                                             ^
>> arch/riscv/mm/context.c:308:52: error: 'asid_mask' undeclared (first use in this function); did you mean 'pid_task'?
     308 |         return atomic_long_read(&mm->context.id) & asid_mask;
         |                                                    ^~~~~~~~~
         |                                                    pid_task
   arch/riscv/mm/context.c:308:52: note: each undeclared identifier is reported only once for each function it appears in
   arch/riscv/mm/context.c:309:1: error: control reaches end of non-void function [-Werror=return-type]
     309 | }
         | ^
   cc1: some warnings being treated as errors


vim +308 arch/riscv/mm/context.c

   305	
   306	unsigned long get_mm_asid(struct mm_struct *mm)
   307	{
 > 308		return atomic_long_read(&mm->context.id) & asid_mask;
   309	}
   310	

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

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

only message in thread, other threads:[~2022-04-01 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-01 14:54 [ammarfaizi2-block:palmer/linux/riscv-asidlen 1/1] arch/riscv/mm/context.c:308:45: error: 'mm_context_t' has no member named 'id' 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