diff mbox series

[RESEND,v7,2/5] seq_buf: Export seq_buf_printf() to external modules

Message ID 20200519190058.257981-3-vaibhav@linux.ibm.com
State Superseded
Headers show
Series powerpc/papr_scm: Add support for reporting nvdimm health | expand


Context Check Description
snowpatch_ozlabs/needsstable success Patch has no Fixes tags
snowpatch_ozlabs/checkpatch success total: 0 errors, 0 warnings, 0 checks, 7 lines checked
snowpatch_ozlabs/apply_patch success Successfully applied on branch powerpc/merge (7b06fb8795ffea9d12be45a172197c3307955479)

Commit Message

Vaibhav Jain May 19, 2020, 7 p.m. UTC
'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 stills not
exported to external 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
external GPL modules. This symbol will be used in later parts of this
patchset to simplify content creation for a sysfs attribute.

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Piotr Maziarz <piotrx.maziarz@linux.intel.com>
Cc: Cezary Rojewski <cezary.rojewski@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>

* Added ack from Steven Rostedt

* New patch in the series
 lib/seq_buf.c | 1 +
 1 file changed, 1 insertion(+)


Christoph Hellwig May 20, 2020, 5:01 p.m. UTC | #1
s/seq_buf: Export seq_buf_printf() to external modules/
  seq_buf: export seq_buf_printf/
diff mbox series


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;