Commit 8fe38c0e authored by Sean Young's avatar Sean Young Committed by Greg Kroah-Hartman

MIPS: Remove superfluous check for __linux__

commit 1287533d3d95d5ad8b02773733044500b1be06bc upstream.

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:

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: default avatarSean Young <>
Signed-off-by: default avatarPaul Burton <>
Cc: Ralf Baechle <>
Cc: James Hogan <>
Cc: Hauke Mehrtens <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 17fcbc4a
......@@ -11,14 +11,6 @@
#ifndef __ASM_SGIDEFS_H
#define __ASM_SGIDEFS_H
* Using a Linux compiler for building Linux seems logic but not to
* everybody.
#ifndef __linux__
#error Use a Linux compiler or give up.
* Definitions for the ISA levels
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment