From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here
Date: Wed, 06 Jan 2021 20:46:23 +0800 [thread overview]
Message-ID: <202101062011.34Df31Yu-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2021-01-06 12:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-06 12:46 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-20 13:23 arch/powerpc/include/asm/mmu.h:230 early_mmu_has_feature() warn: bitwise AND condition is false here 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202101062011.34Df31Yu-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.