* FIX for "kernel/sched.c:7743: warning: initialization from incompatible pointer type"
@ 2008-07-10 9:24 vibi sreenivasan
0 siblings, 0 replies; only message in thread
From: vibi sreenivasan @ 2008-07-10 9:24 UTC (permalink / raw)
To: linux-next
hello,
i have tried compiling linux-next tree by git clone 1 hour before (using
git for first time). I tried compiling like this
make mrproper
make i386_defconfig
make bzImage
& got kernel/sched.c:7743: warning: initialization from incompatible
pointer type
i have seen that
SYSDEV_ATTR macro expects function pointer with prototype
ssize_t (*show)(struct sys_device *, struct sysdev_attribute *, char *);
ssize_t (*store)(struct sys_device *, struct sysdev_attribute *,
const char *, size_t);
but actual function omits 2nd argument.
--- linux-next/kernel/sched.c 2008-07-10 12:08:18.000000000 +0530
+++ linux-next-fix/kernel/sched.c 2008-07-10 14:07:05.000000000 +0530
@@ -7731,12 +7731,13 @@ static ssize_t sched_power_savings_store
}
#ifdef CONFIG_SCHED_MC
-static ssize_t sched_mc_power_savings_show(struct sys_device *dev, char
*page)
+static ssize_t sched_mc_power_savings_show(struct sys_device *dev,
+ struct sysdev_attribute *attribute, char *page)
{
return sprintf(page, "%u\n", sched_mc_power_savings);
}
static ssize_t sched_mc_power_savings_store(struct sys_device *dev,
- const char *buf, size_t count)
+ struct sysdev_attribute *attribute,const char *buf, size_t count)
{
return sched_power_savings_store(buf, count, 0);
}
PLEASE REVIEW THIS & PARDON ME IF I HAVE WASTED UR TIME ,I AM NOT
EXPERIENCED AS YOU ALL.
Thanks & Regards
vibi sreenivasan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-10 9:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10 9:24 FIX for "kernel/sched.c:7743: warning: initialization from incompatible pointer type" vibi sreenivasan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).