aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bootconfig.h
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@kernel.org>2021-09-16 15:23:20 +0900
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-10 20:43:42 -0400
commitbdac5c2b243f68ec15f8203c3348ae79fee8e8d8 (patch)
treea48e16528af72efc5e487565cde23a1de5a9a38b /include/linux/bootconfig.h
parentftrace: Cleanup ftrace_dyn_arch_init() (diff)
downloadlinux-dev-bdac5c2b243f68ec15f8203c3348ae79fee8e8d8.tar.xz
linux-dev-bdac5c2b243f68ec15f8203c3348ae79fee8e8d8.zip
bootconfig: Allocate xbc_data inside xbc_init()
Allocate 'xbc_data' in the xbc_init() so that it does not need to care about the ownership of the copied data. Link: https://lkml.kernel.org/r/163177339986.682366.898762699429769117.stgit@devnote2 Suggested-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/bootconfig.h')
-rw-r--r--include/linux/bootconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bootconfig.h b/include/linux/bootconfig.h
index 537e1b991f11..62e09b788172 100644
--- a/include/linux/bootconfig.h
+++ b/include/linux/bootconfig.h
@@ -271,7 +271,7 @@ static inline int __init xbc_node_compose_key(struct xbc_node *node,
}
/* XBC node initializer */
-int __init xbc_init(char *buf, const char **emsg, int *epos);
+int __init xbc_init(const char *buf, size_t size, const char **emsg, int *epos);
/* XBC cleanup data structures */