aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2011-08-18 15:01:19 -0400
committerRichard Weinberger <richard@nod.at>2011-11-02 09:14:44 -0400
commit4de1c5f65c7dd4965a2a58b93205b747d7826110 (patch)
treea3ea418407b64eed69493413fac80699388ff891
parent9f270de8361d9cbbfd79e874de125a02b2d73697 (diff)
um: take user_constants.h to include/generated
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r--arch/um/Makefile5
-rw-r--r--arch/um/sys-i386/shared/sysdep/ptrace.h2
-rw-r--r--arch/um/sys-i386/shared/sysdep/ptrace_user.h2
-rw-r--r--arch/um/sys-i386/shared/sysdep/sc.h2
-rw-r--r--arch/um/sys-x86_64/shared/sysdep/ptrace.h2
-rw-r--r--arch/um/sys-x86_64/shared/sysdep/ptrace_user.h2
-rw-r--r--arch/um/sys-x86_64/shared/sysdep/sc.h2
7 files changed, 8 insertions, 9 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile
index deb05533f872..3aded4e04f87 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -86,7 +86,7 @@ endef
86 86
87KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH) 87KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH)
88 88
89archprepare: $(SHARED_HEADERS)/user_constants.h 89archprepare: include/generated/user_constants.h
90archprepare: $(SHARED_HEADERS)/kern_constants.h 90archprepare: $(SHARED_HEADERS)/kern_constants.h
91 91
92LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static 92LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
@@ -119,7 +119,6 @@ endef
119# When cleaning we don't include .config, so we don't include 119# When cleaning we don't include .config, so we don't include
120# TT or skas makefiles and don't clean skas_ptregs.h. 120# TT or skas makefiles and don't clean skas_ptregs.h.
121CLEAN_FILES += linux x.i gmon.out \ 121CLEAN_FILES += linux x.i gmon.out \
122 $(SHARED_HEADERS)/user_constants.h \
123 $(SHARED_HEADERS)/kern_constants.h 122 $(SHARED_HEADERS)/kern_constants.h
124 123
125archclean: 124archclean:
@@ -144,7 +143,7 @@ define filechk_gen-asm-offsets
144 echo ""; ) 143 echo ""; )
145endef 144endef
146 145
147$(SHARED_HEADERS)/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s 146include/generated/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
148 $(call filechk,gen-asm-offsets) 147 $(call filechk,gen-asm-offsets)
149 148
150$(SHARED_HEADERS)/kern_constants.h: 149$(SHARED_HEADERS)/kern_constants.h:
diff --git a/arch/um/sys-i386/shared/sysdep/ptrace.h b/arch/um/sys-i386/shared/sysdep/ptrace.h
index c4142315f22b..36006994148e 100644
--- a/arch/um/sys-i386/shared/sysdep/ptrace.h
+++ b/arch/um/sys-i386/shared/sysdep/ptrace.h
@@ -6,7 +6,7 @@
6#ifndef __SYSDEP_I386_PTRACE_H 6#ifndef __SYSDEP_I386_PTRACE_H
7#define __SYSDEP_I386_PTRACE_H 7#define __SYSDEP_I386_PTRACE_H
8 8
9#include "user_constants.h" 9#include <generated/user_constants.h>
10#include "sysdep/faultinfo.h" 10#include "sysdep/faultinfo.h"
11 11
12#define MAX_REG_NR (UM_FRAME_SIZE / sizeof(unsigned long)) 12#define MAX_REG_NR (UM_FRAME_SIZE / sizeof(unsigned long))
diff --git a/arch/um/sys-i386/shared/sysdep/ptrace_user.h b/arch/um/sys-i386/shared/sysdep/ptrace_user.h
index ef56247e4143..e4398a38a8a6 100644
--- a/arch/um/sys-i386/shared/sysdep/ptrace_user.h
+++ b/arch/um/sys-i386/shared/sysdep/ptrace_user.h
@@ -9,7 +9,7 @@
9#include <sys/ptrace.h> 9#include <sys/ptrace.h>
10#include <linux/ptrace.h> 10#include <linux/ptrace.h>
11#include <asm/ptrace.h> 11#include <asm/ptrace.h>
12#include "user_constants.h" 12#include <generated/user_constants.h>
13 13
14#define PT_OFFSET(r) ((r) * sizeof(long)) 14#define PT_OFFSET(r) ((r) * sizeof(long))
15 15
diff --git a/arch/um/sys-i386/shared/sysdep/sc.h b/arch/um/sys-i386/shared/sysdep/sc.h
index c57d1780ad37..7b892407157a 100644
--- a/arch/um/sys-i386/shared/sysdep/sc.h
+++ b/arch/um/sys-i386/shared/sysdep/sc.h
@@ -1,7 +1,7 @@
1#ifndef __SYSDEP_I386_SC_H 1#ifndef __SYSDEP_I386_SC_H
2#define __SYSDEP_I386_SC_H 2#define __SYSDEP_I386_SC_H
3 3
4#include <user_constants.h> 4#include <generated/user_constants.h>
5 5
6#define SC_OFFSET(sc, field) \ 6#define SC_OFFSET(sc, field) \
7 *((unsigned long *) &(((char *) (sc))[HOST_##field])) 7 *((unsigned long *) &(((char *) (sc))[HOST_##field]))
diff --git a/arch/um/sys-x86_64/shared/sysdep/ptrace.h b/arch/um/sys-x86_64/shared/sysdep/ptrace.h
index 1a199606009b..ea5d7c1783cb 100644
--- a/arch/um/sys-x86_64/shared/sysdep/ptrace.h
+++ b/arch/um/sys-x86_64/shared/sysdep/ptrace.h
@@ -8,7 +8,7 @@
8#ifndef __SYSDEP_X86_64_PTRACE_H 8#ifndef __SYSDEP_X86_64_PTRACE_H
9#define __SYSDEP_X86_64_PTRACE_H 9#define __SYSDEP_X86_64_PTRACE_H
10 10
11#include "user_constants.h" 11#include <generated/user_constants.h>
12#include "sysdep/faultinfo.h" 12#include "sysdep/faultinfo.h"
13 13
14#define MAX_REG_OFFSET (UM_FRAME_SIZE) 14#define MAX_REG_OFFSET (UM_FRAME_SIZE)
diff --git a/arch/um/sys-x86_64/shared/sysdep/ptrace_user.h b/arch/um/sys-x86_64/shared/sysdep/ptrace_user.h
index 4dbccdb58f48..faf9cddacd9a 100644
--- a/arch/um/sys-x86_64/shared/sysdep/ptrace_user.h
+++ b/arch/um/sys-x86_64/shared/sysdep/ptrace_user.h
@@ -12,7 +12,7 @@
12#include <linux/ptrace.h> 12#include <linux/ptrace.h>
13#include <asm/ptrace.h> 13#include <asm/ptrace.h>
14#undef __FRAME_OFFSETS 14#undef __FRAME_OFFSETS
15#include "user_constants.h" 15#include <generated/user_constants.h>
16 16
17#define PT_INDEX(off) ((off) / sizeof(unsigned long)) 17#define PT_INDEX(off) ((off) / sizeof(unsigned long))
18 18
diff --git a/arch/um/sys-x86_64/shared/sysdep/sc.h b/arch/um/sys-x86_64/shared/sysdep/sc.h
index 8aee45b07434..20313a2590e8 100644
--- a/arch/um/sys-x86_64/shared/sysdep/sc.h
+++ b/arch/um/sys-x86_64/shared/sysdep/sc.h
@@ -5,7 +5,7 @@
5 * Released under the GPL 5 * Released under the GPL
6 */ 6 */
7 7
8#include <user_constants.h> 8#include <generated/user_constants.h>
9 9
10#define SC_OFFSET(sc, field) \ 10#define SC_OFFSET(sc, field) \
11 *((unsigned long *) &(((char *) (sc))[HOST_##field])) 11 *((unsigned long *) &(((char *) (sc))[HOST_##field]))