From: vibi sreenivasan <vibi_sreenivasan@cms.com>
To: linux-next@vger.kernel.org
Subject: FIX for "kernel/sched.c:7743: warning: initialization from incompatible pointer type"
Date: Thu, 10 Jul 2008 14:54:22 +0530 [thread overview]
Message-ID: <1215681862.2956.46.camel@localhost.localdomain> (raw)
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
reply other threads:[~2008-07-10 9:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1215681862.2956.46.camel@localhost.localdomain \
--to=vibi_sreenivasan@cms.com \
--cc=linux-next@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).