]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Address an unused parameter warning in the smbios code
authorMark Johnston <markj@FreeBSD.org>
Fri, 18 Nov 2022 19:06:44 +0000 (14:06 -0500)
committerMark Johnston <markj@FreeBSD.org>
Thu, 15 Dec 2022 19:58:43 +0000 (14:58 -0500)
commit613ced558e7d0575e09c9eeefe7313fdce706bc0
treece381ee14657d328ddd7f26b5d622ae43fb3dea7
parent50f61166f7b911a7807b3cb76d0f382a13fbafcd
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)
usr.sbin/bhyve/smbiostbl.c