diff options
author | Tom Rini <trini@konsulko.com> | 2023-11-20 16:40:30 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-20 16:40:30 -0500 |
commit | 61fc2d0a47c25042b8698e5c9e9efd03f051813d (patch) | |
tree | e16ed9e136412b7200b0f6c9ff21b897001904be | |
parent | 4d863f0dd7ce40ab1f5ade4d05cbcfe1bcaf34d9 (diff) | |
download | u-boot-61fc2d0a47c25042b8698e5c9e9efd03f051813d.zip u-boot-61fc2d0a47c25042b8698e5c9e9efd03f051813d.tar.gz u-boot-61fc2d0a47c25042b8698e5c9e9efd03f051813d.tar.bz2 |
display_options: Clean up headers
In include/display_options.h we cannot include ourself, but do need
<linux/types.h> directly. Then in lib/display_options.c we further clean
the list to remove common.h.
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | include/display_options.h | 3 | ||||
-rw-r--r-- | lib/display_options.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/display_options.h b/include/display_options.h index 85dacbc..66e5960 100644 --- a/include/display_options.h +++ b/include/display_options.h @@ -9,6 +9,8 @@ #ifndef __DISPLAY_OPTIONS_H #define __DISPLAY_OPTIONS_H +#include <linux/types.h> + /** * print_size() - Print a size with a suffix * @@ -19,7 +21,6 @@ * @size: Size to print * @suffix String to print after the size */ -#include <display_options.h> void print_size(uint64_t size, const char *suffix); /** diff --git a/lib/display_options.c b/lib/display_options.c index 80def52..d6b9355 100644 --- a/lib/display_options.c +++ b/lib/display_options.c @@ -4,14 +4,15 @@ * Wolfgang Denk, DENX Software Engineering, wd@denx.de. */ -#include <common.h> #include <compiler.h> #include <console.h> #include <display_options.h> #include <div64.h> #include <version_string.h> #include <linux/ctype.h> +#include <linux/kernel.h> #include <asm/io.h> +#include <vsprintf.h> char *display_options_get_banner_priv(bool newlines, const char *build_tag, char *buf, int size) |