Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp424553rwb; Thu, 22 Sep 2022 21:21:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5B6SyV5CHKx2sOOwg9GWOcWFKmi/WGCIU6fhAIlV3AYovXPIQXX3BGAJYIRFLnsECdayp9 X-Received: by 2002:a17:902:d4c9:b0:178:6d7b:c36f with SMTP id o9-20020a170902d4c900b001786d7bc36fmr6719511plg.19.1663906860333; Thu, 22 Sep 2022 21:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663906860; cv=none; d=google.com; s=arc-20160816; b=iFFIsTr7uUJ7q3MrlC9ofYqMs9cD5v1XmAswrgAlfuhb1qmHj7VufdLCWj6nO6hELb cXjSC5EkQ4Mh/39/LWha0Qv9zG8qtgcAuHswPLZi5kGc2HiG3df6vAElADNA0KTtQf4h oLaLn8lD5JdLJ1bsN7iMuXAXpNd7Mr118UTFGQOfdlUWOMBhHUFlVOc0MK7ACLFerQa1 G6FIiCCEI92sBivaaSPII1SKRFOEZ9yiw0tiFh3IidP3uLDF7lR9aW7i7iBSAH3cfFCm Ppv+zEPMZgusU6XVnHCuMFlIu82nnFW1pFb13xyZnugDNtHwBp4dKCNOLX305gg4+hwu LLCw== 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=xGDKf59uEyyyS/7t/xx336LgTb5d5dPbPy2ZLU9vsXSjeognoSfXd3d++ADB7WvcR5 VgB3p8tpvR4PsQtk+EzWxCEpd/YTDzOPC8OZ4WNAxsYwAk+W8jahv8PKaP1EGg1GsdE8 JXUHsvLTsUYgr9lxCNxwn+HWkbX5Jy0p/ElB8oW2Q0uQB7fHgzZolRf1y3q8ZJfSTrLr mjh7ATA1F6xI/5kkWiSWQDKqgjQ6z6J98ualJ6m3oAodDcbYAxZs/0DLrZ8JahshvllW GqAw5mAOGHMMSGaePMPRHXb4qpJAK//6lUL1AIPCGw4fMuJsaIxhM7IYtoWlhPLVKrHa h/7w== 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 u5-20020a170903124500b001780ba6c694si2306382plh.35.2022.09.22.21.20.48; Thu, 22 Sep 2022 21:21:00 -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 S232350AbiIWDAx (ORCPT + 99 others); Thu, 22 Sep 2022 23:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbiIWDAQ (ORCPT ); Thu, 22 Sep 2022 23:00:16 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96CFC6F559 for ; Thu, 22 Sep 2022 20:00:14 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MYcGq40mLzlXW9; Fri, 23 Sep 2022 10:56:03 +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; Fri, 23 Sep 2022 11:00:12 +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; Fri, 23 Sep 2022 11:00:12 +0800 From: Liu Shixin To: Andrew Morton , David Hildenbrand , Waiman Long , Zefan Li , Christoph Lameter CC: , , Liu Shixin , Kefeng Wang Subject: [PATCH v4 7/8] memory: remove unused register_hotmemory_notifier() Date: Fri, 23 Sep 2022 11:33:46 +0800 Message-ID: <20220923033347.3935160-8-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220923033347.3935160-1-liushixin2@huawei.com> References: <20220923033347.3935160-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: dggems706-chm.china.huawei.com (10.3.19.183) 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