Re: [PATCH v9 74/96] mm/workingset: Convert workingset_refault to take a folio

From: Matthew Wilcox
Date: Wed May 05 2021 - 16:59:06 EST


On Thu, May 06, 2021 at 04:17:27AM +0800, kernel test robot wrote:
> In file included from mm/workingset.c:8:
> include/linux/memcontrol.h: In function 'folio_uncharge_cgroup':
> include/linux/memcontrol.h:1213:42: error: parameter name omitted
> 1213 | static inline void folio_uncharge_cgroup(struct folio *)
> | ^~~~~~~~~~~~~~

Fixed (also reported in your other report)

> mm/workingset.c: In function 'unpack_shadow':
> mm/workingset.c:201:15: warning: variable 'nid' set but not used [-Wunused-but-set-variable]
> 201 | int memcgid, nid;
> | ^~~

I didn't introduce this one; not trying to fix it ;-)

> mm/workingset.c: In function 'workingset_refault':
> >> mm/workingset.c:348:10: error: implicit declaration of function 'folio_memcg' [-Werror=implicit-function-declaration]
> 348 | memcg = folio_memcg(folio);
> | ^~~~~~~~~~~
> >> mm/workingset.c:348:8: warning: assignment to 'struct mem_cgroup *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
> 348 | memcg = folio_memcg(folio);
> | ^
> cc1: some warnings being treated as errors

Fixed. Thanks!