CC: kbuild-...@lists.01.org
CC: linux-ker...@vger.kernel.org
TO: "Aneesh Kumar K.V" <aneesh.ku...@linux.ibm.com>
CC: Michael Ellerman <m...@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   2a1d7946fa53cea2083e5981ff55a8176ab2be6b
commit: b9658f83e721ddfcee3e08b16a6628420de424c3 powerpc/book3s64/pkeys: pkeys 
are supported only on hash on book3s.
date:   9 months ago
:::::: branch date: 23 hours ago
:::::: commit date: 9 months ago
config: powerpc-randconfig-m031-20210425 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>
Reported-by: Dan Carpenter <dan.carpen...@oracle.com>

New smatch warnings:
arch/powerpc/include/asm/book3s/64/hash-pkey.h:16 pte_to_hpte_pkey_bits() warn: 
bitwise AND condition is false here
arch/powerpc/include/asm/book3s/64/hash-pkey.h:25 hash__pte_to_pkey_bits() 
warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/include/asm/book3s/64/hash-pkey.h:17 pte_to_hpte_pkey_bits() warn: 
bitwise AND condition is false here
arch/powerpc/mm/book3s64/hash_utils.c:921 htab_initialize() error: '%pa' 
expects argument of type 'phys_addr_t*', argument 2 has type 'ulong*'
arch/powerpc/mm/book3s64/hash_utils.c:921 htab_initialize() error: '%pa' 
expects argument of type 'phys_addr_t*', argument 3 has type 'ulong*'
arch/powerpc/mm/book3s64/hash_utils.c:1611 hash_preload() warn: inconsistent 
indenting
arch/powerpc/include/asm/book3s/64/hash-pkey.h:26 hash__pte_to_pkey_bits() 
warn: bitwise AND condition is false here

vim +16 arch/powerpc/include/asm/book3s/64/hash-pkey.h

b9658f83e721dd Aneesh Kumar K.V 2020-07-09  13  
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  14  static inline u64 
pte_to_hpte_pkey_bits(u64 pteflags)
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  15  {
b9658f83e721dd Aneesh Kumar K.V 2020-07-09 @16          return (((pteflags & 
H_PTE_PKEY_BIT4) ? HPTE_R_KEY_BIT4 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  17                  ((pteflags & 
H_PTE_PKEY_BIT3) ? HPTE_R_KEY_BIT3 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  18                  ((pteflags & 
H_PTE_PKEY_BIT2) ? HPTE_R_KEY_BIT2 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  19                  ((pteflags & 
H_PTE_PKEY_BIT1) ? HPTE_R_KEY_BIT1 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  20                  ((pteflags & 
H_PTE_PKEY_BIT0) ? HPTE_R_KEY_BIT0 : 0x0UL));
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  21  }
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  22  
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  23  static inline u16 
hash__pte_to_pkey_bits(u64 pteflags)
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  24  {
b9658f83e721dd Aneesh Kumar K.V 2020-07-09 @25          return (((pteflags & 
H_PTE_PKEY_BIT4) ? 0x10 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  26                  ((pteflags & 
H_PTE_PKEY_BIT3) ? 0x8 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  27                  ((pteflags & 
H_PTE_PKEY_BIT2) ? 0x4 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  28                  ((pteflags & 
H_PTE_PKEY_BIT1) ? 0x2 : 0x0UL) |
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  29                  ((pteflags & 
H_PTE_PKEY_BIT0) ? 0x1 : 0x0UL));
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  30  }
b9658f83e721dd Aneesh Kumar K.V 2020-07-09  31  

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

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-le...@lists.01.org

Reply via email to