diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-08-18 12:47:50 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-05 16:49:14 -0400 |
commit | 4b6e625af44b60a043a09fa4611c34fa358aa226 (patch) | |
tree | 8901c6dd52e299778e7d88651dbe139391412055 | |
parent | 9ddb26e899ac5ff74a561a9a6c563274dd81fecd (diff) |
lib/printbuf: Clean up headers
- Delete a userspace compatibility bit; this isn't how we're doing it
elsewhere
- Alphabetize the headers
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | lib/printbuf.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/printbuf.c b/lib/printbuf.c index 2aa4a1b7294e..5cf79d43f5a4 100644 --- a/lib/printbuf.c +++ b/lib/printbuf.c @@ -1,17 +1,12 @@ // SPDX-License-Identifier: LGPL-2.1+ /* Copyright (C) 2022 Kent Overstreet */ -#ifdef __KERNEL__ +#include <linux/err.h> #include <linux/export.h> #include <linux/kernel.h> -#else -#define EXPORT_SYMBOL(x) -#endif - -#include <linux/err.h> +#include <linux/printbuf.h> #include <linux/slab.h> #include <linux/string_helpers.h> -#include <linux/printbuf.h> static inline unsigned printbuf_linelen(struct printbuf *buf) { |