Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3330601pxf; Mon, 22 Mar 2021 04:04:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4Q5rApGgDRZYd+SfbgJET9vRdcK39/OOzZXjTpJq1BLSwWMkxHZiuXk1Mo1UGMOt05wf3 X-Received: by 2002:aa7:cc94:: with SMTP id p20mr25390191edt.353.1616411070172; Mon, 22 Mar 2021 04:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616411070; cv=none; d=google.com; s=arc-20160816; b=vOXUCFb4R3p5Zl2J9W04OI7d6Pjf7I6Ms2wYzZMKelSlqi1ln2CnXDL4VJt9momm8W 2zZyDly0ehoxJ4j7IWPGP/IaY6qwZzvaaxYARzw5V4lv2TpXDUdf1wI1yeZHYsdPIbRn aScQcLmSkD99XwLB2MIYHSPsLKJjz8ChZwSsD9vPNiE7Du/CkT+mm2UwkirnLgrNuZsx iqrAiW3FvIqknsuwVI/Rnkv2edP7xATCGKoICH+GG/QNru1GUDgElB+IKHhEzkoySSyz N7VtzBdIaN2ievvpmNssTQBWGe4xHqgx+nflPAwT1tN8gyjCM5UCD+Mh0pUKgqB8DXA6 H6Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=BiMK781eStD+pPVhDiy7PA0LMsxXNJAo0Ygpgg62UGc=; b=DkI36/SYsef1t4bFW6RIAeWWtCiLbvX3knVV21l2laLS7w4CRTTlG41XpPkK9WBn93 ISAfZ+IxhDo4IeAPAOuoDHcw7JQGxvhrLA1qQdspYFNVVuzFeDGkLMqQOOqpn6a8XS8S zRUUFY3xG7OQuFCRIQfw1/wtIZPZklivfdtuUrg2gKfc9IpKNOlEPSEgEmKAxeb9v5o9 NT3ksxREye7mNqHUl8BwR/8+VHshIz5ryFH8rQf1hBdCuMg218DhEda2re8FIVNMlV8t /Ei5b8zfxN3AMCRGt7YPIYr8/h9HxOykEGWOllI/rD/WEZoh6t6biv7QkNrKZhAGtGp1 U8gw== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si11146276edr.358.2021.03.22.04.04.07; Mon, 22 Mar 2021 04:04:30 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbhCVLCx (ORCPT + 99 others); Mon, 22 Mar 2021 07:02:53 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:51935 "EHLO mail-wm1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbhCVLCY (ORCPT ); Mon, 22 Mar 2021 07:02:24 -0400 Received: by mail-wm1-f49.google.com with SMTP id p19so9225170wmq.1; Mon, 22 Mar 2021 04:02:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=BiMK781eStD+pPVhDiy7PA0LMsxXNJAo0Ygpgg62UGc=; b=YgxXTmNZLa//f+TIt3uDgAHrQGabu77DxS0d9JqN7kyktOq7gbBtkOXyq9wbsmOdMx 3+DqawMfRiCr4NecqEjgmsVOhMvOOt1SijF5VUGVhwnIg0ajvooVQQjYtPhRmEjlOYvp gDTb1mKUCPoLw67bKDkGOdocR+rcqRrqYNns8hiOyPZCGYEsEiog8vVNS1Ot4hZWVnna i4GnwXg1FJthio9RKyLsgYnQZ/B6yAUuS7qm1det2HaclbS6G+p3ziTDfWGCO3p39eXu Vl588h5V9kiua/gGw6ufPeGMsTrGG8dRuThQrcEsP4gxDiJgwdTAQkmpcshHjofhGOcH eVDw== X-Gm-Message-State: AOAM530HRtTpKHikeuYRNIyUoy11NyIAbLqhGEMXiePJWiq3XtZGO1UG dLw196UaR+hyE385ny46x8wDUUxQTlQ= X-Received: by 2002:a1c:6309:: with SMTP id x9mr15517329wmb.62.1616410942357; Mon, 22 Mar 2021 04:02:22 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id y16sm19549425wrh.3.2021.03.22.04.02.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 04:02:21 -0700 (PDT) Date: Mon, 22 Mar 2021 11:02:20 +0000 From: Wei Liu To: Xu Yihang Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, johnny.chenyi@huawei.com Subject: Re: [PATCH -next] x86: Fix unused variable 'hi' Message-ID: <20210322110220.ovhqoykjdoptu6gr@liuwe-devbox-debian-v2> References: <20210318074607.124663-1-xuyihang@huawei.com> <20210322035426.71169-1-xuyihang@huawei.com> <20210322035426.71169-2-xuyihang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210322035426.71169-2-xuyihang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 11:54:26AM +0800, Xu Yihang wrote: > 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] > > Compiled with CONFIG_HYPERV enabled: > make allmodconfig ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- > make W=1 arch/x86/hyperv/hv_apic.o ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- > > HV_X64_MSR_EOI stores on bit 31:0 and HV_X64_MSR_TPR stores in bit 7:0, which means higher 32 bits are not really used, therefore __maybe_unused added. > > Reported-by: Hulk Robot > Signed-off-by: Xu Yihang I slightly modified the commit message and queued it up for hyperv-next. Thanks. Wei.