Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3074147rwb; Thu, 29 Sep 2022 20:39:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YvMizpl1qVhG2NjxTHedjOmVdnWndtcaf6L8RK7F3V6N87TBsXI8PzO5FdS7yq2gztYJm X-Received: by 2002:a17:90a:4e48:b0:209:a883:7f45 with SMTP id t8-20020a17090a4e4800b00209a8837f45mr2246232pjl.106.1664509165801; Thu, 29 Sep 2022 20:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664509165; cv=none; d=google.com; s=arc-20160816; b=NHQKfL2G26caNjWPzU7rdp6C9q7G7eLsG2nPMHDO4uULdEXWQQXhmtZfnWG8kbC6Mr TJuT370sbxyI/YWwW8ge3dRWQ13jeTLO/DoBgBRqbxV2eNtHTeTdqyAmkDUsjIKT8TTy kfaS2yqMfbAeMvJOUkAqPu7tblefRGqJ5UURhEkfZJn1AY4lD4H3WaR+vS9n++6oY3+d 79y0UCJZ8WJSoAF6IICiaTgTGHhujPxlxfR5Dz1tCJ/JZeggc60x10+SEjhl8+BFEwjz HjSzQmQkzL0kgKjsg41CvGL3kpIYh7/MP18E2MPcj848YRbKm89X2nM/sq+HNljUWY3m +xfw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=L2yUk7hOTEmYQgo8WCSd7/v36qyDs+8pr9KW1ZiKMmw=; b=p2/En+aWdunu8IZO8crPyCZSqWHJBNt5dprSA+q8NFttNYSWqj9A1q6y2xQtVP/iN3 VhE4KVqSpfEp9sKzU24gMPdDkV7Aud9Ri3I4IkTax9gvOUe1U2txuk5qQQSb4N4spxAe iwb5kS32d/kbhtROeSHEOZGCo+h779pyunuwKziH+ANEhZWSw/c8jpVPG5cByGNF+Q3W ptzMdFTr98N8a7kd0Af/xkfo19jvDIppJ7zhoahRD13ot5nPSNCkGfvlJ+skS3d0FMSi Ce2Enas8C6/hlp8c+gNQ9DIO+tPqmVvvL0Utx1ncoJjq+eBlaORbXjSFiEhTUAhzxChv Vmjw== 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 d34-20020a631d62000000b00434e19e98adsi1795788pgm.129.2022.09.29.20.39.13; Thu, 29 Sep 2022 20:39:25 -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 S229563AbiI3Db1 (ORCPT + 99 others); Thu, 29 Sep 2022 23:31:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiI3DbX (ORCPT ); Thu, 29 Sep 2022 23:31:23 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ACB8DDDA2 for ; Thu, 29 Sep 2022 20:31:21 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Mdwgc2KhnzHqMN; Fri, 30 Sep 2022 11:29:00 +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; Fri, 30 Sep 2022 11:31:19 +0800 Received: from huawei.com (10.67.175.88) 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; Fri, 30 Sep 2022 11:31:18 +0800 From: Li Zetao To: , , , , , , , , CC: , , , , , , , , , Subject: [PATCH -next v3 0/2] Remove unused variables in x86/boot Date: Fri, 30 Sep 2022 03:27:25 +0000 Message-ID: <20220930032727.3451619-1-lizetao1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927081512.2456624-1-lizetao1@huawei.com> References: <20220927081512.2456624-1-lizetao1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.175.88] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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 This series removes some unused variables in x86/boot, and add the "-Wall" flag to Makefile, which is the old problem of x86 not sharing makefiles. Changes since v2: - Add "frame-address" flag and "-std=gnu11" to x86/boot/compressed/Makefile to fix warnings when "-Wall" flag added. - Declare the variable "i" within the for loop to reslove unused variable warning. - Delete __efi_get_rsdp_addr function when CONFIG_EFI is disabled to resolve unused function warning. v2 at: https://lore.kernel.org/all/20220927081512.2456624-1-lizetao1@huawei.com/ Changes since v1: - Add "-Wall" flag to x86/boot/compressed/Makefile - Remove unused variables "et" in efi_get_system_table() and "ret" in efi_get_conf_table() - Remove unused variables "ret" in __efi_get_rsdp_addr() and "nr_tables" in efi_get_rsdp_addr() v1 at: https://lore.kernel.org/all/20220923113209.3046960-1-lizetao1@huawei.com/ Li Zetao (2): x86/boot/compressed: Add "-Wall" flag to Makefile x86/boot: Remove unused variables arch/x86/boot/compressed/Makefile | 3 ++- arch/x86/boot/compressed/acpi.c | 7 +++---- arch/x86/boot/compressed/efi.c | 2 -- arch/x86/boot/compressed/kaslr.c | 3 +-- arch/x86/boot/compressed/sev.c | 1 - 5 files changed, 6 insertions(+), 10 deletions(-) -- 2.34.1