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 4f9b64c..7047a3b 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;