Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp325392pxf; Thu, 18 Mar 2021 00:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhh7J0LT7fiAwjkD6rInR4L2NashZPsquzRoOBYo8dseIbmvw84JNl3pgzsLCdn28ZroOZ X-Received: by 2002:a05:6402:699:: with SMTP id f25mr2015056edy.47.1616053687439; Thu, 18 Mar 2021 00:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616053687; cv=none; d=google.com; s=arc-20160816; b=e0ZAXh03qT3nE0LINjt1sFlxbuflPFPllsFSMhPTGjdYStRVgcFnltpYeNt+uddXGW 7WYskkLosGv16C7EBJb1ObltUBSpFEHTfB5kn4E0tsMikN3DBkF7mF3l1hvb4Tu7Ummv nPnSP4JoF6RVzRh4zioydSs4eJANhAO604uhaTG6VlFpg74rRVEK3lRHy+Tesb7JcW8+ SyWW3ylSJhVCRTdt5xrZgjjCZR1eQBRznsUqRjd1y7ipg0eXRYEYR6M8tEeyeAwRGpo2 Aj6iKREQWC8OTKE9/SImAO1aeJSi0edzdG0EQv+Y47H7FVwJqwIdYeVYXBCJQ/AJ1Xq/ fccg== 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 :message-id:date:subject:cc:to:from; bh=G96tNnzG1ZKM/LwvJFhz4jnKm/A8rwYPghivPO/sxK4=; b=G+UNZC4nc9C/9Iy8kJu0ZZKMmOZnmcs4Nan0lf5g94tuZI3kRO2z0ARxDi10v37dlc Tj7KEg5oJIbNTM2ZZ1iW6eQCKtLAdyWAOM9Bagh7vdfwQsNjWM/k3zbNDhXmYrqFnXOt bYRxWRWfopxcd3QZBpfNDOrMUU+s11E6GkOrMW+goWZLtyB7RuDBzEdieq/zrsRuw8ui G/3wwIhfgmyPMQL+jnSzzQCOjiTBEHlDpQkddf6qbz6Gth3HYq+whvK9DMAP+zxjhyNs gGR92FiJOtsePNtKuQaK2ipEv8OednpguMNXFT/qnQkpY2uYVwamMqfy7+1PYnDzb8xQ mqAQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si1037288edr.239.2021.03.18.00.47.43; Thu, 18 Mar 2021 00:48:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbhCRHqt (ORCPT + 99 others); Thu, 18 Mar 2021 03:46:49 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:14394 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229540AbhCRHq2 (ORCPT ); Thu, 18 Mar 2021 03:46:28 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4F1Jvm6Dypzkbjr; Thu, 18 Mar 2021 15:44:52 +0800 (CST) Received: from vm-Yoda-Ubuntu1804.huawei.com (10.67.174.59) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Thu, 18 Mar 2021 15:46:18 +0800 From: Xu Yihang To: , , , , , , , , CC: , , Subject: [PATCH -next] x86: Fix unused variable 'hi' Date: Thu, 18 Mar 2021 15:46:07 +0800 Message-ID: <20210318074607.124663-1-xuyihang@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.174.59] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): arch/x86/hyperv/hv_apic.c:58:15: warning: variable ‘hi’ set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv/hv_apic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/hyperv/hv_apic.c b/arch/x86/hyperv/hv_apic.c index 284e73661a18..c0b0a5774f31 100644 --- a/arch/x86/hyperv/hv_apic.c +++ b/arch/x86/hyperv/hv_apic.c @@ -55,7 +55,8 @@ static void hv_apic_icr_write(u32 low, u32 id) static u32 hv_apic_read(u32 reg) { - u32 reg_val, hi; + u32 hi __maybe_unused; + u32 reg_val; switch (reg) { case APIC_EOI: -- 2.17.1