Message ID | 166647843799.1783549.13495269957811737203.stgit@dwillia2-xfh.jf.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [mm-unstable] mm/memremap: fix pgmap_request_folio() stub | expand |
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)
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(-)