Skip to content

Commit 8a566f9

Browse files
andy-shevrostedt
authored andcommitted
seq_buf: Don't use "proxy" headers
Update header inclusions to follow IWYU (Include What You Use) principle. Link: https://lkml.kernel.org/r/20240215142255.400264-1-andriy.shevchenko@linux.intel.com Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 9b63263 commit 8a566f9

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

include/linux/seq_buf.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
#ifndef _LINUX_SEQ_BUF_H
33
#define _LINUX_SEQ_BUF_H
44

5-
#include <linux/fs.h>
5+
#include <linux/bug.h>
6+
#include <linux/minmax.h>
7+
#include <linux/seq_file.h>
8+
#include <linux/types.h>
69

710
/*
811
* Trace sequences are used to allow a function to call several other functions

lib/seq_buf.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,19 @@
1313
* seq_buf_init() more than once to reset the seq_buf to start
1414
* from scratch.
1515
*/
16-
#include <linux/uaccess.h>
17-
#include <linux/seq_file.h>
16+
17+
#include <linux/bug.h>
18+
#include <linux/err.h>
19+
#include <linux/export.h>
20+
#include <linux/hex.h>
21+
#include <linux/minmax.h>
22+
#include <linux/printk.h>
1823
#include <linux/seq_buf.h>
24+
#include <linux/seq_file.h>
25+
#include <linux/sprintf.h>
26+
#include <linux/string.h>
27+
#include <linux/types.h>
28+
#include <linux/uaccess.h>
1929

2030
/**
2131
* seq_buf_can_fit - can the new data fit in the current buffer?

0 commit comments

Comments
 (0)