diff options
| author | John Sperbeck <[email protected]> | 2024-11-28 20:39:59 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-12-06 03:54:46 +0000 |
| commit | 89dd878282881306c38f7e354e7614fca98cb9a6 (patch) | |
| tree | 3f3a9395cc029fe9e9e64c8eed5a0d6b51a7c3b3 /drivers/fpga/fpga-bridge.c | |
| parent | mm/codetag: swap tags when migrate pages (diff) | |
| download | kernel-89dd878282881306c38f7e354e7614fca98cb9a6.tar.gz kernel-89dd878282881306c38f7e354e7614fca98cb9a6.zip | |
mm: memcg: declare do_memsw_account inline
In commit 66d60c428b23 ("mm: memcg: move legacy memcg event code into
memcontrol-v1.c"), the static do_memsw_account() function was moved from a
.c file to a .h file. Unfortunately, the traditional inline keyword
wasn't added. If a file (e.g., a unit test) includes the .h file, but
doesn't refer to do_memsw_account(), it will get a warning like:
mm/memcontrol-v1.h:41:13: warning: unused function 'do_memsw_account' [-Wunused-function]
41 | static bool do_memsw_account(void)
| ^~~~~~~~~~~~~~~~
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 66d60c428b23 ("mm: memcg: move legacy memcg event code into memcontrol-v1.c")
Signed-off-by: John Sperbeck <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
