summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-08-11 14:24:17 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-08-11 14:24:17 -0400
commitc8a8706c5c69ef0f55eff743f1b9ab1401fe5fbf (patch)
tree6948f8141878a6a07e1e51d2ca9838a8a0a070af
parent0b51dfab5de379a4c4e64f8c60ab56c8b47b918b (diff)
seq_buf: Move to kernel/tracing
Tracing is the last user of seq_buf, which has been replaced by printbufs elsewhere; move out of lib/ since it's no longer the standard API. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/Makefile1
-rw-r--r--kernel/trace/seq_buf.c (renamed from lib/seq_buf.c)0
-rw-r--r--lib/Makefile2
3 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile
index c6651e16b557..03ad4d8c27fb 100644
--- a/kernel/trace/Makefile
+++ b/kernel/trace/Makefile
@@ -52,6 +52,7 @@ obj-$(CONFIG_TRACING) += trace_seq.o
obj-$(CONFIG_TRACING) += trace_stat.o
obj-$(CONFIG_TRACING) += trace_printk.o
obj-$(CONFIG_TRACING) += pid_list.o
+obj-$(CONFIG_TRACING) += seq_buf.o
obj-$(CONFIG_TRACING_MAP) += tracing_map.o
obj-$(CONFIG_PREEMPTIRQ_DELAY_TEST) += preemptirq_delay_test.o
obj-$(CONFIG_SYNTH_EVENT_GEN_TEST) += synth_event_gen_test.o
diff --git a/lib/seq_buf.c b/kernel/trace/seq_buf.c
index 0a68f7aa85d6..0a68f7aa85d6 100644
--- a/lib/seq_buf.c
+++ b/kernel/trace/seq_buf.c
diff --git a/lib/Makefile b/lib/Makefile
index d44f8d03d66b..9ed57a1f9fa0 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -32,7 +32,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
idr.o extable.o irq_regs.o argv_split.o \
flex_proportions.o ratelimit.o show_mem.o \
is_single_threaded.o plist.o decompress.o kobject_uevent.o \
- earlycpio.o seq_buf.o siphash.o dec_and_lock.o \
+ earlycpio.o siphash.o dec_and_lock.o \
nmi_backtrace.o nodemask.o win_minmax.o memcat_p.o \
buildid.o cpumask.o printbuf.o