@@ -388,9 +388,6 @@ static ssize_t type_show(struct device *dev, struct device_attribute *attr,
ssize_t len = 0;
switch (mem->type) {
- case MEMORY_BLOCK_UNSPECIFIED:
- len = sprintf(buf, "unspecified\n");
- break;
case MEMORY_BLOCK_BOOT:
len = sprintf(buf, "boot\n");
break;
@@ -50,10 +50,6 @@ int set_memory_block_size_order(unsigned int order);
* No memory block is to be created (e.g. device memory). Not exposed to
* user space.
*
- * MEMORY_BLOCK_UNSPECIFIED:
- * The type of memory block was not further specified when adding the
- * memory block.
- *
* MEMORY_BLOCK_BOOT:
* This memory block was added during boot by the basic system. No
* specific device driver takes care of this memory block. This memory
@@ -103,7 +99,6 @@ int set_memory_block_size_order(unsigned int order);
*/
enum {
MEMORY_BLOCK_NONE = 0,
- MEMORY_BLOCK_UNSPECIFIED,
MEMORY_BLOCK_BOOT,
MEMORY_BLOCK_DIMM,
MEMORY_BLOCK_DIMM_UNREMOVABLE,
We now have proper types for all users, we can drop this one. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: "Rafael J. Wysocki" <rafael@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Pavel Tatashin <pasha.tatashin@oracle.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Andrew Banman <andrew.banman@hpe.com> Cc: "mike.travis@hpe.com" <mike.travis@hpe.com> Cc: Oscar Salvador <osalvador@suse.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Michal Suchánek <msuchanek@suse.de> Cc: Vitaly Kuznetsov <vkuznets@redhat.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Pavel Tatashin <pavel.tatashin@microsoft.com> Signed-off-by: David Hildenbrand <david@redhat.com> --- drivers/base/memory.c | 3 --- include/linux/memory.h | 5 ----- 2 files changed, 8 deletions(-)