Re: sparc64: build failure at sys_sparc32.c

From: David Miller
Date: Sun Aug 03 2008 - 21:19:45 EST


From: "Alexander Beregalov" <a.beregalov@xxxxxxxxx>
Date: Tue, 29 Jul 2008 12:38:38 +0400

> 2008/7/29 David Miller <davem@xxxxxxxxxxxxx>:
> > From: Alexander Beregalov <a.beregalov@xxxxxxxxx>
> > Date: Tue, 29 Jul 2008 10:59:14 +0400
> >
> >> I am testing build using randconfig.
> >>
> >> arch/sparc64/kernel/sys_sparc32.c: In function 'sys32_chown16':
> >> arch/sparc64/kernel/sys_sparc32.c:63: error: implicit declaration of
> >> function 'low2highuid'
> >> arch/sparc64/kernel/sys_sparc32.c:63: error: implicit declaration of
> >> function 'low2highgid'
> >> arch/sparc64/kernel/sys_sparc32.c: In function 'sys32_getresuid16':
> >> arch/sparc64/kernel/sys_sparc32.c:106: error: implicit declaration of
> >> function 'high2lowuid'
> >> arch/sparc64/kernel/sys_sparc32.c: In function 'sys32_getresgid16':
> >> arch/sparc64/kernel/sys_sparc32.c:123: error: implicit declaration of
> >> function 'high2lowgid'
> >>
> >> These functions are defined in linux/highuid.h only if CONFIG_UID16 is enabled.
> >
> > Thanks, what kernel version is this?
>
> It is current by default - .27-rc1. These files were not touched for a
> long time.
> But, OK, I will mention the kernel version every time.

This is basically setup to fail.

If SPARC64 && COMPAT this option should always be set. But it's
left as an option the user can still disable in this case down
in init/Kconfig.

This can be triggered very likely on other platforms too.

Can someone take a look at fixing this properly? Make it something
that is selected on necessary platforms, for example.
--
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/