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: Rename xbc_destroy_all() to xbc_exit()

Avoid using this noisy name and use more calm one.
This is just a name change. No functional change.

Link: https://lkml.kernel.org/r/163187295918.2366983.5231840238429996027.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)
115d4d08 f30f00cc

+7 -7
+1 -1
include/linux/bootconfig.h
··· 277 277 int __init xbc_get_info(int *node_size, size_t *data_size); 278 278 279 279 /* XBC cleanup data structures */ 280 - void __init xbc_destroy_all(void); 280 + void __init xbc_exit(void); 281 281 282 282 /* Debug dump functions */ 283 283 void __init xbc_debug_dump(void);
+1 -1
init/main.c
··· 462 462 463 463 static void __init exit_boot_config(void) 464 464 { 465 - xbc_destroy_all(); 465 + xbc_exit(); 466 466 } 467 467 468 468 #else /* !CONFIG_BOOT_CONFIG */
+4 -4
lib/bootconfig.c
··· 802 802 } 803 803 804 804 /** 805 - * xbc_destroy_all() - Clean up all parsed bootconfig 805 + * xbc_exit() - Clean up all parsed bootconfig 806 806 * 807 807 * This clears all data structures of parsed bootconfig on memory. 808 808 * If you need to reuse xbc_init() with new boot config, you can 809 809 * use this. 810 810 */ 811 - void __init xbc_destroy_all(void) 811 + void __init xbc_exit(void) 812 812 { 813 813 memblock_free_ptr(xbc_data, xbc_data_size); 814 814 xbc_data = NULL; ··· 869 869 if (!xbc_nodes) { 870 870 if (emsg) 871 871 *emsg = "Failed to allocate bootconfig nodes"; 872 - xbc_destroy_all(); 872 + xbc_exit(); 873 873 return -ENOMEM; 874 874 } 875 875 memset(xbc_nodes, 0, sizeof(struct xbc_node) * XBC_NODE_MAX); ··· 925 925 *epos = xbc_err_pos; 926 926 if (emsg) 927 927 *emsg = xbc_err_msg; 928 - xbc_destroy_all(); 928 + xbc_exit(); 929 929 } else 930 930 ret = xbc_node_num; 931 931
+1 -1
tools/bootconfig/main.c
··· 397 397 printf("\tChecksum: %d\n", (unsigned int)csum); 398 398 399 399 /* TODO: Check the options by schema */ 400 - xbc_destroy_all(); 400 + xbc_exit(); 401 401 free(buf); 402 402 403 403 /* Remove old boot config if exists */