Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp851050ybi; Fri, 12 Jul 2019 05:42:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqynvd51dmATRJ4goJmcd8mWIFV6d6GgJZHNxs5uOFybtO8ZVZffet0m+WWPq1G9U3d2y74O X-Received: by 2002:a63:2264:: with SMTP id t36mr7678163pgm.87.1562935336391; Fri, 12 Jul 2019 05:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935336; cv=none; d=google.com; s=arc-20160816; b=NzTwfKtPKjeWzVr1FT8HU1wKAQXX4bgAx1BebjVp44MaqswUkXOVO+8mjHOJnHtNev hzV5TNq4Pd4goLusplO40l/vmg3Cyi/2pGdXvEZ3tCAexVah55zMVmnNh3Pac9ovwUVE BIKXits8Ndo1oWnWYIc5n8Y/VQb2XOPJO8jXaZ2biJiIEeNN4GV5TWtiQcDZU0ck6Kah OumPzgU2cTyEcr7CV2SWZK4W8mpHvaj3jqJ1zxTskDXPUtnd8z7pFm09XDXFqw2RW0Z3 3f/+xCBTO8NQn/RrEfN8KRMsN1mhaI0njBZ163tbyHh0vXYt1ml43KVniTMd/NWv3cf9 rzZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iiSNk3jzxC292toOage4Oh4q/sIWO27STfeFKPtHP3U=; b=APaUSQ4znln/mqNHjNCyOhvFMhFo+41/9klOyqXaGbNkQeK+WmfSgRTm3fDcigRey+ gp+jkJAswzJFrsjPf3drmVyaTa/oBksMB7QYuXQa3KrF2m55ifd7cffHO/BPJlGqHkFt G4Yd9gfNK20IBz2VwSq+WmZ/G6uB54zESPhi65v9/+cs4D/Nqboh69a2B8pmOMj67b5j T1WvfPsiSdRUtdCn79iVWJOCmDbpaLuqXV2EEStSS+bzB+OeFPn8WDizHu0lIJ9Pugrg 6Ow7rdjkIQUdqeOg7OCRBVg/F6QM2TG1zcuCAd5iHZnXxsnQHJCIEwYw6BEJXc2vkG1B PTKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xXUvIIsD; 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 h18si7577517pjt.9.2019.07.12.05.42.00; Fri, 12 Jul 2019 05:42:16 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=xXUvIIsD; 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 S1728084AbfGLMYW (ORCPT + 99 others); Fri, 12 Jul 2019 08:24:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:60836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727572AbfGLMYQ (ORCPT ); Fri, 12 Jul 2019 08:24:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3821208E4; Fri, 12 Jul 2019 12:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934255; bh=/Mz1oNXA8X6erDLO019vWFgA0YET6BevJNaheOkykF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xXUvIIsDTykc3FuhAgLvVqSgs3sm6Jb+KHpxLcHGxMhVuP4US87ScCAe94Fi7HALz gnbZs+iaeGLk1HM8xbgNNAmMpm+lXOSSIbLg49psCytVANUaY3Wcn87PPnCBVqjGgd frmYQXoeMq064Ly+giIfPX3LuOdCm4lUA072xwqg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Young , Paul Burton , Ralf Baechle , James Hogan , linux-mips@linux-mips.org, Hauke Mehrtens Subject: [PATCH 4.19 85/91] MIPS: Remove superfluous check for __linux__ Date: Fri, 12 Jul 2019 14:19:28 +0200 Message-Id: <20190712121626.299919825@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121621.422224300@linuxfoundation.org> References: <20190712121621.422224300@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Young 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: 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 Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/21149/ Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: Hauke Mehrtens Signed-off-by: Greg Kroah-Hartman --- arch/mips/include/uapi/asm/sgidefs.h | 8 -------- 1 file changed, 8 deletions(-) --- a/arch/mips/include/uapi/asm/sgidefs.h +++ b/arch/mips/include/uapi/asm/sgidefs.h @@ -12,14 +12,6 @@ #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 * * With the introduction of MIPS32 / MIPS64 instruction sets definitions