mm: Drop elements 'hw' and 'phys_callback' from struct memory_block
Subsystems (2)
PATCH 1/1 mm: Drop elements 'hw' and 'phys_callback' from struct memory_block
memory_block structure elements 'hw' and 'phys_callback' are not getting used. This was originally added with commit 3947be1969a9 ("[PATCH] memory
hotplug: sysfs and add/remove functions") but never seem to have been used. Just drop them now.
--- include/linux/memory.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/memory.h +0 -2
@@ -29,8 +29,6 @@ struct memory_block {int section_count;/* serialized by mem_sysfs_mutex */ int online_type;/* for passing data to online routine */ int phys_device;/* to which fru does this belong? */ -void *hw;/* optional pointer to fw/hw data */ -int (*phys_callback)(struct memory_block *);struct device dev;int nid;/* NID for this memory block */ };
Signature · 1 line
2.20.1
Quoted 31 lines · Anshuman Khandual
memory_blockstructure elements 'hw' and 'phys_callback' are not getting used. This was originally added with commit3947be1969a9("[PATCH] memory
hotplug: sysfs and add/remove functions") but never seem to have been used. Just drop them now.Cc Andrew Morton <[email protected]>Cc David Hildenbrand <[email protected]>Cc Michal Hocko <[email protected]>Cc Pavel Tatashin <[email protected]>Cc Dan Williams <[email protected]>Signed-off-by Anshuman Khandual <[email protected]>--- include/linux/memory.h | 2 -- 1 file changed, 2 deletions(-)include/linux/memory.h +0
-3@@ -29,8 +29,6 @@ struct memory_block {int section_count;/* serialized by mem_sysfs_mutex */ int online_type;/* for passing data to online routine */ int phys_device;/* to which fru does this belong? */ -void *hw;/* optional pointer to fw/hw data */ -int (*phys_callback)(struct memory_block *);struct device dev;int nid;/* NID for this memory block */ }; --
Quoted 1 line
2.20.1
Looks good.
Quoted 22 lines · Anshuman Khandual
memory_blockstructure elements 'hw' and 'phys_callback' are not getting used. This was originally added with commit3947be1969a9("[PATCH] memory
hotplug: sysfs and add/remove functions") but never seem to have been used. Just drop them now.Cc Andrew Morton <[email protected]>Cc David Hildenbrand <[email protected]>Cc Michal Hocko <[email protected]>Cc Pavel Tatashin <[email protected]>Cc Dan Williams <[email protected]>Signed-off-by Anshuman Khandual <[email protected]>--- include/linux/memory.h | 2 -- 1 file changed, 2 deletions(-)include/linux/memory.h +0
-0
include/linux/memory.h struct memory_block { · line 34
Quoted 8 lines
include/linux/memory.h +0
-2@@ -29,8 +29,6 @@ struct memory_block {int section_count;/* serialized by mem_sysfs_mutex */ int online_type;/* for passing data to online routine */ int phys_device;/* to which fru does this belong? */ -void *hw;/* optional pointer to fw/hw data */ -int (*phys_callback)(struct memory_block *);struct device dev;int nid;/* NID for this memory block */ };
Legacy cruft :)
Signature · 3 lines
Thanks, David / dhildenb