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

Miles Lane
2008-04-15T03:55:40Z

On Mon, Apr 14, 2008 at 10:38 PM, Andrew Morton
<akpm@linux-foundation.org> wrote:
> On Mon, 14 Apr 2008 22:28:27 -0400 "Miles Lane" <miles.lane@gmail.com> 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