tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
btree-private-unions
head: 30d91fbcef11ed07350f943fd3f695e0fb0635dd
commit: 35137236b91e958ca683fd4a045a29c0b5310938 [52/72] xfs: don't crash with
assfail
config: parisc-allnoconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 35137236b91e958ca683fd4a045a29c0b5310938
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/mm.h:94,
from fs///attr.c:11:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
96 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro
'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:201:2: note: in expansion of macro 'pte_clear'
201 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not
used [-Wunused-but-set-variable]
96 | pte_t old_pte; \
| ^~~~~~~
> include/asm-generic/pgtable.h:640:2: note: in expansion of macro
'set_pte_at'
640 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
vim +/set_pte_at +640 include/asm-generic/pgtable.h
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 631
0cbe3e26abe0cf Aneesh Kumar K.V 2019-03-05 632 static inline void
__ptep_modify_prot_commit(struct vm_area_struct *vma,
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 633 unsigned long addr,
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 634 pte_t *ptep, pte_t pte)
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 635 {
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 636 /*
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 637 * The pte is non-present, so
there's no hardware state to
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 638 * preserve.
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 639 */
0cbe3e26abe0cf Aneesh Kumar K.V 2019-03-05 @640 set_pte_at(vma->vm_mm, addr, ptep,
pte);
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 641 }
1ea0704e0da65b Jeremy Fitzhardinge 2008-06-16 642
:::::: The code at line 640 was first introduced by commit
:::::: 0cbe3e26abe0cfe7effb67f620a77d46cce628b2 mm: update ptep_modify_prot_start/commit
to take vm_area_struct as arg
:::::: TO: Aneesh Kumar K.V <aneesh.kumar(a)linux.ibm.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org