From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7E25C4338F for ; Mon, 2 Aug 2021 20:40:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AAEA8604D7 for ; Mon, 2 Aug 2021 20:40:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AAEA8604D7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8rPATTBVgyFiUBfvecH0fIG9kgdTzdF+qS3vrckVdhE=; b=xxtPGMMnp2gAbUvvEOf8XkpjDT gI9PpUPAIcN4ZN2GZ4V67R55QDjT8t+yX5lNAlsQHAPiUBwxpOl2ZXT4BLoAdTtpBgRp4fZAiBANR BEM52y9QA8uttmRMkqoFnMIUEwBT3yVtU7I6mpH8uIHC4gB19ipGEWUs0zPWGjrR/D8/56KXSfsW0 8ftw0EwRUMt79DQF6/481PeaWrFqtwDpXaWQkm2dtgETJuSvnCU7y8BvekfAe3iGhNrFqIe1liVim C9RZIgOS37rmeTlGPR/EPtKV5kPYq+wjaxLUjb+rS0X6+mrDZSXU1TAVoc1ThnRu7twpJieZSb512 qtKneZsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAehW-000BJx-UG; Mon, 02 Aug 2021 20:38:19 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAehS-000BJJ-Sy for linux-arm-kernel@lists.infradead.org; Mon, 02 Aug 2021 20:38:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4C46960F35; Mon, 2 Aug 2021 20:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627936694; bh=0VmdKvA8h8RP4yq/0aC4aMgJKVh9W7XMpNRewkm2IHY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=KSs52CPhyjgzdkS2pj8j6jlHZnaz09GSP05cfei9xqwdJlI28XnYWwn+MwssNomfQ fY07EVWBJ8DSbi1z+0mfd29/kYkuDVWnAUku4AC8c+J4SR/5d5YSFxhcfq6s4kmRIW M7Us9AY7ouLRn8Tdr3trF/rKf8l3S5ixUbaLJmP8iNqw8sH5+TPr9aIKhXl30Bi8Sg mQZpM3m+sHE9Fak1vNfedOKIdEoK/Il62rNAQ/hMdjUSjYVlailf5m2ZpIXtt2zp20 DUoykYF27/2h1YQXE5JH2wAm7vTDAKJHBinWvgHjqVtlvHuL4lyx39Q7snjC07NwAI WOpzFIBhp1HTQ== Subject: Re: [PATCH 3/3] isystem: delete global -isystem compile option To: Alexey Dobriyan Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, masahiroy@kernel.org, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org References: <20210801201336.2224111-1-adobriyan@gmail.com> <20210801201336.2224111-3-adobriyan@gmail.com> From: Nathan Chancellor Message-ID: <3b2d77db-9bed-2535-87df-a2280f3228a3@kernel.org> Date: Mon, 2 Aug 2021 13:38:12 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210802_133815_009432_CECD684E X-CRM114-Status: GOOD ( 12.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 8/2/2021 1:32 PM, Alexey Dobriyan wrote: > On Mon, Aug 02, 2021 at 11:18:32AM -0700, Nathan Chancellor wrote: >> On Sun, Aug 01, 2021 at 11:13:36PM +0300, Alexey Dobriyan wrote: >>> In theory, it enables "leakage" of userspace headers into kernel which >>> may present licensing problem. >>> >>> In practice, only stdarg.h was used, stdbool.h is trivial and SIMD >>> intrinsics are contained to a few architectures and aren't global >>> problem. >>> >>> In general, kernel is very self contained code and -isystem removal >>> will further isolate it from Ring Threeland influence. >>> >>> nds32 keeps -isystem globally due to intrisics used in entrenched header. >>> >>> -isystem is selectively reenabled for some files. >>> >>> Not compile tested on hexagon. >> >> With this series on top of v5.14-rc4 and a tangential patch to fix >> another issue, ARCH=hexagon defconfig and allmodconfig show no issues. >> >> Tested-by: Nathan Chancellor # build (hexagon) > > Oh wow, small miracle. Thank you! > > Where can I find a cross-compiler? This link doesn't seem to have one > https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.1.0/ Hexagon only builds with LLVM now because of the bump to require gcc 4.9: https://lore.kernel.org/r/20210623141854.GA32155@lst.de/ Brian Cain has a link in that thread to an LLVM toolchain that works well for defconfig (allmodconfig requires LLVM 13/14 from git). Otherwise, https://apt.llvm.org or LLVM from your package manager should be sufficient for the same targets. $ make -skj"$(nproc)" ARCH=hexagon CROSS_COMPILE=hexagon-linux-musl- LLVM=1 LLVM_IAS=1 defconfig all should work fine as long as the bin folder for whatever toolchain you download is in your PATH. Cheers, Nathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel