]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ia64: fix EFI_DEBUG build
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 30 Apr 2021 05:53:39 +0000 (22:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:45 +0000 (09:50 +0200)
commitc02dd80655fd76556ebe5ef0288b4e67b38026f7
treeac51f0fdea069e3d19e47db87c6b470a3267b94a
parentc6b7e0b1ab8781f410b196f6a74a93e3ec90fdcf
ia64: fix EFI_DEBUG build

[ Upstream commit e3db00b79d74caaf84cd9e1d4927979abfd0d7c9 ]

When enabled local debugging via `#define EFI_DEBUG 1` noticed build
failure:

    arch/ia64/kernel/efi.c:564:8: error: 'i' undeclared (first use in this function)

While at it fixed benign string format mismatches visible only when
EFI_DEBUG is enabled:

    arch/ia64/kernel/efi.c:589:11:
        warning: format '%lx' expects argument of type 'long unsigned int',
        but argument 5 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]

Link: https://lkml.kernel.org/r/20210328212246.685601-1-slyfox@gentoo.org
Fixes: 14fb42090943559 ("efi: Merge EFI system table revision and vendor checks")
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Cc: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/ia64/kernel/efi.c