[U-Boot] [PATCH v3 4/8] smbios: Allow compilation on 64bit systems

Simon Glass sjg at chromium.org
Wed Aug 17 06:15:43 CEST 2016


On 16 August 2016 at 02:55, Alexander Graf <agraf at suse.de> wrote:
> The SMBIOS generation code passes pointers as u32. That causes the compiler
> to warn on casts to pointers. This patch moves all address pointers to
> uintptr_t instead.
>
> Technically u32 would be enough for the current SMBIOS2 style tables, but
> we may want to extend the code to SMBIOS3 in the future which is 64bit
> address capable.
>
> Signed-off-by: Alexander Graf <agraf at suse.de>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>  arch/x86/lib/tables.c |  7 ++++++-
>  include/smbios.h      |  4 ++--
>  lib/smbios.c          | 16 ++++++++--------
>  3 files changed, 16 insertions(+), 11 deletions(-)

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


More information about the U-Boot mailing list