Skip to contentSkip to conversation

memory-remove-unused-config_mem_block_size.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 11, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: memory: remove unused CONFIG_MEM_BLOCK_SIZE
has been removed from the -mm tree. Its filename was
memory-remove-unused-config_mem_block_size.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Lukas Bulwahn <[email protected]>
Subject: memory: remove unused CONFIG_MEM_BLOCK_SIZE

Commit 3947be1969a9 ("[PATCH] memory hotplug: sysfs and add/remove functions") defines CONFIG_MEM_BLOCK_SIZE, but this has never been utilized anywhere.

It is a good practice to keep the CONFIG_* defines exclusively for the Kbuild system. So, drop this unused definition.

This issue was noticed due to running ./scripts/checkkconfigsymbols.py.

---

 include/linux/memory.h |    1 -
 1 file changed, 1 deletion(-)
include/linux/memory.h renamed from include/linux/memory.h~memory-remove-unused-config_mem_block_size +0 -1
@@ -140,7 +140,6 @@ typedef int (*walk_memory_blocks_func_t)
 extern int walk_memory_blocks(unsigned long start, unsigned long size,
 			      void *arg, walk_memory_blocks_func_t func);
 extern int for_each_memory_block(void *arg, walk_memory_blocks_func_t func);
-#define CONFIG_MEM_BLOCK_SIZE	(PAGES_PER_SECTION<<PAGE_SHIFT)
 
 extern int memory_group_register_static(int nid, unsigned long max_pages);
 extern int memory_group_register_dynamic(int nid, unsigned long unit_pages);

_

Patches currently in -mm which might be from [email protected] are