Skip to content

Commit

Permalink
kbuild: arm26,sparc use generic asm-offset support
Browse files Browse the repository at this point in the history
Rename all includes to use asm-offsets.h to match generic name

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Sam Ravnborg committed Sep 9, 2005
1 parent cca6e6f commit 4700349
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 36 deletions.
10 changes: 0 additions & 10 deletions arch/arm26/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ all: zImage

boot := arch/arm26/boot

prepare: include/asm-$(ARCH)/asm_offsets.h
CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h


.PHONY: maketools FORCE
maketools: FORCE

Expand Down Expand Up @@ -94,12 +90,6 @@ zi:; $(Q)$(MAKE) $(build)=$(boot) zinstall
fi; \
)

arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER

include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
$(call filechk,gen-asm-offsets)

define archhelp
echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <linux/linkage.h>

#include <asm/assembler.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/errno.h>
#include <asm/hardware.h>
#include <asm/sysirq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/lib/copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>

.text
.align 5
Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/lib/csumpartialcopyuser.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/errno.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>

.text

Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/lib/getuser.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Note that ADDR_LIMIT is either 0 or 0xc0000000.
* Note also that it is intended that __get_user_bad is not global.
*/
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/thread_info.h>
#include <asm/errno.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/lib/putuser.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Note that ADDR_LIMIT is either 0 or 0xc0000000
* Note also that it is intended that __put_user_bad is not global.
*/
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/thread_info.h>
#include <asm/errno.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/mm/proc-funcs.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/procinfo.h>
#include <asm/ptrace.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm26/nwfpe/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>

/* This is the kernel's entry point into the floating point emulator.
It is called from the kernel with code similar to this:
Expand Down
12 changes: 1 addition & 11 deletions arch/sparc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,7 @@ image tftpboot.img: vmlinux
archclean:
$(Q)$(MAKE) $(clean)=$(boot)

prepare: include/asm-$(ARCH)/asm_offsets.h

arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
include/config/MARKER

include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
$(call filechk,gen-asm-offsets)

CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h \
arch/$(ARCH)/kernel/asm-offsets.s \
arch/$(ARCH)/boot/System.map
CLEAN_FILES += arch/$(ARCH)/boot/System.map

# Don't use tabs in echo arguments.
define archhelp
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <asm/kgdb.h>
#include <asm/contregs.h>
#include <asm/ptrace.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/psr.h>
#include <asm/vaddrs.h>
#include <asm/memreg.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/kernel/sclow.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

#include <asm/ptrace.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/errno.h>
#include <asm/winmacro.h>
#include <asm/thread_info.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/hypersparc.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <asm/ptrace.h>
#include <asm/psr.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/asi.h>
#include <asm/page.h>
#include <asm/pgtsrmmu.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/swift.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <asm/asi.h>
#include <asm/page.h>
#include <asm/pgtsrmmu.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>

.text
.align 4
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/tsunami.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <linux/config.h>
#include <asm/ptrace.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/psr.h>
#include <asm/asi.h>
#include <asm/page.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/mm/viking.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <linux/config.h>
#include <asm/ptrace.h>
#include <asm/psr.h>
#include <asm/asm_offsets.h>
#include <asm/asm-offsets.h>
#include <asm/asi.h>
#include <asm/mxcc.h>
#include <asm/page.h>
Expand Down
4 changes: 2 additions & 2 deletions include/asm-sparc/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ extern void show_regs(struct pt_regs *);
#endif

/*
* The asm_offsets.h is a generated file, so we cannot include it.
* The asm-offsets.h is a generated file, so we cannot include it.
* It may be OK for glibc headers, but it's utterly pointless for C code.
* The assembly code using those offsets has to include it explicitly.
*/
/* #include <asm/asm_offsets.h> */
/* #include <asm/asm-offsets.h> */

/* These are for pt_regs. */
#define PT_PSR 0x0
Expand Down

0 comments on commit 4700349

Please sign in to comment.