Re: [PATCH] Fix cpuset sched_relax_domain_level control file
From: Paul Jackson
Date: Tue May 06 2008 - 22:32:21 EST
Paul M wrote:
> I'm building against 2.6.26-rc1, and don't see those warnings (or any
> useful code at those lines). It's probably more fallout from the
The following error that Andrew reports seems to be another
side affect of the "system" patch to cpusets.
Andrew wrote:
> cpuset files changes?
I see this error too:
kernel/cpuset.c: In function 'cpuset_common_file_write':
kernel/cpuset.c:1374: warning: passing argument 3 of 'update_flag' makes integer from pointer without a cast
kernel/cpuset.c: In function 'cpuset_destroy':
kernel/cpuset.c:1793: warning: passing argument 3 of 'update_flag' makes integer from pointer without a cast
I am building with:
Andrew's latest (last couple hours) mmotm, applied on top of
v2.6.26-rc1, with -just- the first two mmotm patches applied to
v2.6.26-rc1, plus your patch:
origin.patch -- from mmotm
linux-next.patch -- from mmotm
Your recent "Fix cpuset sched_relax_domain_level control file" patch
The warning comes from the type inconsistence between the following
lines of kernel/cpuset.c code. The definition of update_flag() is
expecting an "int turning_on" third argument. The borked "system"
patch (on my wish I could kill it list) is providing a "char *"
argument.
static int update_flag(cpuset_flagbits_t bit, struct cpuset *cs,
int turning_on)
...
static ssize_t cpuset_common_file_write(struct cgroup *cont,
struct cftype *cft,
struct file *file,
const char __user *userbuf,
size_t nbytes, loff_t *unused_ppos)
{
struct cpuset *cs = cgroup_cs(cont);
cpuset_filetype_t type = cft->private;
char *buffer;
int retval = 0;
...
case FILE_SYSTEM:
retval = update_flag(CS_SYSTEM, cs, buffer);
...
if (!is_system(cs))
update_flag(CS_SYSTEM, cs, "1");
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxx> 1.940.382.4214
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/