Add the ability to pass comments into asm-offsets.h by generating asm
output like-># comment line
Mips needs this feature to preserve the comments that are in asm-mips/asm-offsets.h
right now.Then remove the special handling for mips from Kbuild and convert mips to use
the new string to include the comments.Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Christoph Lameter <clameter@sgi.com>---
Kbuild | 6
arch/mips/kernel/asm-offsets.c | 416 ++++++++++++++++++++---------------------
2 files changed, 211 insertions(+), 211 deletions(-)Index: linux-2.6.25-rc8-mm2/Kbuild
===================================================================
--- linux-2.6.25-rc8-mm2.orig/Kbuild 2008-04-12 17:15:40.348425313 -0700
+++ linux-2.6.25-rc8-mm2/Kbuild 2008-04-12 18:37:06.707178187 -0700
@@ -52,10 +52,10 @@ targets += arch/$(SRCARCH)/kernel/asm-of# Default sed regexp - multiline due to syntax constraints
define sed-y
- "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"
+ "/^->/{s:->#\(.*\):/* \1 */:; \
+ s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
+ s:->::; p;}"
endef
-# Override default regexp for specific architectures
-sed-$(CONFIG_MIPS) := "/^@@@/{s/^@@@//; s/ \#.*\$$//; p;}"quiet_cmd_offsets = GEN $@
define cmd_offsets
Index: linux-2.6.25-rc8-mm2/arch/mips/kernel/asm-offsets.c
===================================================================
--- linux-2.6.25-rc8-mm2.orig/arch/mips/kernel/asm-offsets.c 2008-04-12 17:15:40.358425147 -0700
+++ linux-2.6.25-rc8-mm2/arch/mips/kernel/asm-offsets.c 2008-04-12 18:35:42.347183915 -0700
@@ -17,252 +17,252 @@
#include <asm/ptrace.h>
#include <asm/processor.h>-#define text(t) __asm__("\n@@@" t)
+#define text(t) __asm__("\n->#" t)
#define _offset(type, member) (&(((type *)NULL)->member))
#define offset(string, ptr, member) \
- __asm__("\n@@@" string "%0" :...
My sedfu is not enough to properly review this.
And I am not yet able to test it.But the general principle is good and I really like to see mips
aligned with the rest!Sam
--
On Mon, 14 Apr 2008 11:43:08 -0700 (PDT)
OK, let's try that. Ralf, could you please review it?
afaict this change is not dependent upon the other page-flags changes and
can and should be merged ahead of the page-flags patches to preserve mips
bisectability, yes?Mips and sparc64 are hopefully now mended. powerpc allmodconfig is still
unwell:CC arch/powerpc/kernel/asm-offsets.s
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:14,
from include/linux/percpu.h:5,
from include/asm/time.h:18,
from include/asm/cputime.h:26,
from include/linux/sched.h:67,
from arch/powerpc/kernel/asm-offsets.c:17:
include/linux/mmzone.h:830:2: error: #error Allocator MAX_ORDER exceeds SECTION_SIZE--
It could be merged before yes. There may be a conflict with the earlier
Cannot figure out what this has to do with page flags. AFACIT the powerpc
config is borked because section size is set too low for 64K pages.--
Please apply this. I am buried in day-time job atm so my
kbuild maintainer job is kept on loow priority.Sam
--
On Mon, 14 Apr 2008 14:58:14 -0700 (PDT)
Yes, the above allmodconfig error was caused by git-powerpc.
--
Hi Andrew,
I posted a fix the other day ...
http://patchwork.ozlabs.org/linuxppc/patch?id=3D17819
--=20
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
| Christoph Lameter | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| Linus Torvalds | Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Christoph Hellwig | Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2] |
| Gerrit Renker | [PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set... |
