1. Jan 07, 2020
  2. Jan 02, 2020
  3. Dec 30, 2019
  4. Dec 27, 2019
  5. Dec 23, 2019
  6. Dec 16, 2019
  7. Dec 06, 2019
    • Martin Pietryka's avatar
      include: sbi_platform: fix compilation for GCC-9 · dc400423
      Martin Pietryka authored
      
      
      GCC-9 will throw a warning when using the %s format specifier with a
      possible NULL parameter and since -Werror is used, the compilation breaks
      for GCC-9.
      
      In function 'sbi_boot_prints',
          inlined from 'init_coldboot' at <redacted>/opensbi/lib/sbi/sbi_init.c:107:3,
          inlined from 'sbi_init' at <redacted>/opensbi/lib/sbi/sbi_init.c:189:3:
      <redacted>/opensbi/lib/sbi/sbi_init.c:56:2: error: '%s' directive argument is null [-Werror=format-overflow=]
         56 |  sbi_printf("Platform Name          : %s\n", sbi_platform_name(plat));
            |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      
      This is one way to fix this, currently there is nothing in the tree
      checking for `sbi_platfrom_name() == NULL` so we can just return "Unknown"
      instead of NULL on failure.
      
      Signed-off-by: default avatarMartin Pietryka <martin@pietryka.at>
      Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
      Tested-by: default avatarDavid Abdurachmanov <david.abdurachmanov@sifive.com>
      dc400423
  8. Nov 27, 2019
  9. Nov 26, 2019
  10. Nov 21, 2019
  11. Nov 15, 2019
  12. Nov 06, 2019