All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.6/zen-sauce 2/26] arch/parisc/include/asm/pgtable.h:96:9: error: variable 'old_pte' set but not used
@ 2020-05-19  7:47 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-19  7:47 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5382 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.6/zen-sauce
head:   28b9700a330bb5957c6ad7263095d148d5c35242
commit: 571a78afe655a6e606ff127b57f7a01d3bc68614 [2/26] ZEN: Add VHBA driver
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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 571a78afe655a6e606ff127b57f7a01d3bc68614
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/mm.h:94,
from include/linux/highmem.h:8,
from drivers/scsi/vhba/vhba.c:25:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
>> arch/parisc/include/asm/pgtable.h:96:9: error: variable 'old_pte' set but not used [-Werror=unused-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: error: variable 'old_pte' set but not used [-Werror=unused-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);
|  ^~~~~~~~~~
In file included from drivers/scsi/vhba/vhba.c:42:
drivers/scsi/vhba/vhba.c: At top level:
drivers/scsi/vhba/vhba.c:483:15: error: no previous prototype for 'vhba_queuecommand' [-Werror=missing-prototypes]
483 | DEF_SCSI_QCMD(vhba_queuecommand)
|               ^~~~~~~~~~~~~~~~~
include/scsi/scsi_host.h:488:6: note: in definition of macro 'DEF_SCSI_QCMD'
488 |  int func_name(struct Scsi_Host *shost, struct scsi_cmnd *cmd)          |      ^~~~~~~~~
cc1: all warnings being treated as errors

vim +/old_pte +96 arch/parisc/include/asm/pgtable.h

01ab60570427ca arch/parisc/include/asm/pgtable.h John David Anglin 2015-07-01   84  
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   85  /* Certain architectures need to do special things when PTEs
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   86   * within a page table are directly modified.  Thus, the following
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   87   * hook is made available.
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   88   */
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   89  #define set_pte(pteptr, pteval)                                 \
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   90          do{                                                     \
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   91                  *(pteptr) = (pteval);                           \
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16   92          } while(0)
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14   93  
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14   94  #define set_pte_at(mm, addr, ptep, pteval)			\
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14   95  	do {							\
01ab60570427ca arch/parisc/include/asm/pgtable.h John David Anglin 2015-07-01  @96  		pte_t old_pte;					\
bda079d336cd81 arch/parisc/include/asm/pgtable.h John David Anglin 2013-04-23   97  		unsigned long flags;				\
b37d1c1898b288 arch/parisc/include/asm/pgtable.h Mikulas Patocka   2019-04-28   98  		spin_lock_irqsave(pgd_spinlock((mm)->pgd), flags);\
01ab60570427ca arch/parisc/include/asm/pgtable.h John David Anglin 2015-07-01   99  		old_pte = *ptep;				\
4dd5b673fa625d arch/parisc/include/asm/pgtable.h John David Anglin 2018-09-20  100  		set_pte(ptep, pteval);				\
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14  101  		purge_tlb_entries(mm, addr);			\
b37d1c1898b288 arch/parisc/include/asm/pgtable.h Mikulas Patocka   2019-04-28  102  		spin_unlock_irqrestore(pgd_spinlock((mm)->pgd), flags);\
7139bc1579901b arch/parisc/include/asm/pgtable.h John David Anglin 2013-01-14  103  	} while (0)
^1da177e4c3f41 include/asm-parisc/pgtable.h      Linus Torvalds    2005-04-16  104  

:::::: The code at line 96 was first introduced by commit
:::::: 01ab60570427caa24b9debc369e452e86cd9beb4 parisc: Fix some PTE/TLB race conditions and optimize __flush_tlb_range based on timing results

:::::: TO: John David Anglin <dave.anglin@bell.net>
:::::: CC: Helge Deller <deller@gmx.de>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 60648 bytes --]

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

only message in thread, other threads:[~2020-05-19  7:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-19  7:47 [zen-kernel-zen-kernel:5.6/zen-sauce 2/26] arch/parisc/include/asm/pgtable.h:96:9: error: variable 'old_pte' set but not used kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.