lkml.org 
[lkml]   [2022]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 7/9] memory: remove unused register_hotmemory_notifier()
    Date
    Remove unused register_hotmemory_notifier().

    Signed-off-by: Liu Shixin <liushixin2@huawei.com>
    ---
    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 <linux/node.h>
    #include <linux/compiler.h>
    #include <linux/mutex.h>
    -#include <linux/notifier.h>

    #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
    \
     
     \ /
      Last update: 2022-09-19 09:58    [W:4.122 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site