Skip to contentSkip to conversation

drivers/base/memory.c: fix fallout from sysdev API changes

PATCH In review Nathan Lynch 2 participants 2 messages Jul 27, 2008

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

PATCH 1/1 drivers/base/memory.c: fix fallout from sysdev API changes

drivers/base/memory.c:280: warning: initialization from incompatible pointer type

---
 drivers/base/memory.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/base/memory.c +2 -1
index 3ad49a0..af0d175 100644
@@ -103,7 +103,8 @@ static ssize_t show_mem_phys_index(struct sys_device *dev,
 /*
  * Show whether the section of memory is likely to be hot-removable
  */
-static ssize_t show_mem_removable(struct sys_device *dev, char *buf)
+static ssize_t show_mem_removable(struct sys_device *dev,
+			struct sysdev_attribute *attr, char *buf)
 {
 	unsigned long start_pfn;
 	int ret;
Signature · 1 line
1.5.6.2
#1 lore raw
Quoted 1 line · Nathan Lynch

drivers/base/memory.c:280: warning: initialization from incompatible pointer type

Thanks looks good. I assume Andrew or Greg will merge it.

-Andi