From: vibi sreenivasan <vibi_sreenivasan@cms.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
linux-next@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH linux-next] Changed arguments to show & store methods for struct sysdev_attribute in kernel/sched.c
Date: Fri, 11 Jul 2008 16:52:25 +0530 [thread overview]
Message-ID: <1215775345.2995.42.camel@localhost.localdomain> (raw)
Hello,
From: Vibi sreenivasan <vibi_sreenivasan@cms.com>
FIXES THIS :
CC kernel/sched.o
kernel/sched.c:7743: warning: initialization from incompatible pointer
type
kernel/sched.c:7743: warning: initialization from incompatible pointer
type
caused by mismatch of function prototype of show & store method in
struct sysdev_attribute
Signed-off-by: Vibi sreenivasan <vibi_sreenivasan@cms.com>
diff --git a/kernel/sched.c b/kernel/sched.c
index 96cee36..8e83460 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -7731,12 +7731,13 @@ static ssize_t sched_power_savings_store(const
char *buf, size_t count, int smt)
}
#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);
}
@@ -7745,12 +7746,13 @@ static SYSDEV_ATTR(sched_mc_power_savings, 0644,
sched_mc_power_savings_show,
#endif
#ifdef CONFIG_SCHED_SMT
-static ssize_t sched_smt_power_savings_show(struct sys_device *dev,
char *page)
+static ssize_t sched_smt_power_savings_show(struct sys_device *dev,
+ struct sysdev_attribute *attribute, char *page)
{
return sprintf(page, "%u\n", sched_smt_power_savings);
}
static ssize_t sched_smt_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, 1);
}
Thanks & Regards
vibi sreenivasan
reply other threads:[~2008-07-11 11:16 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=1215775345.2995.42.camel@localhost.localdomain \
--to=vibi_sreenivasan@cms.com \
--cc=hpa@zytor.com \
--cc=linux-next@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=sfr@canb.auug.org.au \
--cc=tglx@linutronix.de \
/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).