Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6297763rwn; Tue, 13 Sep 2022 01:59:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR6V8MC6pn9J3+y6134aPEPxeWni+Ie93WN1SxTRkQ6sP+gidh785rGLM7pzKPmhG+Klsxwa X-Received: by 2002:a17:90b:1e49:b0:203:38c:365a with SMTP id pi9-20020a17090b1e4900b00203038c365amr521350pjb.133.1663059555528; Tue, 13 Sep 2022 01:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663059555; cv=none; d=google.com; s=arc-20160816; b=umvLH5kwaVetqGGti3DV5OsKQanYiGqsO9IWKXtNo6XeJr5hayN4xQA3aQe8FQqsYu aEm/3qwNjTKP20qwixxEZUBZ3s/7ltIQPagkUs8JIKukbofZxzBX21TBl1p9IxO9+SeO rycBr27TDBqz/NQEBXkOmWgoQ0dwNlSAiyqcWG0UtKoqvrk1FuT5HdVdBne6NUFOr6nm r034x6bAxYHtX0XDGXJXTaMckLZFzPaAnw6ls3oad//nXpXSdva3ZxB83m0EjjVIVniz 2vEEGVJpfOAXgbsWsrWcjAFAY1LZTG027uz7jkBgEE0hx4BIADHlCc61jK5SqWpA9N+t iS8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=hvjDOHvMa93xyqMoqxpU9uSeW9BTszwsi8ddDdMAMjk=; b=yGrbcGpcTGIQ6jHjuwvb2BxnThQt4HBrqJKwSHR+WJkDjjWxKBCC+6Im1/zybg6mg8 /xY0Gdm5oeeMBkDUAec3AzDep0NO2tPZSY7fReDBWYgFHip+5mbZLk32jWIG9K1mk9Lp T8U3T38PbNY8k56ifPy+PmzTslSCiC3vDPBZypxkfZxtTGIfoCmEtefQN7ZybwlhbNLg tgfiJnrlwt3IGyF1bFTVGAzCoWknnqTp6Ls/KLsxiHYFDyBjCUY788eMNm4S70prRfNh uknIFfDlMddxKAQY9gOaJxhr9BZ7Afowcz3P190UU/BQGOwikMds1gr5B/LnKmhCEm8r Z/xA== 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=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a63715a000000b003fe34317ce2si14553507pgn.778.2022.09.13.01.59.03; Tue, 13 Sep 2022 01:59:15 -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=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231253AbiIMI5o (ORCPT + 99 others); Tue, 13 Sep 2022 04:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230400AbiIMI5m (ORCPT ); Tue, 13 Sep 2022 04:57:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E9E1F3DF1F for ; Tue, 13 Sep 2022 01:57:41 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1EB281063; Tue, 13 Sep 2022 01:57:48 -0700 (PDT) Received: from [10.162.42.9] (unknown [10.162.42.9]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C5903F73B; Tue, 13 Sep 2022 01:57:39 -0700 (PDT) Message-ID: <87e3cb9c-c401-f18b-8d6a-dd63ed6c9e17@arm.com> Date: Tue, 13 Sep 2022 14:27:36 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 10/16] mm, memory_hotplug: remove obsolete generic_free_nodedata() Content-Language: en-US To: Miaohe Lin , akpm@linux-foundation.org Cc: david@redhat.com, osalvador@suse.de, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-11-linmiaohe@huawei.com> From: Anshuman Khandual In-Reply-To: <20220909092451.24883-11-linmiaohe@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 On 9/9/22 14:54, Miaohe Lin wrote: > Commit 390511e1476e ("mm, memory_hotplug: drop arch_free_nodedata") > drops the last caller of generic_free_nodedata(). Remove it too. > > Signed-off-by: Miaohe Lin Reviewed-by: Anshuman Khandual > --- > include/linux/memory_hotplug.h | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/include/linux/memory_hotplug.h b/include/linux/memory_hotplug.h > index 51052969dbfe..9fcbf5706595 100644 > --- a/include/linux/memory_hotplug.h > +++ b/include/linux/memory_hotplug.h > @@ -43,11 +43,6 @@ extern void arch_refresh_nodedata(int nid, pg_data_t *pgdat); > ({ \ > memblock_alloc(sizeof(*pgdat), SMP_CACHE_BYTES); \ > }) > -/* > - * This definition is just for error path in node hotadd. > - * For node hotremove, we have to replace this. > - */ > -#define generic_free_nodedata(pgdat) kfree(pgdat) > > extern pg_data_t *node_data[]; > static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) > @@ -63,9 +58,6 @@ static inline pg_data_t *generic_alloc_nodedata(int nid) > BUG(); > return NULL; > } > -static inline void generic_free_nodedata(pg_data_t *pgdat) > -{ > -} > static inline void arch_refresh_nodedata(int nid, pg_data_t *pgdat) > { > }