HomeFreeBSD

bhyve: Address an unused parameter warning in the smbios code

Description

bhyve: Address an unused parameter warning in the smbios code

The compiler was warning that the "size" parameter to
smbios_generic_initializer() was unused. This parameter is apparently
used to populate the "maximum structure size" field in the SMBIOS entry
point, but we were always setting it to zero.

Implement it instead in the main loop of the smbios table builder.

MFC after: 2 weeks
Reviewed by: corvink, jhb
Differential Revision: https://reviews.freebsd.org/D37294

(cherry picked from commit bd634fc733d4d00858174c4e7368c31f3cced3b5)

Details

Provenance
markjAuthored on Nov 18 2022, 7:06 PM
Reviewer
corvink
Differential Revision
D37294: bhyve: Address an unused parameter warning in the smbios code
Parents
rG50f61166f7b9: Revert "LinuxKPI: Add pci_power querying for drm-kmod"
Branches
Unknown
Tags
Unknown