Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bootconfig: Remove unused debug function

Remove unused xbc_debug_dump() from bootconfig for clean up
the code.

Link: https://lkml.kernel.org/r/163187297371.2366983.12943349701785875450.stgit@devnote2

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Masami Hiramatsu and committed by
Steven Rostedt (VMware)
9b81c9bf f3668cde

-24
-3
include/linux/bootconfig.h
··· 279 279 /* XBC cleanup data structures */ 280 280 void __init xbc_exit(void); 281 281 282 - /* Debug dump functions */ 283 - void __init xbc_debug_dump(void); 284 - 285 282 #endif
-21
lib/bootconfig.c
··· 4 4 * Masami Hiramatsu <mhiramat@kernel.org> 5 5 */ 6 6 7 - #define pr_fmt(fmt) "bootconfig: " fmt 8 - 9 7 #include <linux/bootconfig.h> 10 8 #include <linux/bug.h> 11 9 #include <linux/ctype.h> 12 10 #include <linux/errno.h> 13 11 #include <linux/kernel.h> 14 12 #include <linux/memblock.h> 15 - #include <linux/printk.h> 16 13 #include <linux/string.h> 17 14 18 15 /* ··· 936 939 ret = xbc_node_num; 937 940 938 941 return ret; 939 - } 940 - 941 - /** 942 - * xbc_debug_dump() - Dump current XBC node list 943 - * 944 - * Dump the current XBC node list on printk buffer for debug. 945 - */ 946 - void __init xbc_debug_dump(void) 947 - { 948 - int i; 949 - 950 - for (i = 0; i < xbc_node_num; i++) { 951 - pr_debug("[%d] %s (%s) .next=%d, .child=%d .parent=%d\n", i, 952 - xbc_node_get_data(xbc_nodes + i), 953 - xbc_node_is_value(xbc_nodes + i) ? "value" : "key", 954 - xbc_nodes[i].next, xbc_nodes[i].child, 955 - xbc_nodes[i].parent); 956 - } 957 942 }