Skip to content

Commit

Permalink
um: take user_constants.h to include/generated
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 9f270de commit 4de1c5f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-i386/shared/sysdep/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-i386/shared/sysdep/ptrace_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-i386/shared/sysdep/sc.h
Original file line number Diff line number Diff line change
@@ -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]))
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-x86_64/shared/sysdep/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-x86_64/shared/sysdep/ptrace_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-x86_64/shared/sysdep/sc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit 4de1c5f

Please sign in to comment.