Skip to content

Commit a439fe5

Browse files
committed
sparc, sparc64: use arch/sparc/include
The majority of this patch was created by the following script: *** ASM=arch/sparc/include/asm mkdir -p $ASM git mv include/asm-sparc64/ftrace.h $ASM git rm include/asm-sparc64/* git mv include/asm-sparc/* $ASM sed -ie 's/asm-sparc64/asm/g' $ASM/* sed -ie 's/asm-sparc/asm/g' $ASM/* *** The rest was an update of the top-level Makefile to use sparc for header files when sparc64 is being build. And a small fixlet to pick up the correct unistd.h from sparc64 code. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 837b41b commit a439fe5

492 files changed

Lines changed: 152 additions & 311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ ifeq ($(ARCH),x86_64)
206206
endif
207207

208208
# Where to locate arch specific headers
209-
hdr-arch := $(SRCARCH)
209+
ifeq ($(ARCH),sparc64)
210+
hdr-arch := sparc
211+
else
212+
hdr-arch := $(SRCARCH)
213+
endif
210214

211215
KCONFIG_CONFIG ?= .config
212216

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef ___ASM_SPARC_ATOMIC_H
22
#define ___ASM_SPARC_ATOMIC_H
33
#if defined(__sparc__) && defined(__arch64__)
4-
#include <asm-sparc/atomic_64.h>
4+
#include <asm/atomic_64.h>
55
#else
6-
#include <asm-sparc/atomic_32.h>
6+
#include <asm/atomic_32.h>
77
#endif
88
#endif

0 commit comments

Comments
 (0)