All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-01-06 12:46 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-01-06 12:46 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   4 weeks ago
:::::: branch date: 3 days ago
:::::: commit date: 4 weeks ago
config: powerpc64-randconfig-m031-20210106 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0

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

New smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/include/asm/cpu_has_feature.h:12 early_cpu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/cpu_has_feature.h:12 early_cpu_has_feature() warn: bitwise AND condition is false here

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d91 Christophe Leroy       2020-10-22  227  
a141cca3892bb39 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd25779 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d91 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d91 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d91 Christophe Leroy       2020-10-22  232  
a81dc9d9957354e Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd25779 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd25779 Benjamin Herrenschmidt 2008-12-18  235  

---
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: 40063 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-02-20 13:23 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-02-20 13:23 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f40ddce88593482919761f74910f42f4b84c004b
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   2 months ago
:::::: branch date: 6 days ago
:::::: commit date: 2 months ago
config: powerpc64-randconfig-m031-20210219 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0

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

smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d9 Christophe Leroy       2020-10-22  227  
a141cca3892bb3 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d9 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d9 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d9 Christophe Leroy       2020-10-22  232  
a81dc9d9957354 Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  235  

---
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: 39384 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-04-25 16:40 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-04-25 16:40 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2a1d7946fa53cea2083e5981ff55a8176ab2be6b
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   5 months ago
:::::: branch date: 24 hours ago
:::::: commit date: 5 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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:261 mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:261 mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/kernel/paca.c:225 initialise_paca() warn: '65535' 65535 can't fit into 32767 'new_paca->hw_cpu_id'
arch/powerpc/kernel/process.c:446 giveup_all() warn: bitwise AND condition is false here
arch/powerpc/kernel/process.c:588 save_all() warn: bitwise AND condition is false here

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d9 Christophe Leroy       2020-10-22  227  
a141cca3892bb3 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d9 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d9 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d9 Christophe Leroy       2020-10-22  232  
a81dc9d9957354 Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  235  
c12e6f24d41378 Kevin Hao              2016-07-23  236  #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECKS
c12e6f24d41378 Kevin Hao              2016-07-23  237  #include <linux/jump_label.h>
c12e6f24d41378 Kevin Hao              2016-07-23  238  
c12e6f24d41378 Kevin Hao              2016-07-23  239  #define NUM_MMU_FTR_KEYS	32
c12e6f24d41378 Kevin Hao              2016-07-23  240  
c12e6f24d41378 Kevin Hao              2016-07-23  241  extern struct static_key_true mmu_feature_keys[NUM_MMU_FTR_KEYS];
c12e6f24d41378 Kevin Hao              2016-07-23  242  
c12e6f24d41378 Kevin Hao              2016-07-23  243  extern void mmu_feature_keys_init(void);
c12e6f24d41378 Kevin Hao              2016-07-23  244  
c12e6f24d41378 Kevin Hao              2016-07-23  245  static __always_inline bool mmu_has_feature(unsigned long feature)
c12e6f24d41378 Kevin Hao              2016-07-23  246  {
c12e6f24d41378 Kevin Hao              2016-07-23  247  	int i;
c12e6f24d41378 Kevin Hao              2016-07-23  248  
b5fa0f7f88edcd Michael Ellerman       2017-01-24  249  #ifndef __clang__ /* clang can't cope with this */
c12e6f24d41378 Kevin Hao              2016-07-23  250  	BUILD_BUG_ON(!__builtin_constant_p(feature));
b5fa0f7f88edcd Michael Ellerman       2017-01-24  251  #endif
c12e6f24d41378 Kevin Hao              2016-07-23  252  
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  253  #ifdef CONFIG_JUMP_LABEL_FEATURE_CHECK_DEBUG
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  254  	if (!static_key_initialized) {
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  255  		printk("Warning! mmu_has_feature() used prior to jump label init!\n");
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  256  		dump_stack();
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  257  		return early_mmu_has_feature(feature);
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  258  	}
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  259  #endif
c812c7d8f1470a Aneesh Kumar K.V       2016-07-23  260  
f9158d58a4e1d9 Christophe Leroy       2020-10-22 @261  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d9 Christophe Leroy       2020-10-22  262  		return true;
f9158d58a4e1d9 Christophe Leroy       2020-10-22  263  
c12e6f24d41378 Kevin Hao              2016-07-23  264  	if (!(MMU_FTRS_POSSIBLE & feature))
c12e6f24d41378 Kevin Hao              2016-07-23  265  		return false;
c12e6f24d41378 Kevin Hao              2016-07-23  266  
c12e6f24d41378 Kevin Hao              2016-07-23  267  	i = __builtin_ctzl(feature);
c12e6f24d41378 Kevin Hao              2016-07-23  268  	return static_branch_likely(&mmu_feature_keys[i]);
c12e6f24d41378 Kevin Hao              2016-07-23  269  }
c12e6f24d41378 Kevin Hao              2016-07-23  270  

