Skip to contentSkip to conversation

mm: Drop elements 'hw' and 'phys_callback' from struct memory_block

PATCH Applied Anshuman Khandual 3 participants 3 messages Dec 19, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

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]>
---
 include/linux/memory.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/memory.h +0 -2
index 0ebb105eb261..4e95a9eb8061 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 31 lines · Anshuman Khandual

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.

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]>
---
 include/linux/memory.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/memory.h +0 -3
index 0ebb105eb261..4e95a9eb8061 100644
@@ -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.

Reviewed-by on v1 1/1
#2 lore raw
In reply to Anshuman Khandual
Quoted 22 lines · Anshuman Khandual

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.

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]>
---
 include/linux/memory.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/memory.h +0 -0
index 0ebb105eb261..4e95a9eb8061 100644

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