mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-26 21:13:48 +00:00
c71ee7e163
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>
18 lines
442 B
C
18 lines
442 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2017 Google, Inc
|
|
*
|
|
* Simple program to create some binman symbols. This is used by binman tests.
|
|
*/
|
|
|
|
#include <linux/kconfig.h>
|
|
#include <binman_sym.h>
|
|
|
|
DECLARE_BINMAN_MAGIC_SYM;
|
|
|
|
unsigned long val1 = 123;
|
|
unsigned long val2 = 456;
|
|
binman_sym_declare(unsigned long, inset, offset);
|
|
unsigned long val3 = 789;
|
|
unsigned long val4 = 999;
|
|
binman_sym_declare(unsigned long, inset, size);
|