Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1556147rwi; Mon, 10 Oct 2022 18:55:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46Tl5sWUaDuCpsdipoGjgvCAzViGmsXzdJIlQ/rFnw1ofEbi4LxaQdzOiLBYHWYWrnvt0R X-Received: by 2002:a17:90a:fa85:b0:20b:50ae:62b2 with SMTP id cu5-20020a17090afa8500b0020b50ae62b2mr23210352pjb.3.1665453326589; Mon, 10 Oct 2022 18:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665453326; cv=none; d=google.com; s=arc-20160816; b=0jlDToLYGMcay21CtJDB7cnY694VlCEwPBYGv2CCIAbKN4naWuBSujhq2YxXbEGKhJ 73bcsWDwG4mjYi5TkcZnrectYH/n/c1S612i4agmlT9tnNjEbyDV9mKfJmFLoFTuawUs JZtAXA90iO1tTPcTao30256uLUbBvhh8OYoNTzvNXHlrUxTmCVdzkGt09Palhpnsneqn Klc9kyPO6po2bV1tIGYJCrAclT3gXG1n4BfRbBm8WkgfJ/E2G5hL73ex2KXPL2vC18zh XXOnhCXUhsfctrDvZodSMjWrzHtsPbmgvy7FsDYgGX1SO+LM3ageaOMhkwDi7sVE63xe G9sw== 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=V9dlpezNQQUbItIqPX8qzygQ6y+nh4zFnlTz4hELe/g=; b=t5EP4J9RmMmrfxIbjM66O/IhSt3hLxsLGGr/iAeT2FigTE+VdCXsH99hBBTy8J/uUM Bhc2XYO9Forsk/ZPrAKoiDZjpwyFEeuOHULOjvNYS+eYbNhSQJzB5gvcCjwDBhYp0XJu IVcE7ugqZ6ze6jlp1vyVFbZu5AlHtjFxuoSflgFhPlcKhk6R1b6pp/RlSPHqRHfek+AV kgFUTDZzg6GKnawwdIzGMGSNQicTerNfULT1p6OYw71nxXv5wMyJ16yrVDXjYO43M3Ck WiCqbjn+Cwukn1ZgiT9vCuuMZhFCCvVfABLhCgSrAU47eYuvt89iZtIW6NYDdhRsVGh/ MNMA== 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 mu18-20020a17090b389200b001fffd740a9dsi4518779pjb.122.2022.10.10.18.55.14; Mon, 10 Oct 2022 18:55:26 -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 S230247AbiJKBc5 (ORCPT + 99 others); Mon, 10 Oct 2022 21:32:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbiJKBcy (ORCPT ); Mon, 10 Oct 2022 21:32:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B13753BA for ; Mon, 10 Oct 2022 18:32:52 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MmdTF5TSwzmVBP; Tue, 11 Oct 2022 09:28:17 +0800 (CST) Received: from huawei.com (10.67.175.88) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 09:32:49 +0800 From: Li Zetao To: , , , , , , , , , , , CC: , , , , , , , Subject: [PATCH -next v4 0/2] Remove unused variables in x86/boot Date: Tue, 11 Oct 2022 01:29:02 +0000 Message-ID: <20221011012904.2330473-1-lizetao1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <202210090815.526C76396@keescook> References: <202210090815.526C76396@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.175.88] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) 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 v3: - Re-order the patches, so the fixes for the new warnings are first, and then turn on the compiler flags in a final patch v3 at: https://lore.kernel.org/all/20220930032727.3451619-1-lizetao1@huawei.com/ 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: Remove unused variables x86/boot/compressed: Add "-Wall" flag to Makefile 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