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 <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
---
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)