Message ID | 20220917121228.1889699-1-yangyingliang@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [-next] mm/damon: change damon_lru_sort_stub_pattern to static | expand |
diff --git a/mm/damon/lru_sort.c b/mm/damon/lru_sort.c index abfaf471e3e9..4a40054ba03b 100644 --- a/mm/damon/lru_sort.c +++ b/mm/damon/lru_sort.c @@ -132,7 +132,7 @@ DEFINE_DAMON_MODULES_DAMOS_STATS_PARAMS(damon_lru_sort_cold_stat, lru_sort_tried_cold_regions, lru_sorted_cold_regions, cold_quota_exceeds); -struct damos_access_pattern damon_lru_sort_stub_pattern = { +static struct damos_access_pattern damon_lru_sort_stub_pattern = { /* Find regions having PAGE_SIZE or larger size */ .min_sz_region = PAGE_SIZE, .max_sz_region = ULONG_MAX,
damon_lru_sort_stub_pattern is only used in lru_sort.c now, change it to static. Fixes: 27812ec2a990 ("mm/damon: simplify scheme create in lru_sort.c") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- mm/damon/lru_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)