mm,page_owner: mark page_owner_threshold helpers as static
Commit Message
From: Arnd Bergmann <arnd@arndb.de>
The newly added functions have no prototype:
mm/page_owner.c:748:5: error: no previous prototype for 'page_owner_threshold_get' [-Werror=missing-prototypes]
mm/page_owner.c:754:5: error: no previous prototype for 'page_owner_threshold_set' [-Werror=missing-prototypes]
Evidently they are only meant to be used locally, so just mark them static.
Fixes: daed0e400a81 ("mm,page_owner: filter out stacks by a threshold counter")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
mm/page_owner.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -745,13 +745,13 @@ const struct file_operations page_owner_stack_operations = {
unsigned long page_owner_stack_threshold;
-int page_owner_threshold_get(void *data, u64 *val)
+static int page_owner_threshold_get(void *data, u64 *val)
{
*val = page_owner_stack_threshold;
return 0;
}
-int page_owner_threshold_set(void *data, u64 val)
+static int page_owner_threshold_set(void *data, u64 val)
{
page_owner_stack_threshold = val;
return 0;