Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f9a2b32 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

[MIPS] Fix errors detected by "make headers_check"



* export asm/sgidefs.h
* include asm/isadep.h only if in kernel
* do not export contents of asm/timex.h and asm/user.h

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent d34555fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
include include/asm-generic/Kbuild.asm
include include/asm-generic/Kbuild.asm

header-y += sgidefs.h
+1 −2
Original line number Original line Diff line number Diff line
@@ -10,8 +10,6 @@
#define _ASM_PTRACE_H
#define _ASM_PTRACE_H




#include <asm/isadep.h>

/* 0 - 31 are integer registers, 32 - 63 are fp registers.  */
/* 0 - 31 are integer registers, 32 - 63 are fp registers.  */
#define FPR_BASE	32
#define FPR_BASE	32
#define PC		64
#define PC		64
@@ -73,6 +71,7 @@ struct pt_regs {
#ifdef __KERNEL__
#ifdef __KERNEL__


#include <linux/linkage.h>
#include <linux/linkage.h>
#include <asm/isadep.h>


/*
/*
 * Does the process account for user or for system time?
 * Does the process account for user or for system time?
+4 −0
Original line number Original line Diff line number Diff line
@@ -8,6 +8,8 @@
#ifndef _ASM_TIMEX_H
#ifndef _ASM_TIMEX_H
#define _ASM_TIMEX_H
#define _ASM_TIMEX_H


#ifdef __KERNEL__

#include <asm/mipsregs.h>
#include <asm/mipsregs.h>


/*
/*
@@ -51,4 +53,6 @@ static inline cycles_t get_cycles (void)
	return read_c0_count();
	return read_c0_count();
}
}


#endif /* __KERNEL__ */

#endif /*  _ASM_TIMEX_H */
#endif /*  _ASM_TIMEX_H */
+4 −0
Original line number Original line Diff line number Diff line
@@ -8,6 +8,8 @@
#ifndef _ASM_USER_H
#ifndef _ASM_USER_H
#define _ASM_USER_H
#define _ASM_USER_H


#ifdef __KERNEL__

#include <asm/page.h>
#include <asm/page.h>
#include <asm/reg.h>
#include <asm/reg.h>


@@ -55,4 +57,6 @@ struct user {
#define HOST_DATA_START_ADDR	(u.start_data)
#define HOST_DATA_START_ADDR	(u.start_data)
#define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG)
#define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG)


#endif /* __KERNEL__ */

#endif /* _ASM_USER_H */
#endif /* _ASM_USER_H */