linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mm-unstable PATCH] mm/memremap: fix pgmap_request_folio() stub
@ 2022-10-22 22:40 Dan Williams
  0 siblings, 0 replies; only message in thread
From: Dan Williams @ 2022-10-22 22:40 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, nvdimm

0day robot reports:

include/linux/memremap.h:258:9: warning: expression which evaluates to zero treated as a null pointer constant of type 'struct folio *'

...because I failed to update the pgmap_request_folio() return value in
the CONFIG_ZONE_DEVICE=n case when changing the calling convention.

Fixes: e634e7e18f3b ("mm/memremap: Introduce pgmap_request_folio() using pgmap offsets")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 include/linux/memremap.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/memremap.h b/include/linux/memremap.h
index f11f827883bb..4a6eadf0d1d8 100644
--- a/include/linux/memremap.h
+++ b/include/linux/memremap.h
@@ -255,7 +255,7 @@ static inline struct dev_pagemap *get_dev_pagemap(unsigned long pfn,
 static inline struct folio *pgmap_request_folio(struct dev_pagemap *pgmap,
 						pgoff_t pgmap_offset, int order)
 {
-	return false;
+	return NULL;
 }
 
 static inline bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn)



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

only message in thread, other threads:[~2022-10-22 22:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 22:40 [mm-unstable PATCH] mm/memremap: fix pgmap_request_folio() stub Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox