Re: 2.6.25-rc8-mm2 -- kernel/sched.c:8294: error: unknown field ‘read_uint’ specified in initializer

From: Miles Lane
Date: Mon Apr 14 2008 - 23:55:41 EST


On Mon, Apr 14, 2008 at 10:38 PM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, 14 Apr 2008 22:28:27 -0400 "Miles Lane" <miles.lane@xxxxxxxxx> wrote:
>
> > Hmm. This is showing up in 2.6.25-rc9 and looks related to the
> > problem in 2.6.25-rc9-mm2:
> >
> > CC kernel/sched.o
> > kernel/sched.c:7988: error: unknown field 'read_u64' specified in initializer
> > kernel/sched.c:7988: error: 'cpu_shares_read_u64' undeclared here (not
> > in a function)
> > kernel/sched.c:7989: error: unknown field 'write_u64' specified in initializer
> > kernel/sched.c:7989: error: 'cpu_shares_write_u64' undeclared here
> > (not in a function)
> > kernel/sched.c:7995: error: unknown field 'read_s64' specified in initializer
> > kernel/sched.c:7995: warning: initialization makes integer from
> > pointer without a cast
> > kernel/sched.c:7996: error: unknown field 'write_s64' specified in initializer
> > kernel/sched.c:7996: warning: initialization from incompatible pointer type
> > kernel/sched.c:8000: error: 'cpu_rt_period_read_uint' undeclared here
> > (not in a function)
> > kernel/sched.c:8001: error: 'cpu_rt_period_write_uint' undeclared here
> > (not in a function)
>
> I'm suspecting that you applied the -mm patch, then you applied
> cgroup-api-files-rename-read-write_uint-methods-to-read_write_u64-fix.patch,
> then you reverted the -mm patch but didn't revert
> cgroup-api-files-rename-read-write_uint-methods-to-read_write_u64-fix.patch.
>

Hmm. Bizarro. I have no recollection of applying such a patch, but maybe
I need to get some more sleep. I just downloaded the whole 2.6.25-rc9
tarball and lo and behold, it worked.

Sorry for the noise,

Miles
--
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/