mm, slub: make function parse_slub_debug_flags() static
Subsystems (2)
PATCH 1/1 mm, slub: make function parse_slub_debug_flags() static
Fix sparse build warning:
mm/slub.c:1267:6: warning:
symbol 'parse_slub_debug_flags' was not declared. Should it be static?
Reported-by Hulk Robot <[email protected]>
Signed-off-by Wei Yongjun <[email protected]>
--- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slub.c +1 -1
@@ -1264,7 +1264,7 @@ static noinline int free_debug_processing(* * returns the start of next block if there's any, or NULL */ -char * +static char *parse_slub_debug_flags (char *str,slab_flags_t *flags,char **slabs,bool init) {bool higher_order_disable = false;
Quoted 4 lines · Wei Yongjun
Fix sparse build warning:
mm/slub.c:1267:6: warning:
symbol 'parse_slub_debug_flags' was not declared. Should it be static?
Right, thanks.
Quoted 2 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Wei Yongjun <[email protected]>
Acked-by Vlastimil Babka <[email protected]>
Could be squashed to mmotm patch:
mm-slub-extend-slub_debug-syntax-for-multiple-blocks.patch
Quoted 18 lines
--- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/slub.c +1
-1@@ -1264,7 +1264,7 @@ static noinline int free_debug_processing(* * returns the start of next block if there's any, or NULL */ -char * +static char *parse_slub_debug_flags (char *str,slab_flags_t *flags,char **slabs,bool init) {bool higher_order_disable = false;
Quoted 7 lines · Wei Yongjun
Fix sparse build warning:
mm/slub.c:1267:6: warning:
symbol 'parse_slub_debug_flags' was not declared. Should it be static?Reported-by Hulk Robot <[email protected]>Signed-off-by Wei Yongjun <[email protected]>
Acked-by David Rientjes <[email protected]>