um: take user_constants.h to include/generated
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 18 Aug 2011 19:01:19 +0000 (20:01 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 2 Nov 2011 13:14:44 +0000 (14:14 +0100)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Makefile
arch/um/sys-i386/shared/sysdep/ptrace.h
arch/um/sys-i386/shared/sysdep/ptrace_user.h
arch/um/sys-i386/shared/sysdep/sc.h
arch/um/sys-x86_64/shared/sysdep/ptrace.h
arch/um/sys-x86_64/shared/sysdep/ptrace_user.h
arch/um/sys-x86_64/shared/sysdep/sc.h

index deb05533f872fb55cebae48ceedbad43541b2376..3aded4e04f87e745857ff4c12754ef137f7c12bf 100644 (file)
@@ -86,7 +86,7 @@ endef
 
 KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH)
 
-archprepare: $(SHARED_HEADERS)/user_constants.h
+archprepare: include/generated/user_constants.h
 archprepare: $(SHARED_HEADERS)/kern_constants.h
 
 LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
@@ -119,7 +119,6 @@ endef
 # When cleaning we don't include .config, so we don't include
 # TT or skas makefiles and don't clean skas_ptregs.h.
 CLEAN_FILES += linux x.i gmon.out \
-       $(SHARED_HEADERS)/user_constants.h \
        $(SHARED_HEADERS)/kern_constants.h
 
 archclean:
@@ -144,7 +143,7 @@ define filechk_gen-asm-offsets
          echo ""; )
 endef
 
-$(SHARED_HEADERS)/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
+include/generated/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
        $(call filechk,gen-asm-offsets)
 
 $(SHARED_HEADERS)/kern_constants.h:
index c4142315f22b791cf7ede293310797a3cefe5f1e..36006994148e05a592e2d67c4c92ba284296bee3 100644 (file)
@@ -6,7 +6,7 @@
 #ifndef __SYSDEP_I386_PTRACE_H
 #define __SYSDEP_I386_PTRACE_H
 
-#include "user_constants.h"
+#include <generated/user_constants.h>
 #include "sysdep/faultinfo.h"
 
 #define MAX_REG_NR (UM_FRAME_SIZE / sizeof(unsigned long))
index ef56247e414305f66824a954ee8ede30065e26b5..e4398a38a8a69c888606816adbd3133a7b99fe5c 100644 (file)
@@ -9,7 +9,7 @@
 #include <sys/ptrace.h>
 #include <linux/ptrace.h>
 #include <asm/ptrace.h>
-#include "user_constants.h"
+#include <generated/user_constants.h>
 
 #define PT_OFFSET(r) ((r) * sizeof(long))
 
index c57d1780ad3732f34622846aef4feba0414a9be7..7b892407157ab19eb357e011825fee1fedcc056a 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __SYSDEP_I386_SC_H
 #define __SYSDEP_I386_SC_H
 
-#include <user_constants.h>
+#include <generated/user_constants.h>
 
 #define SC_OFFSET(sc, field) \
        *((unsigned long *) &(((char *) (sc))[HOST_##field]))
index 1a199606009b0283e29a7f4742df701f11c8d626..ea5d7c1783cbae55c08bd1fbeb4f09a15bb02bec 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef __SYSDEP_X86_64_PTRACE_H
 #define __SYSDEP_X86_64_PTRACE_H
 
-#include "user_constants.h"
+#include <generated/user_constants.h>
 #include "sysdep/faultinfo.h"
 
 #define MAX_REG_OFFSET (UM_FRAME_SIZE)
index 4dbccdb58f48980fe164bde4c65ee3d89c7d6b9b..faf9cddacd9a3eef0969494f7149f7c8ab40914f 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/ptrace.h>
 #include <asm/ptrace.h>
 #undef __FRAME_OFFSETS
-#include "user_constants.h"
+#include <generated/user_constants.h>
 
 #define PT_INDEX(off) ((off) / sizeof(unsigned long))
 
index 8aee45b074344d979d799330022be9900503764e..20313a2590e848a5d3f2ddbf415d4ca3b5b2104e 100644 (file)
@@ -5,7 +5,7 @@
  * Released under the GPL
  */
 
-#include <user_constants.h>
+#include <generated/user_constants.h>
 
 #define SC_OFFSET(sc, field) \
         *((unsigned long *) &(((char *) (sc))[HOST_##field]))