diff options
| author | Mike Rapoport <[email protected]> | 2023-01-21 12:11:51 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-02-02 22:33:29 -0800 |
| commit | 2e126aa29007353f069c3bab5c2cf52d231cd3ae (patch) | |
| tree | fb61281c11c3db6a8f715e17598e4db1201f09bc /tools/perf/scripts/python/bin | |
| parent | 05a421995503b746095d8ac93fa0ddadfc3c81bc (diff) | |
mm/sparse: fix "unused function 'pgdat_to_phys'" warning
W=1 build with clangs complains:
mm/sparse.c:347:27: warning: unused function 'pgdat_to_phys' [-Wunused-function]
static inline phys_addr_t pgdat_to_phys(struct pglist_data *pgdat)
^
1 warning generated.
pgdat_to_phys() is only used by functions defined when
CONFIG_MEMORY_HOTREMOVE=y.
Move pgdat_to_phys() under #ifdef CONFIG_MEMORY_HOTREMOVE
to make clang happy.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Cc: Miles Chen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions