summaryrefslogtreecommitdiff
path: root/include/binman_sym.h
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2023-04-04 13:45:41 -0500
committerSimon Glass <sjg@chromium.org>2023-04-28 11:30:17 -0600
commitc71ee7e163550069828b89247dd7228d35cf10c7 (patch)
tree1d8c7273708892ada4f1bab5d5d49d9394383996 /include/binman_sym.h
parentb52d6de20768ddba6b9e75d198179eca6ec66300 (diff)
downloadu-boot-c71ee7e163550069828b89247dd7228d35cf10c7.tar.gz
u-boot-c71ee7e163550069828b89247dd7228d35cf10c7.tar.bz2
u-boot-c71ee7e163550069828b89247dd7228d35cf10c7.zip
binman: Use unsigned long over typedef ulong
The header binman_sym.h depends on ulong typedef but does not include types.h. This means the header must be included after including types.h or a header that includes it. We could include types.h but instead let's just switch from ulong to directly using unsigned long. This removes the need for typedef'ing it in some of the tests, so also remove those. Signed-off-by: Andrew Davis <afd@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/binman_sym.h')
-rw-r--r--include/binman_sym.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/binman_sym.h b/include/binman_sym.h
index 528d7e4e90..49a95eafad 100644
--- a/include/binman_sym.h
+++ b/include/binman_sym.h
@@ -71,7 +71,7 @@
* value #defined above. This is used to check at runtime if the
* symbol values were filled in and are OK to use.
*/
-extern ulong _binman_sym_magic;
+extern unsigned long _binman_sym_magic;
/**
* DECLARE_BINMAN_MAGIC_SYM - Declare the internal magic symbol
@@ -81,7 +81,7 @@ extern ulong _binman_sym_magic;
* definitions of the symbol.
*/
#define DECLARE_BINMAN_MAGIC_SYM \
- ulong _binman_sym_magic \
+ unsigned long _binman_sym_magic \
__attribute__((aligned(4), section(".binman_sym")))
/**
@@ -93,14 +93,14 @@ extern ulong _binman_sym_magic;
* Return: 1 if binman symbol values are usable, 0 if not
*/
#define BINMAN_SYMS_OK \
- (*(ulong *)&_binman_sym_magic == BINMAN_SYM_MAGIC_VALUE)
+ (*(unsigned long *)&_binman_sym_magic == BINMAN_SYM_MAGIC_VALUE)
/**
* binman_sym() - Access a previously declared symbol
*
* This is used to get the value of a symbol. E.g.:
*
- * ulong address = binman_sym(ulong, u_boot_spl, pos);
+ * unsigned long address = binman_sym(unsigned long, u_boot_spl, pos);
*
* @_type: Type f the symbol (e.g. unsigned long)
* @entry_name: Name of the entry to look for (e.g. 'u_boot_spl')