Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp881319rwb; Thu, 22 Sep 2022 07:31:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5lmRBjEQdy8Nyx4xhbLunYnPiXMSwnztDsvlvt8McK9a11RsnQIcVKUzz8PVFE4C1SX76M X-Received: by 2002:a05:6402:290b:b0:454:d4c6:5793 with SMTP id ee11-20020a056402290b00b00454d4c65793mr3686373edb.420.1663857089115; Thu, 22 Sep 2022 07:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663857089; cv=none; d=google.com; s=arc-20160816; b=Ibt+XhJaI01OWLz1wq/WbcNM6XWvv8imTmfOa34t4hiHbBxKmANOuxIO69ub6fQ0wE kZ0M7aTDomIXRx0MiwLdSfRO2fsJaBUHAzi0sFS7MJwsgZzm+lEwAwAp+oYbBTQO3gef KEk5fzhQxCAvAzicqlNVx7B30om2e+E0S2q40HKOKra1ZPVCgO4aHQYBWFyUJYYrdDwI NoGluEyuUevUfm4a7iwNWh1Wa9xMerR08pd/hIblWQUJnBc3YWIF0AYcRiRgKnirF/bg 3ad0Vp7hkPJ0Lk/brEqQntM4+7BG+SCBR8zH6UEkfupuFWImpsO1mO62kLYDAKd0qQeI FULw== 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=wtPsQotmHpoaDQmWY+aTcuzsrB78QtcuRUK1xIXcBFoWJIVpFHQOocMpkjTkxYSFYx /Jf/s+ZNf1p8gDd35ySyiG8y2JtMnD3leCoUZKeGBZ1MlsBGNwQ3ntHJnoVbU0rN4MOe 41PX3P1bEYKsehHp82fe4vdj73YVe8/JpZRCB4eq4QHAixiYscCMZMLmu1VB4Yn/2k+B rXbt7H6Zeyg/IudbQjReF+NsOEpatWXFxI+U2pjsd7uLI0eloBya7MN6kb/YMMapkulr JtXNupnBx1mHAcTmG7wv6H3G1sAMvT2TrHv9/BSp7Cshiv6QywGq2HQiHnYLB0f8kar6 4Fvw== 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 z14-20020a05640240ce00b00453882ae516si6751107edb.166.2022.09.22.07.31.01; Thu, 22 Sep 2022 07:31:29 -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 S231795AbiIVNqD (ORCPT + 99 others); Thu, 22 Sep 2022 09:46:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231308AbiIVNp0 (ORCPT ); Thu, 22 Sep 2022 09:45:26 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F2528A7D7 for ; Thu, 22 Sep 2022 06:45:23 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MYGgz05RfzHpv0; Thu, 22 Sep 2022 21:43:11 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 22 Sep 2022 21:45:21 +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; Thu, 22 Sep 2022 21:45:21 +0800 From: Liu Shixin To: Andrew Morton , David Hildenbrand , Waiman Long , Zefan Li , Christoph Lameter CC: , , Liu Shixin , Kefeng Wang Subject: [PATCH v3 7/8] memory: remove unused register_hotmemory_notifier() Date: Thu, 22 Sep 2022 22:19:03 +0800 Message-ID: <20220922141904.3245505-8-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220922141904.3245505-1-liushixin2@huawei.com> References: <20220922141904.3245505-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: dggems702-chm.china.huawei.com (10.3.19.179) 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