Revert "panic: Add board ID to panic output"
authorAmit Pundir <amit.pundir@linaro.org>
Sun, 31 Jul 2016 11:37:46 +0000 (17:07 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 18 Aug 2016 13:26:03 +0000 (18:56 +0530)
This reverts commit 4e09c510185cb4db2277ce81cce81b7aa06bea45.

I checked for the usage of this debug helper in AOSP common kernels as
well as vendor kernels (e.g exynos, msm, mediatek, omap, tegra, x86,
x86_64) hosted at https://android.googlesource.com/kernel/ and I found
out that other than few fairly obsolete Omap trees (for tuna & Glass)
and Exynos tree (for Manta), there is no active user of this debug
helper. So we can safely remove this helper code.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
include/linux/kernel.h
kernel/panic.c

index 2955e672391d5e41f35b1e56bdf1517ecd076e30..924853d33a13e0a312f70ac939bfe20a9814c993 100644 (file)
@@ -830,8 +830,4 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { }
         /* OTHER_WRITABLE?  Generally considered a bad idea. */                \
         BUILD_BUG_ON_ZERO((perms) & 2) +                                       \
         (perms))
-
-/* To identify board information in panic logs, set this */
-extern char *mach_panic_string;
-
 #endif
index 223564d3e1f8b61b9a1b8396961cd93dd426a6d7..41e2b54f36b5cdc73ecbda53a246662ba541ba57 100644 (file)
@@ -28,9 +28,6 @@
 #define PANIC_TIMER_STEP 100
 #define PANIC_BLINK_SPD 18
 
-/* Machine specific panic information string */
-char *mach_panic_string;
-
 int panic_on_oops = CONFIG_PANIC_ON_OOPS_VALUE;
 static unsigned long tainted_mask;
 static int pause_on_oops;
@@ -415,11 +412,6 @@ late_initcall(init_oops_id);
 void print_oops_end_marker(void)
 {
        init_oops_id();
-
-       if (mach_panic_string)
-               printk(KERN_WARNING "Board Information: %s\n",
-                      mach_panic_string);
-
        pr_warn("---[ end trace %016llx ]---\n", (unsigned long long)oops_id);
 }