Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1485243ybl; Thu, 22 Aug 2019 15:37:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXR4v6zhQFM4hT6Kpx4l8xZh+Vv0pz2fSBOlgWKtjK1ni5Yj3luTE5DBNuBf2q4cuKXsBK X-Received: by 2002:a62:fb18:: with SMTP id x24mr1577851pfm.231.1566513439765; Thu, 22 Aug 2019 15:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566513439; cv=none; d=google.com; s=arc-20160816; b=ayYzH93kLJut6F1u7FLn1w4TzlbEoLSHbWOLK0JQYpbB8e4Y25bMnlvbham02ediCn Z6a1HenaMkRQiJokur/OvcXh/QK2NsCrUJyg85EBMLA2P/9fpwx2iMek5KUsSB+abqh3 Mx4YqO2A0+/c0Arn5It5gYhfrliQ/3a5AFNLJbujF4eJesAzDa5dSOO2OETgVWK2mkCU NIFaxY/JC2hvmRmPv/UVPKiOqFjiLItjWw6YsN8pBVOfr9f3glotzwqSRtEQo4zPSQZU kVVet+5KJ3brjqOyhU2vZqbxrOh03hzvOX41OjuLc9Kz7u7dElJeWubP6em52Qt8CH0F OsXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XKBmABesOVVkqbQodwnHxSNJnn4OZ0rEE+5asJpDl6M=; b=JRL5l+lQlT+wyb4DY+hqEtKeQMYPmiGJZb1VFKRgTdIlU7U3QWpKVjoD3EEkeOeLXq zcGEZkAiuzTcgT3shc4lKyCTWdVnLxPGYep73IKYOo/x6yt9ImeEgWpJnRZKvqmEJ5iT 2IS2JtbpOryjllsF7uP6oBdvGmMGLJxghfj3KuWLTOFNr5S6Btj6/45NeX6qNB9z4a05 bM7Rb5Wal4g7l/x0dxq/D/325azedD5JlumgA797k7iWyUvixuahZGgCvsW5G7mu9RjC d/uIUDZ/gAcvCjCX9v25/vfp+6S3lpFIC2FsSwUGjkpwFwa3/AaRopV9SwkbMFT6picj BLIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MeIZ2fru; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si674920plz.89.2019.08.22.15.37.05; Thu, 22 Aug 2019 15:37:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MeIZ2fru; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391102AbfHVROY (ORCPT + 99 others); Thu, 22 Aug 2019 13:14:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:58796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390557AbfHVRIx (ORCPT ); Thu, 22 Aug 2019 13:08:53 -0400 Received: from sasha-vm.mshome.net (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3F78123406; Thu, 22 Aug 2019 17:08:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566493732; bh=GTeKPiSpI0Ea9eCn2SaiWsSMjQ1GBjsNhDD41ADmNiM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MeIZ2fru3N8E4zfz/34+HclMc2GumerQo5p6PebaZIZ/NhTkQJGvhhrb61/5pR/O0 vIpByZJZXQBJEKgTck9pl53cMk/OWHIfHr2eLKBFxrdYBA3RGMvM/VhlmEi0+UpbrV 2Gsr95hAmV4AOfEfdqovo97we01TB3c/y9TQCQII= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Qian Cai , Will Deacon , Catalin Marinas , Sasha Levin Subject: [PATCH 5.2 070/135] arm64/efi: fix variable 'si' set but not used Date: Thu, 22 Aug 2019 13:07:06 -0400 Message-Id: <20190822170811.13303-71-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190822170811.13303-1-sashal@kernel.org> References: <20190822170811.13303-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.2.10-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.2.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.2.10-rc1 X-KernelTest-Deadline: 2019-08-24T17:07+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qian Cai [ Upstream commit f1d4836201543e88ebe70237e67938168d5fab19 ] GCC throws out this warning on arm64. drivers/firmware/efi/libstub/arm-stub.c: In function 'efi_entry': drivers/firmware/efi/libstub/arm-stub.c:132:22: warning: variable 'si' set but not used [-Wunused-but-set-variable] Fix it by making free_screen_info() a static inline function. Acked-by: Will Deacon Signed-off-by: Qian Cai Signed-off-by: Catalin Marinas Signed-off-by: Sasha Levin --- arch/arm64/include/asm/efi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h index c9e9a6978e73e..d3cb42fd51ec2 100644 --- a/arch/arm64/include/asm/efi.h +++ b/arch/arm64/include/asm/efi.h @@ -105,7 +105,11 @@ static inline unsigned long efi_get_max_initrd_addr(unsigned long dram_base, ((protocol##_t *)instance)->f(instance, ##__VA_ARGS__) #define alloc_screen_info(x...) &screen_info -#define free_screen_info(x...) + +static inline void free_screen_info(efi_system_table_t *sys_table_arg, + struct screen_info *si) +{ +} /* redeclare as 'hidden' so the compiler will generate relative references */ extern struct screen_info screen_info __attribute__((__visibility__("hidden"))); -- 2.20.1