linux-mips
[Top] [All Lists]

Re: [PATCH 1/2] au1000: fix build failure for db1x00 configured for Au1

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH 1/2] au1000: fix build failure for db1x00 configured for Au1100 SoC
From: Manuel Lauss <manuel.lauss@googlemail.com>
Date: Mon, 31 Aug 2009 08:31:48 +0200
Cc: linux-mips@linux-mips.org, Florian Fainelli <florian@openwrt.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; 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=M7CwZi5dIDli3IxTef/LkapomLp4M81vjulAo9lt1xw=; b=eoPGJ22A4HUbetl9jdwxSHGEnd3lyXNfULUXdr061SHOf2GnjZ7TLzmAgkYTgOeRVO CGw4oM5eyyTWej999fpLbwRWRklJlrArR8PsQEgV/MlnnsZKO9h8TfsHpQ/2NjeWtVnd a+RAi86tAqD6nmpKCT1Ytz23PsYBxG31PTvpg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LRE+DLcOrNtvpMCpZSOusA9d54p4wkCoEuTYX+iO2jA/WZ4ryoln81Jdu6OgBO6Vug hPBMvW31yi8fdSAMpmVPulhCMFl2fwqCRbcaZs69GVDNqiZmboHGIBLMQaEd/11AxVOo wRkwbCTPSve8YEz3t7zKrglwKxksHAoTynWF8=
In-reply-to: <200908170028.27210.florian@openwrt.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200908170028.27210.florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

Please add Florian's patch below to your patchqueue!

On Mon, Aug 17, 2009 at 12:28 AM, Florian Fainelli<florian@openwrt.org> wrote:
> Hi Ralf,
>
> This patch should apply to both -master and -queue. Thanks !
> --
> From: Florian Fainelli <florian@openwrt.org>
> Subject: [PATCH 1/2] au1000: fix build failure for db1x00 configured for 
> Au1100 SoC
>
> This patch fixes the following warning, which becomes an error due to
> -Werror to be turned on:
>  CC      arch/mips/alchemy/common/gpiolib-au1000.o
> cc1: warnings being treated as errors
> arch/mips/alchemy/common/gpiolib-au1000.c: In function 'au1100_gpio2_to_irq':
> /home/florian/dev/kernel/linux-queue/arch/mips/include/asm/mach-au1x00/gpio-au1000.h:107:
>  warning: control reaches end of non-void function
>
> Signed-off-by: Florian Fainelli <florian@openwrt.org>
> ---
> diff --git a/arch/mips/include/asm/mach-au1x00/gpio-au1000.h 
> b/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
> index 127d4ed..4d54d40 100644
> --- a/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
> +++ b/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
> @@ -104,6 +104,8 @@ static inline int au1100_gpio2_to_irq(int gpio)
>
>        if ((gpio >= 8) && (gpio <= 15))
>                return MAKE_IRQ(0, 29);         /* shared GPIO208_215 */
> +
> +       return -ENXIO;
>  }
>
>  #ifdef CONFIG_SOC_AU1100


Thanks!

     Manuel Lauss

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