* [PATCH] MIPS: fix build failure
@ 2015-10-28 10:08 Sudip Mukherjee
2015-10-28 10:18 ` Markos Chandras
0 siblings, 1 reply; 4+ messages in thread
From: Sudip Mukherjee @ 2015-10-28 10:08 UTC (permalink / raw)
To: Ralf Baechle
Cc: linux-kernel, Alex Smith, Markos Chandras, Matthew Fortune,
Sudip Mukherjee
While building for mips defconfig the build failed with the error:
In function 'create_elf_tables':
arch/mips/include/asm/elf.h:425:14: error:
'AT_SYSINFO_EHDR' undeclared (first use in this function)
AT_SYSINFO_EHDR is defined in uapi/asm/auxvec.h which was not included
here.
Fixes: c1fb442ade67 ("MIPS: Initial implementation of a VDSO")
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
This patch is based on mips-for-linux-next branch.
arch/mips/include/asm/elf.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h
index b01a6ff..acd6da2 100644
--- a/arch/mips/include/asm/elf.h
+++ b/arch/mips/include/asm/elf.h
@@ -11,6 +11,7 @@
#include <linux/auxvec.h>
#include <linux/fs.h>
#include <uapi/linux/elf.h>
+#include <uapi/asm/auxvec.h>
#include <asm/cpu-info.h>
#include <asm/current.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] MIPS: fix build failure
2015-10-28 10:08 [PATCH] MIPS: fix build failure Sudip Mukherjee
@ 2015-10-28 10:18 ` Markos Chandras
2015-10-28 10:31 ` Markos Chandras
0 siblings, 1 reply; 4+ messages in thread
From: Markos Chandras @ 2015-10-28 10:18 UTC (permalink / raw)
To: Sudip Mukherjee, Ralf Baechle; +Cc: linux-kernel, Alex Smith, Matthew Fortune
On 10/28/2015 10:08 AM, Sudip Mukherjee wrote:
> While building for mips defconfig the build failed with the error:
> In function 'create_elf_tables':
> arch/mips/include/asm/elf.h:425:14: error:
> 'AT_SYSINFO_EHDR' undeclared (first use in this function)
>
> AT_SYSINFO_EHDR is defined in uapi/asm/auxvec.h which was not included
> here.
>
> Fixes: c1fb442ade67 ("MIPS: Initial implementation of a VDSO")
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
>
> This patch is based on mips-for-linux-next branch.
>
Something is not right here. The <linux/auxvec.h> header is already
included in that file which in turns includes uapi/asm/auxvec.h
I haven't seen this failure in Ralf's tree. Could you share your .config
and perhaps the hash of the mips-for-linux-next tree you tried it on?
--
markos
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] MIPS: fix build failure
2015-10-28 10:18 ` Markos Chandras
@ 2015-10-28 10:31 ` Markos Chandras
2015-10-28 10:48 ` Sudip Mukherjee
0 siblings, 1 reply; 4+ messages in thread
From: Markos Chandras @ 2015-10-28 10:31 UTC (permalink / raw)
To: Sudip Mukherjee, Ralf Baechle; +Cc: linux-kernel, Alex Smith, Matthew Fortune
On 10/28/2015 10:18 AM, Markos Chandras wrote:
> On 10/28/2015 10:08 AM, Sudip Mukherjee wrote:
>> While building for mips defconfig the build failed with the error:
>> In function 'create_elf_tables':
>> arch/mips/include/asm/elf.h:425:14: error:
>> 'AT_SYSINFO_EHDR' undeclared (first use in this function)
>>
>> AT_SYSINFO_EHDR is defined in uapi/asm/auxvec.h which was not included
>> here.
>>
>> Fixes: c1fb442ade67 ("MIPS: Initial implementation of a VDSO")
>> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
>> ---
>>
>> This patch is based on mips-for-linux-next branch.
>>
>
> Something is not right here. The <linux/auxvec.h> header is already
> included in that file which in turns includes uapi/asm/auxvec.h
>
> I haven't seen this failure in Ralf's tree. Could you share your .config
> and perhaps the hash of the mips-for-linux-next tree you tried it on?
>
>
I believe your problem might be similar to this
https://www.linux-mips.org/archives/linux-mips/2015-10/msg00280.html
in other words either remove the generated headers or do a 'make
mrproper' (make sure to backup your .config) and try again
--
markos
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] MIPS: fix build failure
2015-10-28 10:31 ` Markos Chandras
@ 2015-10-28 10:48 ` Sudip Mukherjee
0 siblings, 0 replies; 4+ messages in thread
From: Sudip Mukherjee @ 2015-10-28 10:48 UTC (permalink / raw)
To: Markos Chandras; +Cc: Ralf Baechle, linux-kernel, Alex Smith, Matthew Fortune
On Wed, Oct 28, 2015 at 10:31:24AM +0000, Markos Chandras wrote:
> On 10/28/2015 10:18 AM, Markos Chandras wrote:
> > On 10/28/2015 10:08 AM, Sudip Mukherjee wrote:
> >> While building for mips defconfig the build failed with the error:
> >> In function 'create_elf_tables':
> >> arch/mips/include/asm/elf.h:425:14: error:
> >> 'AT_SYSINFO_EHDR' undeclared (first use in this function)
> >>
> >> AT_SYSINFO_EHDR is defined in uapi/asm/auxvec.h which was not included
> >> here.
> >>
> >> Fixes: c1fb442ade67 ("MIPS: Initial implementation of a VDSO")
> >> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> >> ---
> >>
> >> This patch is based on mips-for-linux-next branch.
> >>
> >
> > Something is not right here. The <linux/auxvec.h> header is already
> > included in that file which in turns includes uapi/asm/auxvec.h
> >
> > I haven't seen this failure in Ralf's tree. Could you share your .config
> > and perhaps the hash of the mips-for-linux-next tree you tried it on?
> >
> >
> I believe your problem might be similar to this
>
> https://www.linux-mips.org/archives/linux-mips/2015-10/msg00280.html
>
> in other words either remove the generated headers or do a 'make
> mrproper' (make sure to backup your .config) and try again
Yes, I did a make distclean to be sure everything is clean. And it
builds properly. Please discard the patch.
Sorry for the noise.
regards
sudip
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-28 10:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 10:08 [PATCH] MIPS: fix build failure Sudip Mukherjee
2015-10-28 10:18 ` Markos Chandras
2015-10-28 10:31 ` Markos Chandras
2015-10-28 10:48 ` Sudip Mukherjee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox