Fix debug patches to build on s390x/ppc

This commit is contained in:
Josh Boyer 2013-04-15 20:36:23 -04:00
parent fbf7848232
commit 54cd486f88
2 changed files with 36 additions and 31 deletions

View File

@ -1,6 +1,5 @@
diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-trees/linux/include/asm-generic/bug.h linux-dj/include/asm-generic/bug.h --- linux.orig/include/asm-generic/bug.h
--- /home/davej/src/kernel/git-trees/linux/include/asm-generic/bug.h 2013-01-04 18:57:12.604282214 -0500 +++ linux/include/asm-generic/bug.h
+++ linux-dj/include/asm-generic/bug.h 2013-02-28 20:04:37.649304147 -0500
@@ -55,6 +55,8 @@ struct bug_entry { @@ -55,6 +55,8 @@ struct bug_entry {
#define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0) #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while(0)
#endif #endif
@ -10,40 +9,43 @@ diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-tre
/* /*
* WARN(), WARN_ON(), WARN_ON_ONCE, and so on can be used to report * WARN(), WARN_ON(), WARN_ON_ONCE, and so on can be used to report
* significant issues that need prompt attention if they should ever * significant issues that need prompt attention if they should ever
diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-trees/linux/kernel/panic.c linux-dj/kernel/panic.c --- linux.orig/kernel/panic.c
--- /home/davej/src/kernel/git-trees/linux/kernel/panic.c 2013-02-26 14:41:18.544116674 -0500 +++ linux/kernel/panic.c
+++ linux-dj/kernel/panic.c 2013-02-28 20:04:37.666304115 -0500 @@ -391,6 +391,15 @@ void oops_exit(void)
@@ -397,16 +397,22 @@ struct slowpath_args { kmsg_dump(KMSG_DUMP_OOPS);
va_list args; }
};
-static void warn_slowpath_common(const char *file, int line, void *caller,
- unsigned taint, struct slowpath_args *args)
+void print_hardware_dmi_name(void) +void print_hardware_dmi_name(void)
{ +{
const char *board; + const char *board;
+
- printk(KERN_WARNING "------------[ cut here ]------------\n"); + board = dmi_get_system_info(DMI_PRODUCT_NAME);
- printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller); + if (board)
board = dmi_get_system_info(DMI_PRODUCT_NAME); + printk(KERN_WARNING "Hardware name: %s\n", board);
if (board)
printk(KERN_WARNING "Hardware name: %s\n", board);
+} +}
+ +
+static void warn_slowpath_common(const char *file, int line, void *caller, #ifdef WANT_WARN_ON_SLOWPATH
+ unsigned taint, struct slowpath_args *args) struct slowpath_args {
+{ const char *fmt;
+ printk(KERN_WARNING "------------[ cut here ]------------\n"); @@ -400,13 +409,10 @@ struct slowpath_args {
+ printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller); static void warn_slowpath_common(const char *file, int line, void *caller,
unsigned taint, struct slowpath_args *args)
{
- const char *board;
-
printk(KERN_WARNING "------------[ cut here ]------------\n");
printk(KERN_WARNING "WARNING: at %s:%d %pS()\n", file, line, caller);
- board = dmi_get_system_info(DMI_PRODUCT_NAME);
- if (board)
- printk(KERN_WARNING "Hardware name: %s\n", board);
+ +
+ print_hardware_dmi_name(); + print_hardware_dmi_name();
if (args) if (args)
vprintk(args->fmt, args->args); vprintk(args->fmt, args->args);
diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-trees/linux/mm/memory.c linux-dj/mm/memory.c --- linux.orig/mm/memory.c
--- /home/davej/src/kernel/git-trees/linux/mm/memory.c 2013-02-26 14:41:18.591116577 -0500 +++ linux/mm/memory.c
+++ linux-dj/mm/memory.c 2013-02-28 20:04:37.678304092 -0500 @@ -706,6 +706,8 @@ static void print_bad_pte(struct vm_area
@@ -705,6 +706,8 @@ static void print_bad_pte(struct vm_area
"BUG: Bad page map in process %s pte:%08llx pmd:%08llx\n", "BUG: Bad page map in process %s pte:%08llx pmd:%08llx\n",
current->comm, current->comm,
(long long)pte_val(pte), (long long)pmd_val(*pmd)); (long long)pte_val(pte), (long long)pmd_val(*pmd));
@ -52,8 +54,8 @@ diff -durpN '--exclude-from=/home/davej/.exclude' /home/davej/src/kernel/git-tre
if (page) if (page)
dump_page(page); dump_page(page);
printk(KERN_ALERT printk(KERN_ALERT
--- linux-dj/mm/page_alloc.c~ 2013-04-11 11:47:12.536675503 -0400 --- linux.orig/mm/page_alloc.c
+++ linux-dj/mm/page_alloc.c 2013-04-11 11:47:16.416667806 -0400 +++ linux/mm/page_alloc.c
@@ -321,6 +321,7 @@ static void bad_page(struct page *page) @@ -321,6 +321,7 @@ static void bad_page(struct page *page)
current->comm, page_to_pfn(page)); current->comm, page_to_pfn(page));
dump_page(page); dump_page(page);

View File

@ -62,7 +62,7 @@ Summary: The Linux kernel
# For non-released -rc kernels, this will be appended after the rcX and # For non-released -rc kernels, this will be appended after the rcX and
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3" # gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
# #
%global baserelease 1 %global baserelease 2
%global fedora_build %{baserelease} %global fedora_build %{baserelease}
# base_sublevel is the kernel version we're starting with and patching # base_sublevel is the kernel version we're starting with and patching
@ -2273,6 +2273,9 @@ fi
# ||----w | # ||----w |
# || || # || ||
%changelog %changelog
* Mon Apr 15 2013 Josh Boyer <jwboyer@redhat.com>
- Fix debug patches to build on s390x/ppc
* Mon Apr 15 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.0-0.rc7.git0.1 * Mon Apr 15 2013 Justin M. Forbes <jforbes@redhat.com> - 3.9.0-0.rc7.git0.1
- Linux v3.9-rc7 - Linux v3.9-rc7
- Disable debugging options. - Disable debugging options.