Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1994160rwb; Sat, 24 Sep 2022 00:40:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5VMLOKZGp2ZAtmiggDGeWgGCmGS/xxIV24I7O+ezjDwUIjo891jG/3QSHKAkkfkYK/iGqo X-Received: by 2002:a17:907:968f:b0:782:6a9d:33fb with SMTP id hd15-20020a170907968f00b007826a9d33fbmr8659760ejc.754.1664005239260; Sat, 24 Sep 2022 00:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664005239; cv=none; d=google.com; s=arc-20160816; b=WhQK6HRTRRvgrViTnS9edVaPzCf1rW3lmieEe3o32MYDULoQI5S/7/2qae9sYVDNOy zmtSPz445/F1l2tlEQwwhCl96Gcv9ti1duoHsJrve/EsXacMUpmHMRlNC/afzGczDrjM Co3pYSTrBqrwwKWUuFSTcoKXCU8NfBlE7YskXDLxV6bIEompHsIxPdCcuJtiucl5ecP8 K4YfhfK0IqH8O4YggcDaTGJ9OwUn8Vl/+MeL6PgD1HHEd0bibe+xT3YqLTovwMnkuJTk EOqcZmGvIfnpHK6JR6lXA8baD6EaLfZV7HjBS7qWLwjRaP//nyaaVcpujWu/qbZCgTAX Qsxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=VipleBONX6O4mf2utGdKFqIs6CFBI84SIFWDWI27/jE=; b=P7sC1eDwvstctX8JnZVb5RmgMMzlhcyDT1I9n5sog5EIK/l/iegEEF5y7/mhaDjBAK SJOczPioYkhNEBHnxgV+0LP2O7nzU8YFuVVFrlqXnihugNLJu/GaldMcNIjMfjyapndf PP8nHUiZ5Zwdh92hgLR9dcdvZFC7YATaXScaHHnrRJMFUginXFCORCxSlvmTvfsr9yFr 90hM28qbvhwdNRrldyMwz1ZM/l23bbkUziZogGAH2x++qfYXkdQZnO1MDds5whsyMy2c tlf/nUT15EwAxd7MXhajIijqap7KlNaczyR/3e6m+draOnAUDTepIkKuSGSwyYsm/SzJ 9I4w== 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 e22-20020a170906505600b0073d15dfd9b7si8726802ejk.472.2022.09.24.00.40.14; Sat, 24 Sep 2022 00:40:39 -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 S233249AbiIXH1k (ORCPT + 99 others); Sat, 24 Sep 2022 03:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233491AbiIXH1U (ORCPT ); Sat, 24 Sep 2022 03:27:20 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77CBA24094; Sat, 24 Sep 2022 00:26:16 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MZL8p75N5zpTrN; Sat, 24 Sep 2022 15:23:22 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500022.china.huawei.com (7.185.36.162) 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 15:26:14 +0800 Received: from ubuntu1804.huawei.com (10.67.175.36) by dggpemm500013.china.huawei.com (7.185.36.172) 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 15:26:14 +0800 From: Chen Zhongjin To: , CC: , Subject: [PATCH -next] module: Remove unused macros module_addr_min/max Date: Sat, 24 Sep 2022 15:22:16 +0800 Message-ID: <20220924072216.103876-1-chenzhongjin@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.175.36] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500013.china.huawei.com (7.185.36.172) 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 Unused macros reported by [-Wunused-macros]. These macros are introduced to record the bound address of modules. '80b8bf436990 ("module: Always have struct mod_tree_root")' This commit has made struct mod_tree_root always exist, which means we can always referencing mod_tree derectly rather than using this macro. So they are useless, remove them for code cleaning. Signed-off-by: Chen Zhongjin --- kernel/module/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/module/main.c b/kernel/module/main.c index a4e4d84b6f4e..96dcc950da60 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -84,9 +84,6 @@ struct mod_tree_root mod_data_tree __cacheline_aligned = { }; #endif -#define module_addr_min mod_tree.addr_min -#define module_addr_max mod_tree.addr_max - struct symsearch { const struct kernel_symbol *start, *stop; const s32 *crcs; -- 2.17.1