All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:locking/kcsan 4/21] arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0
@ 2020-05-17  1:29 kbuild test robot
  2020-05-17  1:29 ` [PATCH] sparc32: mm: fix badzero.cocci warnings kbuild test robot
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-05-17  1:29 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/kcsan
head:   ffed638b6a2180da8fd002a46632d746af72b299
commit: c95be5b549d6af16e1f9b9307f745ef78a01d11c [4/21] sparc32: mm: Change pgtable_t type to pte_t * instead of struct page *
config: sparc-randconfig-c003-20200517 (attached as .config)

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


coccinelle warnings: (new ones prefixed by >>)

>> arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0
>> arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0

Please review and possibly fold the followup patch.

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

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

* [PATCH] sparc32: mm: fix badzero.cocci warnings
  2020-05-17  1:29 [peterz-queue:locking/kcsan 4/21] arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0 kbuild test robot
@ 2020-05-17  1:29 ` kbuild test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-05-17  1:29 UTC (permalink / raw)
  To: kbuild-all

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

From: kbuild test robot <lkp@intel.com>

arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0
arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0

 Compare pointer-typed values to NULL rather than 0

Semantic patch information:
 This makes an effort to choose between !x and x == NULL.  !x is used
 if it has previously been used with the function used to initialize x.
 This relies on type information.  More type information can be obtained
 using the option -all_includes and the option -I to specify an
 include path.

Generated by: scripts/coccinelle/null/badzero.cocci

Fixes: c95be5b549d6 ("sparc32: mm: Change pgtable_t type to pte_t * instead of struct page *")
CC: Will Deacon <will@kernel.org>
Signed-off-by: kbuild test robot <lkp@intel.com>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/kcsan
head:   ffed638b6a2180da8fd002a46632d746af72b299
commit: c95be5b549d6af16e1f9b9307f745ef78a01d11c [4/21] sparc32: mm: Change pgtable_t type to pte_t * instead of struct page *

 srmmu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/arch/sparc/mm/srmmu.c
+++ b/arch/sparc/mm/srmmu.c
@@ -361,7 +361,7 @@ pgtable_t pte_alloc_one(struct mm_struct
 	pte_t *ptep;
 	struct page *page;
 
-	if ((ptep = pte_alloc_one_kernel(mm)) == 0)
+	if ((ptep = pte_alloc_one_kernel(mm)) == NULL)
 		return NULL;
 	page = pfn_to_page(__nocache_pa((unsigned long)ptep) >> PAGE_SHIFT);
 	if (!pgtable_pte_page_ctor(page)) {

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

end of thread, other threads:[~2020-05-17  1:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17  1:29 [peterz-queue:locking/kcsan 4/21] arch/sparc/mm/srmmu.c:364:42-43: WARNING comparing pointer to 0 kbuild test robot
2020-05-17  1:29 ` [PATCH] sparc32: mm: fix badzero.cocci warnings 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.