summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-06-17 15:25:13 -0400
committerDave Jones <davej@redhat.com>2011-06-17 15:25:13 -0400
commit3e5443018e6c236f288a60b04021af22d9e3a68b (patch)
treea19ad01639579e4488587b0759919bad330cf98f
parentc4c4240b3ca4a27486e8c53f1c6848b67027ddbb (diff)
downloadkernel-3e5443018e6c236f288a60b04021af22d9e3a68b.tar.gz
kernel-3e5443018e6c236f288a60b04021af22d9e3a68b.tar.xz
kernel-3e5443018e6c236f288a60b04021af22d9e3a68b.zip
drop sizeof structs patch
not really very useful any more.
-rw-r--r--kernel.spec3
-rw-r--r--linux-2.6-debug-sizeof-structs.patch33
2 files changed, 1 insertions, 35 deletions
diff --git a/kernel.spec b/kernel.spec
index 83833c355..9c1a1722a 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -624,7 +624,6 @@ Patch150: linux-2.6.29-sparc-IOC_TYPECHECK.patch
Patch160: linux-2.6-32bit-mmap-exec-randomization.patch
Patch161: linux-2.6-i386-nx-emulation.patch
-Patch200: linux-2.6-debug-sizeof-structs.patch
Patch202: linux-2.6-debug-taint-vm.patch
Patch203: linux-2.6-debug-vm-would-have-oomkilled.patch
Patch204: linux-2.6-debug-always-inline-kzalloc.patch
@@ -1183,7 +1182,6 @@ ApplyPatch acpi-ec-add-delay-before-write.patch
ApplyPatch linux-2.6-acpi-debug-infinite-loop.patch
# Various low-impact patches to aid debugging.
-ApplyPatch linux-2.6-debug-sizeof-structs.patch
ApplyPatch linux-2.6-debug-taint-vm.patch
ApplyPatch linux-2.6-debug-vm-would-have-oomkilled.patch
ApplyPatch linux-2.6-debug-always-inline-kzalloc.patch
@@ -1883,6 +1881,7 @@ fi
%changelog
* Fri Jun 17 2011 Dave Jones <davej@redhat.com>
- drop qcserial 'compile fix' that was just duplicating an include.
+- drop struct sizeof debug patch. (no real value. not upstreamable)
* Fri Jun 17 2011 Kyle McMartin <kmcmartin@redhat.com>
- linux-2.6-defaults-pci_no_msi.patch: drop, haven't toggled the default
diff --git a/linux-2.6-debug-sizeof-structs.patch b/linux-2.6-debug-sizeof-structs.patch
deleted file mode 100644
index 803c7ecba..000000000
--- a/linux-2.6-debug-sizeof-structs.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-diff --git a/kernel/smp.c b/kernel/smp.c
-index 73a1951..4ce4c50 100644
---- a/kernel/smp.c
-+++ b/kernel/smp.c
-@@ -667,6 +667,11 @@ void __init setup_nr_cpu_ids(void)
- nr_cpu_ids = find_last_bit(cpumask_bits(cpu_possible_mask),NR_CPUS) + 1;
- }
-
-+#include <../fs/ext4/ext4.h>
-+#include <linux/ext3_fs_i.h>
-+#include <linux/skbuff.h>
-+#include <linux/sched.h>
-+
- /* Called by boot processor to activate the rest. */
- void __init smp_init(void)
- {
-@@ -683,6 +688,16 @@ void __init smp_init(void)
- /* Any cleanup work */
- printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus());
- smp_cpus_done(setup_max_cpus);
-+
-+ printk(KERN_DEBUG "sizeof(vma)=%u bytes\n", (unsigned int) sizeof(struct vm_area_struct));
-+ printk(KERN_DEBUG "sizeof(page)=%u bytes\n", (unsigned int) sizeof(struct page));
-+ printk(KERN_DEBUG "sizeof(inode)=%u bytes\n", (unsigned int) sizeof(struct inode));
-+ printk(KERN_DEBUG "sizeof(dentry)=%u bytes\n", (unsigned int) sizeof(struct dentry));
-+ printk(KERN_DEBUG "sizeof(ext3inode)=%u bytes\n", (unsigned int) sizeof(struct ext3_inode_info));
-+ printk(KERN_DEBUG "sizeof(ext4inode)=%u bytes\n", (unsigned int) sizeof(struct ext4_inode_info));
-+ printk(KERN_DEBUG "sizeof(buffer_head)=%u bytes\n", (unsigned int) sizeof(struct buffer_head));
-+ printk(KERN_DEBUG "sizeof(skbuff)=%u bytes\n", (unsigned int) sizeof(struct sk_buff));
-+ printk(KERN_DEBUG "sizeof(task_struct)=%u bytes\n", (unsigned int) sizeof(struct task_struct));
- }
-
- /*