Re: [PATCH v2] -git compile fixes for MIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Zhang,

On Wed, Jun 17, 2009 at 9:23 PM, Zhang Le<r0bertz@xxxxxxxxxx> wrote:

>  CC      arch/mips/kernel/traps.o
> cc1: warnings being treated as errors
> /home/zhangle/linux/arch/mips/kernel/traps.c: In function ‘set_uncached_handler’:
> /home/zhangle/linux/arch/mips/kernel/traps.c:1604: error: format not a string literal and no format arguments

This one is caused by one of the Gentoo patches to GCC
(10-format-string-security patch),
I usually remove this patch when building GCC to avoid these stupid
compile failures ;-)


> diff --git a/arch/mips/include/asm/bug.h b/arch/mips/include/asm/bug.h
> index 08ea468..974b161 100644
> --- a/arch/mips/include/asm/bug.h
> +++ b/arch/mips/include/asm/bug.h
> @@ -6,6 +6,7 @@
>  #ifdef CONFIG_BUG
>
>  #include <asm/break.h>
> +#include <linux/compiler.h>
>
>  static inline void __noreturn BUG(void)
>  {

Seems to me to be the best course of action.

Thanks!
        Manuel Lauss


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux