Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1277383 > unrolled thread
| Started by | Geliang Tang <geliangtang@163.com> |
|---|---|
| First post | 2015-11-25 14:20 +0100 |
| Last post | 2015-11-26 06:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 7/7] powerpc: fix a problematic usage of WARN() Geliang Tang <geliangtang@163.com> - 2015-11-25 14:20 +0100
Re: [PATCH 7/7] powerpc: fix a problematic usage of WARN() Michael Ellerman <mpe@ellerman.id.au> - 2015-11-26 06:30 +0100
| From | Geliang Tang <geliangtang@163.com> |
|---|---|
| Date | 2015-11-25 14:20 +0100 |
| Subject | [PATCH 7/7] powerpc: fix a problematic usage of WARN() |
| Message-ID | <qyI9k-6MK-15@gated-at.bofh.it> |
WARN() takes a condition and a format string. The condition was
omitted. So I added it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
---
arch/powerpc/kernel/setup_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 5c03a6a..726a9fb 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -127,7 +127,7 @@ static void setup_tlb_core_data(void)
!mmu_has_feature(MMU_FTR_USE_TLBRSRV) &&
book3e_htw_mode != PPC_HTW_E6500) {
/* Should we panic instead? */
- WARN_ONCE("%s: unsupported MMU configuration -- expect problems\n",
+ WARN_ONCE(1, "%s: unsupported MMU configuration -- expect problems\n",
__func__);
}
}
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2015-11-26 06:30 +0100 |
| Message-ID | <qyXi2-gQ-1@gated-at.bofh.it> |
| In reply to | #1277383 |
On Wed, 2015-11-25 at 21:12 +0800, Geliang Tang wrote:
> WARN() takes a condition and a format string. The condition was
> omitted. So I added it.
>
> Signed-off-by: Geliang Tang <geliangtang@163.com>
> ---
> arch/powerpc/kernel/setup_64.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
> index 5c03a6a..726a9fb 100644
> --- a/arch/powerpc/kernel/setup_64.c
> +++ b/arch/powerpc/kernel/setup_64.c
> @@ -127,7 +127,7 @@ static void setup_tlb_core_data(void)
> !mmu_has_feature(MMU_FTR_USE_TLBRSRV) &&
> book3e_htw_mode != PPC_HTW_E6500) {
> /* Should we panic instead? */
> - WARN_ONCE("%s: unsupported MMU configuration -- expect problems\n",
> + WARN_ONCE(1, "%s: unsupported MMU configuration -- expect problems\n",
> __func__);
> }
> }
Oh yuck.
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web