[Top] [All Lists]

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

To: Zhang Le <>
Subject: Re: [PATCH v2] -git compile fixes for MIPS
From: Manuel Lauss <>
Date: Wed, 17 Jun 2009 21:31:33 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YPxfVt0zGaic7jg+hTHOLbdLu8NZYFB2KikQ0Y+7ecQ=; b=AiwPssY5aygNlTTL3xUQgelvpqytvXV3Q4pa+sDbV+Kis3MCyDu3Ls/edda0jjvgpe x9iE0+s4W5cV2lMvc6gGJ1cDrZcRb4jyZ29Stu8aoMcbM/r+86r5DhuyFxxSBA8oD5hS 7Pcti0zxwdQwW/aIqFItkw7I+dpZfpU/M1w/k=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=grPrW44eBdZsZ9oyTdYkQsPL5qp4jAdZ4lYomgML16h8IqsWJ8R5dxdpm50bVDKem+ p0LS3ZBIi5Ge8wRmcS35UJkaBkOeeGF0EFMA2llrBAS7LyNyfi3OSPBhShNU5Zw0rf3t tdYTYlg9Pp6WBUUfLtWsJKDwz69+W2frnzmDY=
In-reply-to: <>
Original-recipient: rfc822;
References: <>
Hi Zhang,

On Wed, Jun 17, 2009 at 9:23 PM, Zhang Le<> 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.

        Manuel Lauss

<Prev in Thread] Current Thread [Next in Thread>