Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp493242rwn; Thu, 15 Sep 2022 01:48:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oHZvBwlQnsQiUABR/jF3rUdpRre0z84d3Ky9MRC7vo0wi4wFOLqcbyoHcrporgZjbxyrO X-Received: by 2002:a17:90b:35cf:b0:202:6f3d:53a7 with SMTP id nb15-20020a17090b35cf00b002026f3d53a7mr9687140pjb.63.1663231685804; Thu, 15 Sep 2022 01:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663231685; cv=none; d=google.com; s=arc-20160816; b=gVZYYtXX5anHBoVt+N4D4ftMmUsMxrPIIuS12irTWy39CSSF+QJgLsBCLF51OWQq9A xnGMsiO7o4TrnSBs2Cde/hxI6MbRLo0T8+B2BvGrhgHbbAuPF4doWHPCNY4WpZYZrCh6 vJy0DsUiX+jjRNRnkT/OVFq4Bi3V+qLM9oVf9FUqa7SoQUbKnKpsYCOIDgW4arg7p0I/ 1/2UdxFM8iYeKjJQE56Xrl8qw63FhPl4JPbv5eb3W6qcBKkSJxmEp1O0JFgbQbEHJES+ pG6tWFTJFWeqVKXLA/zRWAddXbgJT1bQNSVeN6XKX/ryrPfp4eWRzln8nQKBfU/kHK/Z QEMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=Cck5aBNQb2HmTYWLTPEzJu3AnzbBNC8yc9w8Epo2kqs=; b=B14+JrLzlW+ZKgR9+TpTuCCpj1rSt0pXNvVioNuqV+7Thzt2go72IqV6F53ZQKKy92 27SLCaeA7NEXS3adn03UO1eALXXevX+6/ZO5Zl1GEtXw+4n9CoJIc5ubrXLfiIXni9Jg Q1URMJbCz88OVXMC1o+LyvxvoXfblGss09UfqxgRfSgxekoODBOBm6FBCSejYCqaxfJC dYmePqL6fWZbfitz2CHVafr8+bk67X12ltmWAXJ9EUrpAZEKfNuuODs6WmzHZAG7MZ6B B/rc2hxYiA2/r8oFqFZFTaUjRg/8zsk6bdu/0x+f9l/DO2FjmfZKgLb0bDjbN7Rwk5Uj EzgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zGypcOTP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi13-20020a17090b1e4d00b001fb0dc33897si1350110pjb.72.2022.09.15.01.47.54; Thu, 15 Sep 2022 01:48:05 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zGypcOTP; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbiIOHh0 (ORCPT + 99 others); Thu, 15 Sep 2022 03:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiIOHhY (ORCPT ); Thu, 15 Sep 2022 03:37:24 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 777CC792E4 for ; Thu, 15 Sep 2022 00:37:23 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 24FC55CE7D; Thu, 15 Sep 2022 07:37:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663227442; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Cck5aBNQb2HmTYWLTPEzJu3AnzbBNC8yc9w8Epo2kqs=; b=zGypcOTPxg8BXInKkII5AlBxd5gie0n5BVsH/6mjIp4Cl2yqxIhgK0wvy9ktguIeifIVE3 iVeS8C7Jh3I6WpxBk69qT9MxkxjMgJBtz10td6aWcxIU9NWHJw6dQ+bELJVjFYjkFxQkbd ffpRmdJ7v9Kv2zkGRRDOWeOuA983XCA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663227442; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Cck5aBNQb2HmTYWLTPEzJu3AnzbBNC8yc9w8Epo2kqs=; b=SqYiZwAhWSJl8lgozLelF3kW3xTF1wBs0g063z8lxcGVYkl+JlsZVftM98pq025qvUqnQF Cs9lpdLKkOKVf1Ag== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C3993133A7; Thu, 15 Sep 2022 07:37:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qH8KLTHWImPDZQAAMHmgww (envelope-from ); Thu, 15 Sep 2022 07:37:21 +0000 Date: Thu, 15 Sep 2022 09:37:20 +0200 From: Oscar Salvador To: Miaohe Lin Cc: akpm@linux-foundation.org, david@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/16] mm, memory_hotplug: remove obsolete generic_free_nodedata() Message-ID: References: <20220909092451.24883-1-linmiaohe@huawei.com> <20220909092451.24883-11-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909092451.24883-11-linmiaohe@huawei.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 Fri, Sep 09, 2022 at 05:24:45PM +0800, 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: Oscar Salvador > --- > 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) > { > } > -- > 2.23.0 > -- Oscar Salvador SUSE Labs