Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp654273imu; Fri, 16 Nov 2018 08:10:56 -0800 (PST) X-Google-Smtp-Source: AJdET5fc8r2lPxzXeUr7VRsL80MTvCQflJ0Uq8SHLzRtvyd4+rK7ztA97tFqbS5rPDIRgpdMc6dI X-Received: by 2002:a62:fb14:: with SMTP id x20-v6mr11649871pfm.71.1542384656322; Fri, 16 Nov 2018 08:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542384656; cv=none; d=google.com; s=arc-20160816; b=z6U3uhCOMoZEKxTYAG6GcLPc8a03zsO1+HOg688u9CUAr0gWQEiUXAexYNxW7gbLXs N2R49RlVPje6dfFuedyyJuJEKuZfy5CADbzXtUAVvSfxEpiqGP+SsveNsVFkTzLpf+ZQ UePd7VnPEpplC+Q/jxlp/ExpdKQIUzF2nZEThMWnCYXjxeEQuUSSt0Om0wh/ML+RmljY F2l5RaWXo8/9P5hK3U1vcV8aQw36c1l/ifsmGsob634yHXQeQFfnNaLHjd/E15UwqlM3 TLbwTAvp1I6eH7EdUnelbaZ0bJ7Hp2LaAvQPWjeMEnCZVtf8KtDmKeK+jdBgbVa1Ekgb AEiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=6hl8sUZhzyCAAoaoR+5thNvnNhW2zp/miu/ZtE52D48=; b=f6o2HigKSg5MCOUxcLzAe79dgRM+WaVgCKwMFL6AaCwcLmeN//MIHW2C/Ue1ntA6f4 JBPweH79AG0RN9hSpT7QAF4tJy67z2VIg/j8GiPmBSC0a/F5rwDiD8/kCgPz5qJ5PU7E ZHjKgBUU4kWX71B2q1daa4UMuVZ+1zF3He+GGyw2PDstEiqadSStp4QpFguAukhfzYJr T5fLzVTiv8e71eQDiMuKCZXWOTWw9URMsu52ZvSfsV6Neyx39sH9l/IfJ/mPX7SejhM8 yhrMIm/N+OHff0Dr53aUsQDdjroNunhY+M2yUF/0GMX8FN/eiEGCaDb1JFPyLuMX/PIX GO6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137si31796575pga.394.2018.11.16.08.10.41; Fri, 16 Nov 2018 08:10:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389932AbeKQCWj (ORCPT + 99 others); Fri, 16 Nov 2018 21:22:39 -0500 Received: from gofer.mess.org ([88.97.38.141]:49467 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728434AbeKQCWj (ORCPT ); Fri, 16 Nov 2018 21:22:39 -0500 Received: by gofer.mess.org (Postfix, from userid 1000) id D48B6605DA; Fri, 16 Nov 2018 16:09:39 +0000 (GMT) From: Sean Young To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Remove superfluous check for __linux__ Date: Fri, 16 Nov 2018 16:09:39 +0000 Message-Id: <20181116160939.22085-1-sean@mess.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/mips/include/uapi/asm/sgidefs.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/mips/include/uapi/asm/sgidefs.h b/arch/mips/include/uapi/asm/sgidefs.h index 26143e3b7c26..69c3de90c536 100644 --- a/arch/mips/include/uapi/asm/sgidefs.h +++ b/arch/mips/include/uapi/asm/sgidefs.h @@ -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. -#endif - /* * Definitions for the ISA levels * -- 2.19.1