diff options
author | Vaibhav Jain <vaibhav@linux.ibm.com> | 2020-06-15 18:14:03 +0530 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2020-06-15 18:22:43 -0700 |
commit | 97c02c723bcef11da2f46facdde7c34e72ec8a1f (patch) | |
tree | bda7bd01c21518d932cbfb29403cdcaf1855144f /lib | |
parent | 901e34905ac5e402fd690a1fdf51fc7f070bdc6e (diff) | |
download | linux-97c02c723bcef11da2f46facdde7c34e72ec8a1f.tar.gz linux-97c02c723bcef11da2f46facdde7c34e72ec8a1f.tar.bz2 linux-97c02c723bcef11da2f46facdde7c34e72ec8a1f.zip |
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 <vaibhav@linux.ibm.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Piotr Maziarz <piotrx.maziarz@linux.intel.com>
Cc: Cezary Rojewski <cezary.rojewski@intel.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Link: https://lore.kernel.org/r/20200615124407.32596-3-vaibhav@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/seq_buf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/seq_buf.c b/lib/seq_buf.c index 4e865d42ab03..707453f5d58e 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 /** |