From patchwork Sat Sep 24 07:22:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Zhongjin X-Patchwork-Id: 12987438 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14CFEC32771 for ; Sat, 24 Sep 2022 07:27:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233461AbiIXH1h (ORCPT ); Sat, 24 Sep 2022 03:27:37 -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 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 Precedence: bulk List-ID: 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 Reviewed-by: Christophe Leroy Reviewed-by: Miroslav Benes --- 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;