From: Stephen Rothwell Date: Mon, 28 Jul 2008 01:05:04 +0000 (+1000) Subject: more sysdev API change fallout - drivers/base/memory.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f07be1c31cf898e5e3708d52e38db0803c62924;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git more sysdev API change fallout - drivers/base/memory.c Noticed because of this warning: drivers/base/memory.c:279: warning: initialization from incompatible pointer type Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds --- diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 3ad49a00029f..af0d175c025d 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c @@ -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;