mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 05:03:52 +07:00
1287533d3d
When building BPF code using "clang -target bpf -c", clang does not define __linux__. To build BPF IR decoders the include linux/lirc.h is needed which includes linux/types.h. Currently this workaround is needed: https://git.linuxtv.org/v4l-utils.git/commit/?id=dd3ff81f58c4e1e6f33765dc61ad33c48ae6bb07 This check might otherwise be useful to stop users from using a non-linux compiler, but if you're doing that you are going to have a lot more trouble anyway. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/21149/ Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org
38 lines
1.0 KiB
C
38 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 1996, 1999, 2001 Ralf Baechle
|
|
* Copyright (C) 1999 Silicon Graphics, Inc.
|
|
* Copyright (C) 2001 MIPS Technologies, Inc.
|
|
*/
|
|
#ifndef __ASM_SGIDEFS_H
|
|
#define __ASM_SGIDEFS_H
|
|
|
|
/*
|
|
* Definitions for the ISA levels
|
|
*
|
|
* With the introduction of MIPS32 / MIPS64 instruction sets definitions
|
|
* MIPS ISAs are no longer subsets of each other. Therefore comparisons
|
|
* on these symbols except with == may result in unexpected results and
|
|
* are forbidden!
|
|
*/
|
|
#define _MIPS_ISA_MIPS1 1
|
|
#define _MIPS_ISA_MIPS2 2
|
|
#define _MIPS_ISA_MIPS3 3
|
|
#define _MIPS_ISA_MIPS4 4
|
|
#define _MIPS_ISA_MIPS5 5
|
|
#define _MIPS_ISA_MIPS32 6
|
|
#define _MIPS_ISA_MIPS64 7
|
|
|
|
/*
|
|
* Subprogram calling convention
|
|
*/
|
|
#define _MIPS_SIM_ABI32 1
|
|
#define _MIPS_SIM_NABI32 2
|
|
#define _MIPS_SIM_ABI64 3
|
|
|
|
#endif /* __ASM_SGIDEFS_H */
|