Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3988322pxj; Tue, 8 Jun 2021 03:54:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQXpNisr8AipjPmCaULQJ98D83o7CK/vv/MYADRhEdfpoR4QFbPzv10DWOrBOi2z7zqFfT X-Received: by 2002:a05:6402:1052:: with SMTP id e18mr25114554edu.366.1623149642220; Tue, 08 Jun 2021 03:54:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623149642; cv=none; d=google.com; s=arc-20160816; b=Be39L36a8p20TRUgZ4TTyqlOXVjL7RKJ4+Kg5eAvCOxO4uileCmv+n/iRVhfuKHJqo OsUIW2W24ME3u3ywmdBJIDOR19NWLL7ksUVTOAKcad0g2iSN5BrsWzvAa5jEfpmDJEaY HTr6Xdsq0a22VdCdhyr87t49UP6fhHiai9oU9JT6O542Yh7Ebspz+SBo4Mc+S+FUcO+0 D0vLfRIW/llTFycAwTPLmNE49v3Eae6AcMQ5gy3g2u68cfliBJwioYj7QiyyFaTQS4+e M0OtGKgAMHSHphX9XHCJmpklheQFPuD6oOCn8bFj5mZqiSnLneuJelobIYjXKwsJDQfI 0q6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=9FvYwjqvzBP4ax2PoVWtvGVWk437kytb2o9Uww6fhls=; b=KIF1iAysJVzjweEkOnT4YfWnSY10ecZcBbbMhGFSu48RcD9xwHLCjpviUkHwi3nspe xgqi+Vs62wwBZF0ARsnVrS/krMFgiKFqvnLCqRcCliJnX8iFlLaruOclk/x6wkofFmQm uSBvM8qSCsycSneW2MgHXa9j/klgqIBm3IjRPG+V92iPoHLvgNsR5jqGRkyxuYds2m2i L/RzidNahg7wEM5JGa+N79vlalWAWYAXz88qbaPx+rHZt8Y0Md1kobeLVnOguDXeW8Nk ilunk5Q5qTcu1zn3F2gu8MdKG7wtJKvNZH0LViA6HdcIjcl4ZUKiKVsQ8mWEs9AbnSMG /eBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=dmWfdjkq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si16455521edv.125.2021.06.08.03.53.37; Tue, 08 Jun 2021 03:54:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=dmWfdjkq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232027AbhFHKwa (ORCPT + 99 others); Tue, 8 Jun 2021 06:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232014AbhFHKw2 (ORCPT ); Tue, 8 Jun 2021 06:52:28 -0400 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 461ABC061574; Tue, 8 Jun 2021 03:50:35 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Fzn7y5K2nz9sWD; Tue, 8 Jun 2021 20:50:22 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1623149433; bh=NVJds1JqDdvUNi6IIF04B9NNA8p7bimnBo/PySiuSGY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=dmWfdjkq3B0tQV5U9PlicwvqK+CzZtXQo+RWOkJMobSguyPCdaxH8FOB0P0xSNwGG kzBmLIL/3l1d5Lx9v0p32+Xp7rdshT87UFxKDJww54QibI+qq4dmXFlavK1KPW8Tsz dUKZXqG2GwRnDynud4L7w4YtXmgdcXNy+qE6biXfnBwJHQW3APgGUseowAb7Phc/J1 RtcfvLp/YiY4LeCxXv+MSoNodSETzNtOKwxhTJMHwXnGR7TkvnT3KIK5zxfAMuMfBO 6yW38YAPuyM3sra+BhVQpgjmnPJiZLGZj8ZV+9x0I5LTEki8Itf4nuvmZFrThs88Kv 9SqrvDJWcNdUA== From: Michael Ellerman To: David Hildenbrand , linux-kernel@vger.kernel.org Cc: David Hildenbrand , Andrew Morton , Vitaly Kuznetsov , "Michael S. Tsirkin" , Jason Wang , Marek Kedzierski , Hui Zhu , Pankaj Gupta , Wei Yang , Oscar Salvador , Michal Hocko , Dan Williams , Anshuman Khandual , Dave Hansen , Vlastimil Babka , Mike Rapoport , "Rafael J. Wysocki" , Len Brown , Pavel Tatashin , virtualization@lists.linux-foundation.org, linux-mm@kvack.org, linux-acpi@vger.kernel.org, Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Yoshinori Sato , Rich Felker , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Ard Biesheuvel , Nicholas Piggin , Baoquan He , Laurent Dufour , Sergei Trofimovich , Kefeng Wang , Michel Lespinasse , Christophe Leroy , "Aneesh Kumar K.V" , Thiago Jung Bauermann , Joe Perches , Pierre Morel , Jia He , linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Subject: Re: [PATCH v1 04/12] mm/memory_hotplug: remove nid parameter from arch_remove_memory() In-Reply-To: <20210607195430.48228-5-david@redhat.com> References: <20210607195430.48228-1-david@redhat.com> <20210607195430.48228-5-david@redhat.com> Date: Tue, 08 Jun 2021 20:50:21 +1000 Message-ID: <871r9cfx5e.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Hildenbrand writes: > The parameter is unused, let's remove it. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Heiko Carstens > Cc: Vasily Gorbik > Cc: Christian Borntraeger > Cc: Yoshinori Sato > Cc: Rich Felker > Cc: Dave Hansen > Cc: Andy Lutomirski > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: Borislav Petkov > Cc: x86@kernel.org > Cc: "H. Peter Anvin" > Cc: Andrew Morton > Cc: Anshuman Khandual > Cc: Ard Biesheuvel > Cc: Mike Rapoport > Cc: Nicholas Piggin > Cc: Pavel Tatashin > Cc: Baoquan He > Cc: Laurent Dufour > Cc: Sergei Trofimovich > Cc: Kefeng Wang > Cc: Michel Lespinasse > Cc: Christophe Leroy > Cc: "Aneesh Kumar K.V" > Cc: Thiago Jung Bauermann > Cc: Joe Perches > Cc: Pierre Morel > Cc: Jia He > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-ia64@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-s390@vger.kernel.org > Cc: linux-sh@vger.kernel.org > Signed-off-by: David Hildenbrand > --- > arch/arm64/mm/mmu.c | 3 +-- > arch/ia64/mm/init.c | 3 +-- > arch/powerpc/mm/mem.c | 3 +-- > arch/s390/mm/init.c | 3 +-- > arch/sh/mm/init.c | 3 +-- > arch/x86/mm/init_32.c | 3 +-- > arch/x86/mm/init_64.c | 3 +-- > include/linux/memory_hotplug.h | 3 +-- > mm/memory_hotplug.c | 4 ++-- > mm/memremap.c | 5 +---- > 10 files changed, 11 insertions(+), 22 deletions(-) > ... > diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c > index 043bbeaf407c..fc5c36189c26 100644 > --- a/arch/powerpc/mm/mem.c > +++ b/arch/powerpc/mm/mem.c > @@ -115,8 +115,7 @@ int __ref arch_add_memory(int nid, u64 start, u64 size, > return rc; > } > > -void __ref arch_remove_memory(int nid, u64 start, u64 size, > - struct vmem_altmap *altmap) > +void __ref arch_remove_memory(u64 start, u64 size, struct vmem_altmap *altmap) > { > unsigned long start_pfn = start >> PAGE_SHIFT; > unsigned long nr_pages = size >> PAGE_SHIFT; Acked-by: Michael Ellerman (powerpc) cheers