Skip to content

Conversation

@jolivain
Copy link

Commit [1] updated the uses of SMBIOS type 4 and 7 structures for Silicon/Marvell but forgot to actually use SMBIOS_CACHE_SIZE_2 structures (introduced in commit [2]).

Compiling this platform fails with error:

edk2-platforms/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c:231:3: error: unsigned conversion from ‘int’ to ‘unsigned char:1’ changes value from ‘48’ to ‘0’ [-Werror=overflow]
  231 |   48,    //48k installed
      |   ^~

This commit fixes this issue.

[1] 8390e51
[2] tianocore/edk2@dfac150

Commit [1] updated the uses of SMBIOS type 4 and 7 structures for
Silicon/Marvell but forgot to actually use SMBIOS_CACHE_SIZE_2
structures (introduced in commit [2]).

Compiling this platform fails with error:

    edk2-platforms/Silicon/Marvell/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.c:231:3: error: unsigned conversion from ‘int’ to ‘unsigned char:1’ changes value from ‘48’ to ‘0’ [-Werror=overflow]
      231 |   48,    //48k installed
          |   ^~

This commit fixes this issue.

[1] tianocore@8390e51
[2] tianocore/edk2@dfac150

Signed-off-by: Julien Olivain <ju.o@free.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants