diff options
author | Dan Williams <[email protected]> | 2022-06-23 13:02:31 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2022-06-23 18:42:05 -0700 |
commit | f50974eee5c4a5de1e4f1a3d873099f170df25f8 (patch) | |
tree | 21de768bd7bca84fdf1d5171b75a4ff1e681723a /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 8a66487506161dbc1d22fd154d2de0244e232040 (diff) |
memregion: Fix memregion_free() fallback definition
In the CONFIG_MEMREGION=n case, memregion_free() is meant to be a static
inline. 0day reports:
In file included from drivers/cxl/core/port.c:4:
include/linux/memregion.h:19:6: warning: no previous prototype for
function 'memregion_free' [-Wmissing-prototypes]
Mark memregion_free() static.
Fixes: 33dd70752cd7 ("lib: Uplevel the pmem "region" ida to a global allocator")
Reported-by: kernel test robot <[email protected]>
Reviewed-by: Alison Schofield <[email protected]>
Link: https://lore.kernel.org/r/165601455171.4042645.3350844271068713515.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions