From: Tom Rini <trini@konsulko.com>
Date: Wed, 1 Nov 2023 16:28:07 +0000 (-0400)
Subject: display_options.h: Correct includes
X-Git-Tag: v2025.01-rc5-pxa1908~582^2~36^2~17
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/%7B%7B?a=commitdiff_plain;h=dcda1f27f55e4ddd2d86dac76d57febe15ff8713;p=u-boot.git

display_options.h: Correct includes

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>
---

diff --git a/include/display_options.h b/include/display_options.h
index 85dacbc759..66e5960773 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);
 
 /**