[PATCH v2 1/2] smbios: smbios.h should not import ofnode.h

Simon Glass sjg at chromium.org
Mon Jan 1 23:41:28 CET 2024


On Mon, Jan 1, 2024 at 11:50 AM Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> The smbios.h include does not use any definitions from ofnode.h.
> So don't include it.
>
> As DECLARE_GLOBAL_DATA_PTR is no longer defined via dm/of.h we need to
> add it to efi_smbios.c.
>
> Add now missing includes to smbios-parser.c.
>
> Remove a superfluous check comparing the sizes of the SMBIOS 2.1 and SMBIOS
> 3.0 anchors.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> v2:
>         new patch
> ---
>  include/smbios.h            | 6 +-----
>  lib/efi_loader/efi_smbios.c | 3 +++
>  lib/smbios-parser.c         | 3 +++
>  3 files changed, 7 insertions(+), 5 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list