Skip to contentSkip to conversation

mm: page_owner: make some functions static

PATCH New Jiapeng Chong 1 participant 1 message May 18, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: page_owner: make some functions static

These functions are not used outside the file page_owner.c, so the modification is defined as static.

mm/page_owner.c:748:5: warning: no previous prototype for ‘page_owner_threshold_get’. mm/page_owner.c:754:5: warning: no previous prototype for ‘page_owner_threshold_set’.

---
 mm/page_owner.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/page_owner.c +2 -2
index 28c519fc9372..bbec66cd1b72 100644
@@ -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;
Signature · 1 line
2.20.1.7.g153144c