---
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: 35832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-06-22 15:39 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-06-22 15:39 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a96bfed64c8986d6404e553f18203cae1f5ac7e6
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   7 months ago
:::::: branch date: 23 hours ago
:::::: commit date: 7 months ago
config: powerpc64-randconfig-m031-20210622 (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 <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

New smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/kernel/process.c:446 giveup_all() warn: bitwise AND condition is false here
arch/powerpc/kernel/process.c:588 save_all() warn: bitwise AND condition is false here

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d9 Christophe Leroy       2020-10-22  227  
a141cca3892bb3 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d9 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d9 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d9 Christophe Leroy       2020-10-22  232  
a81dc9d9957354 Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  235  

---
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: 33426 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-11-13  3:17 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-13  3:17 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   66f4beaa6c1d28161f534471484b2daa2de1dce0
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   11 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 11 months ago
config: powerpc64-randconfig-m031-20211101 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 11.2.0

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

New smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/include/asm/book3s/64/pgtable.h:767 pte_swp_soft_dirty() warn: bitwise AND condition is false here
arch/powerpc/include/asm/book3s/64/pgtable.h:767 pte_swp_soft_dirty() warn: bitwise AND condition is false here
arch/powerpc/include/asm/book3s/64/pgtable.h:767 pte_swp_soft_dirty() warn: bitwise AND condition is false here
arch/powerpc/include/asm/book3s/64/pgtable.h:767 pte_swp_soft_dirty() warn: bitwise AND condition is false here
arch/powerpc/kernel/process.c:446 giveup_all() warn: bitwise AND condition is false here
arch/powerpc/kernel/process.c:588 save_all() warn: bitwise AND condition is false here
arch/powerpc/include/asm/book3s/64/pgtable.h:767 pte_swp_soft_dirty() warn: bitwise AND condition is false here
arch/powerpc/include/asm/book3s/64/pgtable.h:767 pte_swp_soft_dirty() warn: bitwise AND condition is false here
arch/powerpc/kernel/paca.c:225 initialise_paca() warn: '65535' 65535 can't fit into 32767 'new_paca->hw_cpu_id'

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d9 Christophe Leroy       2020-10-22  227  
a141cca3892bb3 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d9 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d9 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d9 Christophe Leroy       2020-10-22  232  
a81dc9d9957354 Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  235  

---
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: 31032 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-11-14  3:50 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-14  3:50 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c8c109546a19613d323a319d0c921cb1f317e629
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   11 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 11 months ago
config: powerpc64-randconfig-m031-20211020 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0

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

New smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/platforms/pseries/lpar.c:206 init_cpu_associativity() warn: double check that we're allocating correct size: 4 vs 100
arch/powerpc/platforms/pseries/lpar.c:208 init_cpu_associativity() warn: double check that we're allocating correct size: 4 vs 100

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d9 Christophe Leroy       2020-10-22  227  
a141cca3892bb3 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d9 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d9 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d9 Christophe Leroy       2020-10-22  232  
a81dc9d9957354 Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd2577 Benjamin Herrenschmidt 2008-12-18  235  

---
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: 30171 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
@ 2021-11-17 14:23 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-11-17 14:23 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Christophe Leroy <christophe.leroy@csgroup.eu>
CC: Michael Ellerman <mpe@ellerman.id.au>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8ab774587903771821b59471cc723bba6d893942
commit: f9158d58a4e1d91f21741e4e8ebe67f770b84e12 powerpc/mm: Add mask of always present MMU features
date:   11 months ago
:::::: branch date: 2 days ago
:::::: commit date: 11 months ago
config: powerpc-randconfig-m031-20211117 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0

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

New smatch warnings:
arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here

Old smatch warnings:
arch/powerpc/kernel/traps.c:1216 emulate_string_inst() warn: bitwise AND condition is false here

vim +230 arch/powerpc/include/asm/mmu.h

f9158d58a4e1d91 Christophe Leroy       2020-10-22  227  
a141cca3892bb39 Michael Ellerman       2016-07-27  228  static inline bool early_mmu_has_feature(unsigned long feature)
7c03d653cd25779 Benjamin Herrenschmidt 2008-12-18  229  {
f9158d58a4e1d91 Christophe Leroy       2020-10-22 @230  	if (MMU_FTRS_ALWAYS & feature)
f9158d58a4e1d91 Christophe Leroy       2020-10-22  231  		return true;
f9158d58a4e1d91 Christophe Leroy       2020-10-22  232  
a81dc9d9957354e Michael Ellerman       2016-07-27  233  	return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature);
7c03d653cd25779 Benjamin Herrenschmidt 2008-12-18  234  }
7c03d653cd25779 Benjamin Herrenschmidt 2008-12-18  235  

---
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: 30218 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-17 14:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-06 12:46 arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-02-20 13:23 kernel test robot
2021-04-25 16:40 kernel test robot
2021-06-22 15:39 kernel test robot
2021-11-13  3:17 kernel test robot
2021-11-14  3:50 kernel test robot
2021-11-17 14:23 kernel 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.