From: Vaibhav Jain Date: Mon, 15 Jun 2020 12:44:03 +0000 (+0530) Subject: seq_buf: Export seq_buf_printf X-Git-Tag: v5.15~3533^2^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97c02c723bcef11da2f46facdde7c34e72ec8a1f;p=platform%2Fkernel%2Flinux-starfive.git seq_buf: Export seq_buf_printf 'seq_buf' provides a very useful abstraction for writing to a string buffer without needing to worry about it over-flowing. However even though the API has been stable for couple of years now its still not exported to kernel loadable modules limiting its usage. Hence this patch proposes update to 'seq_buf.c' to mark seq_buf_printf() which is part of the seq_buf API to be exported to kernel loadable GPL modules. This symbol will be used in later parts of this patch-set to simplify content creation for a sysfs attribute. Signed-off-by: Vaibhav Jain Acked-by: Steven Rostedt (VMware) Cc: Piotr Maziarz Cc: Cezary Rojewski Cc: Christoph Hellwig Cc: Steven Rostedt Cc: Borislav Petkov Link: https://lore.kernel.org/r/20200615124407.32596-3-vaibhav@linux.ibm.com Signed-off-by: Dan Williams --- diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 4e865d4..707453f 100644 --- a/lib/seq_buf.c +++ b/lib/seq_buf.c @@ -91,6 +91,7 @@ int seq_buf_printf(struct seq_buf *s, const char *fmt, ...) return ret; } +EXPORT_SYMBOL_GPL(seq_buf_printf); #ifdef CONFIG_BINARY_PRINTF /**