Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2131738rwb; Sat, 24 Sep 2022 03:36:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM56HRDFW3J0Es+XrEt2sniV9QTiXa/hk4XSzbW9rJd/bzw9GZLWsEwrQp+Lb+zFPxwSWK/N X-Received: by 2002:a17:902:da81:b0:178:2663:dc8d with SMTP id j1-20020a170902da8100b001782663dc8dmr13001806plx.49.1664015794634; Sat, 24 Sep 2022 03:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664015794; cv=none; d=google.com; s=arc-20160816; b=KvJeB6LVNG3yibwt151VlSaRZqnr9CsgAKW/ARI4IuAt0KJ3hEBf6RLNVREy5LeFU3 fHHifLquoQ/Mbe+Js+xOsv5SBt5m+r6ztkqOGmFLkDBGTXRucLiqgykp1cMrWTZKf/LF hhea0fyWMDg3E7nXmP1UUu+YpUmeQYCdS9c871hdTKsDVriRqcMxvzE43LfQU6ESd8si hmu20m/vLuvHzDMN0TsnNjtLx+XTuGIvYK1F7tbEDW7fC5lgQVF5IrFmhHiH/Nk4PbHG ZUON6MVx25uyVuKefdMb3xiCPQyCUsJQmyVs6PA8IqLEmBJAuB20Kn+UjoOIxpaoDpAz vUGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=7oglUx3IKCGeAGLfhh4H+ChjFXZn7cyPRxlGZYecTLo=; b=oQX5hiYqQhr42tUA+NzNrVfFKM9UFZ/JmQTo7/KtI1CCEtZrAk2u2TuzHutqi1HL1s t+8kB3k3HKnZ1PJfgtK6vxbdpmTxl9Zvz1MRfqe5BgxfKjPmURpRveJS4JIr2KBclfa5 EEjisqimvjzl1QIVqgGLgBFhMeqKSWAEhcgRwg4hb9u/SpLakhCwqQm2J+pyn1z5N4dv 1EKjUXlS1N79doO429rty2Wx44Vi8vZT5zKXb14zrxzr79KOO/3UM2itfxx+CXn905zr O1vOYiim+ee/TU92caGaMwCI/jwIp24xjy8r2+fXDGFEuM+F4QMAFllzmqthEahXFh7r PLvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a170902eb8100b001755f43df36si5644153plg.479.2022.09.24.03.36.23; Sat, 24 Sep 2022 03:36:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233450AbiIXKS0 (ORCPT + 99 others); Sat, 24 Sep 2022 06:18:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231641AbiIXKSY (ORCPT ); Sat, 24 Sep 2022 06:18:24 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EE86112655 for ; Sat, 24 Sep 2022 03:18:23 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MZPxt2s1jzlXLM; Sat, 24 Sep 2022 18:14:10 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 18:18:21 +0800 Received: from [10.67.111.176] (10.67.111.176) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 24 Sep 2022 18:18:20 +0800 Message-ID: Date: Sat, 24 Sep 2022 18:18:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH -next] x86/sev: Remove unused variable "err" in enforce_vmpl0() To: Borislav Petkov CC: , , , , , , , , References: <20220923113209.3046960-1-lizetao1@huawei.com> From: Li Zetao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.176] X-ClientProxiedBy: dggpeml100009.china.huawei.com (7.185.36.95) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/23 20:19, Borislav Petkov wrote: > On Fri, Sep 23, 2022 at 11:32:09AM +0000, Li Zetao wrote: >> Gcc report warning as follows: >> >> arch/x86/boot/compressed/sev.c: In function ‘enforce_vmpl0’: >> arch/x86/boot/compressed/sev.c:256:13: error: unused variable ‘err’ >> [-Werror=unused-variable] > How do you trigger this? Compiler version and .config? > > I haven't seen this one in any of my builds until now... > > Thx. My Compiler version is 11.2.0. I used the default .config and compiled with flags "-Wall -Werror", just as follows:     make allmodconfig     make EXTRA_CFLAGS="-Wall -Werror" Best regards Li Zetao