linux-mips
[Top] [All Lists]

[PATCH 1/2] au1000: fix build failure for db1x00 configured for Au1100 S

To: ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 1/2] au1000: fix build failure for db1x00 configured for Au1100 SoC
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 17 Aug 2009 00:28:24 +0200
Cc: linux-mips@linux-mips.org, Manuel Lauss <manuel.lauss@googlemail.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:cc:content-type :content-transfer-encoding:content-disposition:message-id; bh=BkBGvb0+pg0vVjQJw5BH6bokqCEP31dS2q5+Ck2d6O8=; b=X/wq7I7Ca3tjveaEWPdm7aRgr9Gl3hRwlCWw1SIG6SXU7Hm5ltl4ob3wFEmVB/Z0hp LkWLvV2JUlpAZuQGr2aLL7KUMtSW43idzG+tcA2e4Ey2Rwdk5j6wSa0b7lTKE1RgrwH4 7je/fTr3YPnANhhYZTcFeYUbDRVM0Y0xHaVXU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:cc :content-type:content-transfer-encoding:content-disposition :message-id; b=xjWBrDuAGDlADPzC4w5FuP5E2U7dBhWs5gYed2vrZv0hk3aUc4iIBHumzvnOBAbWSi YffrRbkldOo//5uPyLcRZHygvDcBrI/WnWwMD31lxhQSURUNd2YMpsVqN/yS9pphlES2 2bkcpBgSZtWEQf8+gZOMoI2KG5kGloM09NNp0=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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

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