]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Drop __bss_size variable in bss_data.c
authorSimon Glass <sjg@chromium.org>
Tue, 18 Jul 2023 13:24:00 +0000 (07:24 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 20 Jul 2023 20:10:58 +0000 (14:10 -0600)
This is not needed since the linker script sets it up. Drop the variable
to avoid confusion.

Fix the prototype for main() while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/test/bss_data.c

index 4f9b64cef9ef02716b538bbdfdb216d6bacd43e2..7047a3bb014d8c7bb1fa4121cfcc38f04344091d 100644 (file)
@@ -7,9 +7,8 @@
  */
 
 int bss_data[10];
-int __bss_size = sizeof(bss_data);
 
-int main()
+int main(void)
 {
        bss_data[2] = 2;