From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 249D2C4332F for ; Wed, 9 Nov 2022 01:40:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbiKIBkC (ORCPT ); Tue, 8 Nov 2022 20:40:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbiKIBiq (ORCPT ); Tue, 8 Nov 2022 20:38:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5487BB2 for ; Tue, 8 Nov 2022 17:38:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 408EE61820 for ; Wed, 9 Nov 2022 01:38:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C2EEC433D7; Wed, 9 Nov 2022 01:38:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1667957923; bh=w1+wnSMdftL/LOv0qDNyHdf4Dg0lPjlb7AmmXvcdmhM=; h=Date:To:From:Subject:From; b=tD7Vy9kqSmDobTgX4If4ajTneCvkpxsaVD5hOxPrWjc+4lgJ25RmJe77vudM9GCTI N0veQ+YWJZVOmSAD1vw8UTcLMyQCeclU4mRShgSVX4ttivJQL+dvQxOXJezbjXPXnu hQ0xMlGZJpcb88tOfEfL08W6xsfU765GxN8GPFqw= Date: Tue, 08 Nov 2022 17:38:43 -0800 To: mm-commits@vger.kernel.org, wangkefeng.wang@huawei.com, longman@redhat.com, lizefan.x@bytedance.com, david@redhat.com, cl@linux.com, liushixin2@huawei.com, akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] fs-proc-kcorec-use-hotplug_memory_notifier-directly.patch removed from -mm tree Message-Id: <20221109013843.9C2EEC433D7@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The quilt patch titled Subject: fs/proc/kcore.c: use hotplug_memory_notifier() directly has been removed from the -mm tree. Its filename was fs-proc-kcorec-use-hotplug_memory_notifier-directly.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Liu Shixin Subject: fs/proc/kcore.c: use hotplug_memory_notifier() directly Date: Fri, 23 Sep 2022 11:33:41 +0800 Commit 76ae847497bc52 ("Documentation: raise minimum supported version of GCC to 5.1") updated the minimum gcc version to 5.1. So the problem mentioned in f02c69680088 ("include/linux/memory.h: implement register_hotmemory_notifier()") no longer exist. So we can now switch to use hotplug_memory_notifier() directly rather than register_hotmemory_notifier(). Link: https://lkml.kernel.org/r/20220923033347.3935160-3-liushixin2@huawei.com Signed-off-by: Liu Shixin Reviewed-by: David Hildenbrand Cc: Christoph Lameter Cc: Kefeng Wang Cc: Waiman Long Cc: zefan li Signed-off-by: Andrew Morton --- fs/proc/kcore.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) --- a/fs/proc/kcore.c~fs-proc-kcorec-use-hotplug_memory_notifier-directly +++ a/fs/proc/kcore.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include @@ -638,10 +637,6 @@ static int __meminit kcore_callback(stru return NOTIFY_OK; } -static struct notifier_block kcore_callback_nb __meminitdata = { - .notifier_call = kcore_callback, - .priority = 0, -}; static struct kcore_list kcore_vmalloc; @@ -694,7 +689,7 @@ static int __init proc_kcore_init(void) add_modules_range(); /* Store direct-map area from physical memory map */ kcore_update_ram(); - register_hotmemory_notifier(&kcore_callback_nb); + hotplug_memory_notifier(kcore_callback, 0); return 0; } _ Patches currently in -mm which might be from liushixin2@huawei.com are