Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272989
b: refs/heads/master
c: 9e63645
h: refs/heads/master
i:
  272987: e0271fa
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent de3485f commit 6179dcb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 945581d5bd796a046a42e3ee915bd9ec0c6853ca
refs/heads/master: 9e636452d0714b08e4f8f4c58b76c4b7d15ffffa
11 changes: 1 addition & 10 deletions trunk/arch/um/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ include $(srctree)/$(ARCH_DIR)/Makefile-skas
SHARED_HEADERS := $(ARCH_DIR)/include/shared
ARCH_INCLUDE := -I$(srctree)/$(SHARED_HEADERS)
ARCH_INCLUDE += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)/shared
ifneq ($(KBUILD_SRC),)
ARCH_INCLUDE += -I$(SHARED_HEADERS)
endif
KBUILD_CPPFLAGS += -I$(srctree)/$(ARCH_DIR)/sys-$(SUBARCH)

# -Dvmap=kernel_vmap prevents anything from referencing the libpcap.o symbol so
Expand Down Expand Up @@ -87,7 +84,6 @@ endef
KBUILD_KCONFIG := arch/um/Kconfig.$(HEADER_ARCH)

archprepare: include/generated/user_constants.h
archprepare: $(SHARED_HEADERS)/kern_constants.h

LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib
Expand Down Expand Up @@ -118,8 +114,7 @@ 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)/kern_constants.h
CLEAN_FILES += linux x.i gmon.out

archclean:
@find . \( -name '*.bb' -o -name '*.bbg' -o -name '*.da' \
Expand All @@ -146,8 +141,4 @@ endef
include/generated/user_constants.h: $(ARCH_DIR)/sys-$(SUBARCH)/user-offsets.s
$(call filechk,gen-asm-offsets)

$(SHARED_HEADERS)/kern_constants.h:
$(Q)mkdir -p $(dir $@)
$(Q)echo '#include <generated/asm-offsets.h>' >$@

export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH
2 changes: 1 addition & 1 deletion trunk/arch/um/include/shared/as-layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef __START_H__
#define __START_H__

#include "kern_constants.h"
#include <generated/asm-offsets.h>

/*
* Stolen from linux/const.h, which can't be directly included since
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/include/shared/task.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __TASK_H
#define __TASK_H

#include <kern_constants.h>
#include <generated/asm-offsets.h>

#define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS]))
#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/include/shared/um_malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef __UM_MALLOC_H__
#define __UM_MALLOC_H__

#include "kern_constants.h"
#include <generated/asm-offsets.h>

extern void *uml_kmalloc(int size, int flags);
extern void kfree(const void *ptr);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/um/include/shared/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef __USER_H__
#define __USER_H__

#include "kern_constants.h"
#include <generated/asm-offsets.h>

/*
* The usual definition - copied here because the kernel provides its own,
Expand Down

0 comments on commit 6179dcb

Please sign in to comment.