Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4637456pxj; Wed, 12 May 2021 09:46:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFFFbYl194SMYlEg1ncXOb2P0hjmtoYVYo1W+zPvjV5AqcoFEOT0bWhHpdHnqL+DPwjlV0 X-Received: by 2002:aca:d515:: with SMTP id m21mr8197900oig.169.1620837998087; Wed, 12 May 2021 09:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837998; cv=none; d=google.com; s=arc-20160816; b=KlUCDayTl4AFlcG8f0FTDnaAKyvoA4A8b8OWkNp/IRqVbcX0Vy7VrBOp3Ow3WWhKnK lBp1tiIWUvpjPpQeV3eH2axLLNfZDvSzfVCLSsYcIiBNlCEoR/g5WGJSlJOx90aUZR7n wHmePzKQNunrS5O3ikuPTvGq3j3bQtOx7boLZVxQsgmWs3mAiP0cjHjfyCkwFhY23dLY YQCsVIbv1T0rmgnses74FoN8ot1I1wH12w+dbuIFpiNtGL62rf+uHpGKM1MNW5JPp36E PgaqeN4T3lkp6qWhf1iAwwX4TCYQIZdzBb+nqCI/7OXCD6tohfkLUFkEMC8mU/QxSDw0 m+OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=FJoXysi9aPg9pb5lGvF3LYx2Sd6XKk70G4F58h/nr9w=; b=J2S7a/PGE8grNGWr7ldygRU0xpFhxJP4G1uWz5tlWZNY47/TJsXlYIrxJzXcI9oE99 m3FyMhxeJS8pz2PJaso80CeO3Mrq/HrNYiEd68rp66q+k9PJzsDG6HaJRLgzpqqiaJy5 9cYBkKKvzu5EOx/+yWcpPb1mIlYmOGVK44HmTwwomi70HiFc8gD1/dOqkthzdzcpzogd fXnGvGCQ5/QvzxKD3IBfqGNnHHp2l9Fv9bYkv8FeiYQ9PrufcpQtKLQdZG3Ey02AmU3X Oa4ZW969h/L8wxIe3Bk1/XWMtKSNLY7YutvZnYmCoxpvK6Wt7FGt8bk4CrzzFe/G2oVl 4K1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zCy6ct+v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si382676otk.232.2021.05.12.09.46.24; Wed, 12 May 2021 09:46:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zCy6ct+v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233846AbhELQqY (ORCPT + 99 others); Wed, 12 May 2021 12:46:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:50900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237085AbhELPsK (ORCPT ); Wed, 12 May 2021 11:48:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8660661CAF; Wed, 12 May 2021 15:24:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620833076; bh=3HrB1y5VVMzI13bBEQ38jdRsDScWPGaqVI/hHrTBTUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zCy6ct+vjFw71GplKZVOcRTmqNZEgnbo38MCxluyk1ZPjHylu9ueISEZliUD4u+T+ D649sbu3p7VKByp8aVQArH+61ZWbEKH0s/B0LTf0ovCJgNQH5HmqjJVXvW00AGZ7Jw RNdeZOty0dUq4I5Uas7CKbIIZ4Gg2vfbyvDuCGMk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergei Trofimovich , Ard Biesheuvel , Andrew Morton , Linus Torvalds , Sasha Levin Subject: [PATCH 5.10 515/530] ia64: fix EFI_DEBUG build Date: Wed, 12 May 2021 16:50:25 +0200 Message-Id: <20210512144836.685096104@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergei Trofimovich [ 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 Cc: Ard Biesheuvel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- arch/ia64/kernel/efi.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index f932b25fb817..33282f33466e 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -413,10 +413,10 @@ efi_get_pal_addr (void) mask = ~((1 << IA64_GRANULE_SHIFT) - 1); printk(KERN_INFO "CPU %d: mapping PAL code " - "[0x%lx-0x%lx) into [0x%lx-0x%lx)\n", - smp_processor_id(), md->phys_addr, - md->phys_addr + efi_md_size(md), - vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE); + "[0x%llx-0x%llx) into [0x%llx-0x%llx)\n", + smp_processor_id(), md->phys_addr, + md->phys_addr + efi_md_size(md), + vaddr & mask, (vaddr & mask) + IA64_GRANULE_SIZE); #endif return __va(md->phys_addr); } @@ -558,6 +558,7 @@ efi_init (void) { efi_memory_desc_t *md; void *p; + unsigned int i; for (i = 0, p = efi_map_start; p < efi_map_end; ++i, p += efi_desc_size) @@ -584,7 +585,7 @@ efi_init (void) } printk("mem%02d: %s " - "range=[0x%016lx-0x%016lx) (%4lu%s)\n", + "range=[0x%016llx-0x%016llx) (%4lu%s)\n", i, efi_md_typeattr_format(buf, sizeof(buf), md), md->phys_addr, md->phys_addr + efi_md_size(md), size, unit); -- 2.30.2