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

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

 



Forgot including bug.h. Final fix :

Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxx>
------
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@xxxxxxxxxxx>
> ------
> 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: pgpBpzRk99680.pgp
Description: PGP signature


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

  Powered by Linux