lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 1 Apr 2022 22:54:55 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alistair Francis <alistair.francis@....com>
Cc:     kbuild-all@...ts.01.org,
        GNU/Weeb Mailing List <gwml@...r.gnuweeb.org>,
        linux-kernel@...r.kernel.org, Palmer Dabbelt <palmer@...osinc.com>,
        Anup Patel <anup@...infault.org>, Guo Ren <guoren@...nel.org>
Subject: [ammarfaizi2-block:palmer/linux/riscv-asidlen 1/1]
 arch/riscv/mm/context.c:308:45: error: 'mm_context_t' has no member named
 'id'

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/202204012242.MvKAyz37-lkp@intel.com/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 <lkp@...el.com>

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

Powered by blists - more mailing lists