Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Christopher Ferris | 1980842 | 2013-11-07 14:54:38 -0800 | [diff] [blame] | 2 | /* |
| 3 | * This file is subject to the terms and conditions of the GNU General Public |
| 4 | * License. See the file "COPYING" in the main directory of this archive |
| 5 | * for more details. |
| 6 | * |
| 7 | * Copyright (C) 1994, 1995, 1996, 1999 by Ralf Baechle |
| 8 | * Copyright (C) 2008 Wind River Systems, |
| 9 | * written by Ralf Baechle |
| 10 | * Copyright (C) 1999 Silicon Graphics, Inc. |
| 11 | */ |
| 12 | #ifndef _UAPI_ASM_TYPES_H |
| 13 | #define _UAPI_ASM_TYPES_H |
| 14 | |
| 15 | /* |
| 16 | * We don't use int-l64.h for the kernel anymore but still use it for |
| 17 | * userspace to avoid code changes. |
Christopher Ferris | 3147524 | 2014-09-02 17:43:51 -0700 | [diff] [blame] | 18 | * |
| 19 | * However, some user programs (e.g. perf) may not want this. They can |
| 20 | * flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here. |
Christopher Ferris | 1980842 | 2013-11-07 14:54:38 -0800 | [diff] [blame] | 21 | */ |
| 22 | #ifndef __KERNEL__ |
Christopher Ferris | 3147524 | 2014-09-02 17:43:51 -0700 | [diff] [blame] | 23 | # if _MIPS_SZLONG == 64 && !defined(__SANE_USERSPACE_TYPES__) |
Christopher Ferris | 1980842 | 2013-11-07 14:54:38 -0800 | [diff] [blame] | 24 | # include <asm-generic/int-l64.h> |
| 25 | # else |
| 26 | # include <asm-generic/int-ll64.h> |
| 27 | # endif |
| 28 | #endif |
| 29 | |
| 30 | |
| 31 | #endif /* _UAPI_ASM_TYPES_H */ |