diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2017-10-18 16:59:43 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-10-26 09:25:14 +0200 |
commit | 3b62fdaebfe577566ff2387eb1c55344a7f55982 (patch) | |
tree | 8b7ff2c661b7b8de1735072afa1ff8deaccedc46 /tests/trees.S | |
parent | 2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91 (diff) | |
download | dtc-3b62fdaebfe577566ff2387eb1c55344a7f55982.zip dtc-3b62fdaebfe577566ff2387eb1c55344a7f55982.tar.gz dtc-3b62fdaebfe577566ff2387eb1c55344a7f55982.tar.bz2 |
Remove leading underscores from identifiers
In a number of places, dtc and associated tools and test code use
leading _ characters on identifiers to flag them as "internal", an
idiom taken from the Linux kernel. This is a bad idea in a userspace
program, because identifiers with a leading _ are reserved for the C
library / system.
In some cases, the extra _ served no real purpose, so simply drop it. In
others move to the end of the identifier, which is a convention we're free
to use for our own purposes.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tests/trees.S')
-rw-r--r-- | tests/trees.S | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/trees.S b/tests/trees.S index 9859914..6898cf9 100644 --- a/tests/trees.S +++ b/tests/trees.S @@ -9,8 +9,7 @@ #define TREE_HDR(tree) \ .balign 8 ; \ - .globl _##tree ; \ -_##tree: \ + .globl tree ; \ tree: \ FDTLONG(FDT_MAGIC) ; \ FDTLONG(tree##_end - tree) ; \ @@ -208,8 +207,7 @@ bad_prop_char_end: /* overflow_size_strings */ .balign 8 - .globl _ovf_size_strings -_ovf_size_strings: + .globl ovf_size_strings ovf_size_strings: FDTLONG(FDT_MAGIC) FDTLONG(ovf_size_strings_end - ovf_size_strings) |