* [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts()
@ 2023-11-01 17:59 Christophe JAILLET
2023-11-01 17:59 ` [PATCH 1/2] seq_buf: Export seq_buf_putc() Christophe JAILLET
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Christophe JAILLET @ 2023-11-01 17:59 UTC (permalink / raw)
To: rostedt, gregkh, keescook, willy, senozhatsky
Cc: list, linux-kernel, kernel-janitors, Christophe JAILLET
seq_buf_putc() has a potential real use-case (link in the patch), but
seq_buf_puts() has currently no forseen use-case, so I have split it in 2
patches if only the 1st one is accepted.
Christophe JAILLET (2):
seq_buf: Export seq_buf_putc()
seq_buf: Export seq_buf_puts()
lib/seq_buf.c | 2 ++
1 file changed, 2 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] seq_buf: Export seq_buf_putc()
2023-11-01 17:59 [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Christophe JAILLET
@ 2023-11-01 17:59 ` Christophe JAILLET
2023-11-01 17:59 ` [PATCH 2/2] seq_buf: Export seq_buf_puts() Christophe JAILLET
2023-11-01 18:17 ` [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Steven Rostedt
2 siblings, 0 replies; 5+ messages in thread
From: Christophe JAILLET @ 2023-11-01 17:59 UTC (permalink / raw)
To: rostedt, gregkh, keescook, willy, senozhatsky
Cc: list, linux-kernel, kernel-janitors, Christophe JAILLET
Mark seq_buf_putc() which is part of the seq_buf API to be exported to
kernel loadable GPL modules.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
This patch is needed for [1].
(It will need an update because of some recent changes in the seq_buf API)
[1]: https://lore.kernel.org/all/bbbab32e3e104bdc2238724a6a4a85e539f49ddd.1698512661.git.christophe.jaillet@wanadoo.fr/
---
lib/seq_buf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/seq_buf.c b/lib/seq_buf.c
index 23518f77ea9c..fb99168c3309 100644
--- a/lib/seq_buf.c
+++ b/lib/seq_buf.c
@@ -208,6 +208,7 @@ int seq_buf_putc(struct seq_buf *s, unsigned char c)
seq_buf_set_overflow(s);
return -1;
}
+EXPORT_SYMBOL_GPL(seq_buf_putc);
/**
* seq_buf_putmem - write raw data into the sequenc buffer
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] seq_buf: Export seq_buf_puts()
2023-11-01 17:59 [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Christophe JAILLET
2023-11-01 17:59 ` [PATCH 1/2] seq_buf: Export seq_buf_putc() Christophe JAILLET
@ 2023-11-01 17:59 ` Christophe JAILLET
2023-11-01 18:17 ` [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Steven Rostedt
2 siblings, 0 replies; 5+ messages in thread
From: Christophe JAILLET @ 2023-11-01 17:59 UTC (permalink / raw)
To: rostedt, gregkh, keescook, willy, senozhatsky
Cc: list, linux-kernel, kernel-janitors, Christophe JAILLET
Mark seq_buf_puts() which is part of the seq_buf API to be exported to
kernel loadable GPL modules.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
There is currently no need for me for this export, but should the seq_buf
API be more widely used, it could become convenient to have it available.
---
lib/seq_buf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/seq_buf.c b/lib/seq_buf.c
index fb99168c3309..010c730ca7fc 100644
--- a/lib/seq_buf.c
+++ b/lib/seq_buf.c
@@ -187,6 +187,7 @@ int seq_buf_puts(struct seq_buf *s, const char *str)
seq_buf_set_overflow(s);
return -1;
}
+EXPORT_SYMBOL_GPL(seq_buf_puts);
/**
* seq_buf_putc - sequence printing of simple character
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts()
2023-11-01 17:59 [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Christophe JAILLET
2023-11-01 17:59 ` [PATCH 1/2] seq_buf: Export seq_buf_putc() Christophe JAILLET
2023-11-01 17:59 ` [PATCH 2/2] seq_buf: Export seq_buf_puts() Christophe JAILLET
@ 2023-11-01 18:17 ` Steven Rostedt
2023-11-01 21:59 ` Christophe JAILLET
2 siblings, 1 reply; 5+ messages in thread
From: Steven Rostedt @ 2023-11-01 18:17 UTC (permalink / raw)
To: Christophe JAILLET
Cc: gregkh, keescook, willy, senozhatsky, list, linux-kernel,
kernel-janitors, Paul E. McKenney
On Wed, 1 Nov 2023 18:59:04 +0100
Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote:
> seq_buf_putc() has a potential real use-case (link in the patch), but
> seq_buf_puts() has currently no forseen use-case, so I have split it in 2
> patches if only the 1st one is accepted.
>
> Christophe JAILLET (2):
> seq_buf: Export seq_buf_putc()
> seq_buf: Export seq_buf_puts()
>
> lib/seq_buf.c | 2 ++
> 1 file changed, 2 insertions(+)
>
I can pull these in as I'm getting ready for my pull request to Linus soon
(and just kicked off my testing).
Or do you need them as part of the patch you mentioned? When does that need
to go in? Can it wait till it hits Linus's tree?
-- Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts()
2023-11-01 18:17 ` [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Steven Rostedt
@ 2023-11-01 21:59 ` Christophe JAILLET
0 siblings, 0 replies; 5+ messages in thread
From: Christophe JAILLET @ 2023-11-01 21:59 UTC (permalink / raw)
To: Steven Rostedt
Cc: gregkh, keescook, willy, senozhatsky, list, linux-kernel,
kernel-janitors, Paul E. McKenney
Le 01/11/2023 à 19:17, Steven Rostedt a écrit :
> On Wed, 1 Nov 2023 18:59:04 +0100
> Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote:
>
>> seq_buf_putc() has a potential real use-case (link in the patch), but
>> seq_buf_puts() has currently no forseen use-case, so I have split it in 2
>> patches if only the 1st one is accepted.
>>
>> Christophe JAILLET (2):
>> seq_buf: Export seq_buf_putc()
>> seq_buf: Export seq_buf_puts()
>>
>> lib/seq_buf.c | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>
> I can pull these in as I'm getting ready for my pull request to Linus soon
> (and just kicked off my testing).
>
> Or do you need them as part of the patch you mentioned? When does that need
> to go in? Can it wait till it hits Linus's tree?
>
> -- Steve
>
You timing will be mine, no need to hurry.
I'll see when it reaches -next.
Thanks for taking care of it.
CJ
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-01 22:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-01 17:59 [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Christophe JAILLET
2023-11-01 17:59 ` [PATCH 1/2] seq_buf: Export seq_buf_putc() Christophe JAILLET
2023-11-01 17:59 ` [PATCH 2/2] seq_buf: Export seq_buf_puts() Christophe JAILLET
2023-11-01 18:17 ` [PATCH 0/2] seq_buf: Export seq_buf_putc() &nd seq_buf_puts() Steven Rostedt
2023-11-01 21:59 ` Christophe JAILLET
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.