[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1465332987-28114-1-git-send-email-cmetcalf@mellanox.com>
Date: Tue, 7 Jun 2016 16:56:27 -0400
From: Chris Metcalf <cmetcalf@...lanox.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
<linux-kernel@...r.kernel.org>, <kbuild-all@...org>,
kbuild test robot <fengguang.wu@...el.com>,
Dan Williams <dan.j.williams@...el.com>,
Linux Memory Management List <linux-mm@...ck.org>
CC: Chris Metcalf <cmetcalf@...lanox.com>
Subject: [PATCH] tile: allow disabling CONFIG_EARLY_PRINTK
In that case, any users of early_panic() end up calling panic().
Signed-off-by: Chris Metcalf <cmetcalf@...lanox.com>
---
I don't think this is a recent breakage, and it doesn't feel too
critical, so I'll just push it in the next merge window.
arch/tile/include/asm/setup.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/tile/include/asm/setup.h b/arch/tile/include/asm/setup.h
index e98909033e5b..2a0347af0702 100644
--- a/arch/tile/include/asm/setup.h
+++ b/arch/tile/include/asm/setup.h
@@ -25,7 +25,12 @@
#define MAXMEM_PFN PFN_DOWN(MAXMEM)
int tile_console_write(const char *buf, int count);
+
+#ifdef CONFIG_EARLY_PRINTK
void early_panic(const char *fmt, ...);
+#else
+#define early_panic panic
+#endif
/* Init-time routine to do tile-specific per-cpu setup. */
void setup_cpu(int boot);
--
2.7.2
Powered by blists - more mailing lists