Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2208887rwb; Mon, 19 Sep 2022 01:05:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM69UpTAi9yN9sqBTpqaFta3sG3Mt/kMSSsy1YY+Vo9dDiuLII8BlTPFDHXHVJJN1De+qDhN X-Received: by 2002:a63:1e61:0:b0:41c:45d:7d50 with SMTP id p33-20020a631e61000000b0041c045d7d50mr14185010pgm.507.1663574718348; Mon, 19 Sep 2022 01:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663574718; cv=none; d=google.com; s=arc-20160816; b=S6J+YN5sR9teE3klbA91cGwQswlkhyxAPd5599FrAkeiUJtJHykOo4zU260jO7lyrR kEunbXPWxzhq3FS6OSWccG3ukL9QuxWepM1XYbuWy7x1xaZgV+TiVM7Biq05oljhEleh JTn+1iPURBSEbsZZDk6oZWpjXxzro3iE2lCytFRr00tuGouSZEpxoX1RqkY2BctbMbe+ +PJz26NaiioAxCpNavSKI+/aCzH+Q9uQe762a9mQ2i2KjmWsSdqYl19u7GJdaM0L7Dib IvD/MkYC3drB4TFiZH7QND01ym5W8YvTLkftU30bMNHOhLcidCPlIzvNZ7eloYTvgd1S kNog== 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=18J6JyyQ+NhgN3IRomsV053ZzKKmrAR7wDfE0ZbafLQ=; b=YftxNadZ3W4kBlKWI6dTe6M+76HiWsRa3PF9I9pf3eaWuTklBflrqQNfIBDSVaFAbq /Eza4wU1T5Y/hVRBTgWBbnDxUvanqYNH+COAK/6X5FBQUep7Lqd//u2xuyveO2OjGiGt poqcORUjjWvz3Zs4lSgmZSPZsz82kLQkZbvaEcIGb2tiqzccBaxWFC7sn8Tf6T38vw/+ Ztajrdphn1hLS5PyhweVeITE7oyCTwy9dt//JsmNICpOA4DnpSwO5ZpwvJ/KTQ7qxZ3B JRcEBMC1GVfXct8A/9ZBsWihKwg8aKJOFMoVJGnlgyDVm7UgcrFh02MV6mGek/q75tQr OuZw== 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 r8-20020a635148000000b0042bba5a062csi8971397pgl.280.2022.09.19.01.05.06; Mon, 19 Sep 2022 01:05:18 -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 S230046AbiISH6k (ORCPT + 99 others); Mon, 19 Sep 2022 03:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbiISH6M (ORCPT ); Mon, 19 Sep 2022 03:58:12 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7307E1EEFA for ; Mon, 19 Sep 2022 00:58:11 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MWH631kxPzpSw1; Mon, 19 Sep 2022 15:55:23 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 15:58:09 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 19 Sep 2022 15:58:09 +0800 From: Liu Shixin To: Andrew Morton CC: , Liu Shixin , "Kefeng Wang" Subject: [PATCH 7/9] memory: remove unused register_hotmemory_notifier() Date: Mon, 19 Sep 2022 16:31:50 +0800 Message-ID: <20220919083152.1824305-8-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220919083152.1824305-1-liushixin2@huawei.com> References: <20220919083152.1824305-1-liushixin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100009.china.huawei.com (7.185.36.113) 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 Remove unused register_hotmemory_notifier(). Signed-off-by: Liu Shixin --- include/linux/memory.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/linux/memory.h b/include/linux/memory.h index aa619464a1df..98d2a2ebcc10 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -19,7 +19,6 @@ #include #include #include -#include #define MIN_MEMORY_BLOCK_SIZE (1UL << SECTION_SIZE_BITS) @@ -136,9 +135,6 @@ static inline int hotplug_memory_notifier(notifier_fn_t fn, int pri) { return 0; } -/* These aren't inline functions due to a GCC bug. */ -#define register_hotmemory_notifier(nb) ({ (void)(nb); 0; }) -#define unregister_hotmemory_notifier(nb) ({ (void)(nb); }) #else /* CONFIG_MEMORY_HOTPLUG */ extern int register_memory_notifier(struct notifier_block *nb); extern void unregister_memory_notifier(struct notifier_block *nb); @@ -166,8 +162,6 @@ int walk_dynamic_memory_groups(int nid, walk_memory_groups_func_t func, { .notifier_call = fn, .priority = pri };\ register_memory_notifier(&fn##_mem_nb); \ }) -#define register_hotmemory_notifier(nb) register_memory_notifier(nb) -#define unregister_hotmemory_notifier(nb) unregister_memory_notifier(nb) #ifdef CONFIG_NUMA void memory_block_add_nid(struct memory_block *mem, int nid, -- 2.25.1