]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
display_options.h: Correct includes
authorTom Rini <trini@konsulko.com>
Wed, 1 Nov 2023 16:28:07 +0000 (12:28 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 7 Nov 2023 19:50:51 +0000 (14:50 -0500)
First, a header should never include itself so remove that. Second, this
header needs <linux/types.h> to be included as the function prototypes
use types that we get via that header.

Signed-off-by: Tom Rini <trini@konsulko.com>
include/display_options.h

index 85dacbc7590229c5518ebbb16ac9d77692089735..66e596077370a88ef341c179145b71598ad2fe37 100644 (file)
@@ -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);
 
 /**