]> git.baikalelectronics.ru Git - kernel.git/commitdiff
include/linux/memory.h: drop fields 'hw' and 'phys_callback' from struct memory_block
authorAnshuman Khandual <anshuman.khandual@arm.com>
Fri, 31 Jan 2020 06:15:16 +0000 (22:15 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 31 Jan 2020 18:30:39 +0000 (10:30 -0800)
memory_block structure elements 'hw' and 'phys_callback' are not getting
used.  This was originally added with commit f4139dd75369 ("[PATCH]
memory hotplug: sysfs and add/remove functions") but never seem to have
been used.  Just drop them now.

Link: http://lkml.kernel.org/r/1576728650-13867-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memory.h

index de6bccb28f076fc9a3eac97a0161066edc52cccc..0b8d791b666908d43e828a24de751ef141050d87 100644 (file)
@@ -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 */
 };