linux-mips
[Top] [All Lists]

Re: [PATCH] Fix a warning in lib-64/dump_tlb.c

To: Thiemo Seufer <ths@networkno.de>
Subject: Re: [PATCH] Fix a warning in lib-64/dump_tlb.c
From: Florian Fainelli <florian.fainelli@int-evry.fr>
Date: Mon, 26 Mar 2007 23:16:23 +0200
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>, linux-mips@linux-mips.org
In-reply-to: <200703262309.57577.florian.fainelli@int-evry.fr>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <45FABA5A.5000007@int-evry.fr> <20070321165521.GI2311@networkno.de> <200703262309.57577.florian.fainelli@int-evry.fr>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.6
Forgot including bug.h. Final fix :

Signed-off-by: Florian Fainelli <florian.fainelli@int-evry.fr>
------
diff --git a/arch/mips/lib-64/dump_tlb.c b/arch/mips/lib-64/dump_tlb.c
index 8232900..a2a12ee 100644
--- a/arch/mips/lib-64/dump_tlb.c
+++ b/arch/mips/lib-64/dump_tlb.c
@@ -15,6 +15,7 @@
 #include <asm/mipsregs.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
+#include <asm/bug.h>

 static inline const char *msk2str(unsigned int mask)
 {
@@ -30,6 +31,7 @@ static inline const char *msk2str(unsigned int mask)
        case PM_64M:    return "64Mb";
        case PM_256M:   return "256Mb";
 #endif
+       default:        BUG();
        }
 }


Le lundi 26 mars 2007, Florian Fainelli a écrit :
> Hello,
>
> Here is the patch taking into account your remarks. Thanks !
>
> Signed-off-by: Florian Fainelli <florian.fainelli@int-evry.fr>
> ------
> diff --git a/arch/mips/lib-64/dump_tlb.c b/arch/mips/lib-64/dump_tlb.c
> index 8232900..a320944 100644
> --- a/arch/mips/lib-64/dump_tlb.c
> +++ b/arch/mips/lib-64/dump_tlb.c
> @@ -30,6 +30,7 @@ static inline const char *msk2str(unsigned int mask)
>         case PM_64M:    return "64Mb";
>         case PM_256M:   return "256Mb";
>  #endif
> +       default:        BUG();
>         }
>  }

Attachment: pgpM61bWzzbX_.pgp
Description: PGP signature

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