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=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 87C83C4320A for ; Mon, 2 Aug 2021 20:38:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 678AB610FD for ; Mon, 2 Aug 2021 20:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231165AbhHBUiY (ORCPT ); Mon, 2 Aug 2021 16:38:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:57264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbhHBUiY (ORCPT ); Mon, 2 Aug 2021 16:38:24 -0400 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-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.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