Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1152282pxy; Sun, 1 Aug 2021 14:47:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4wEocqQpdVfvvknTr0qOg9vGPtmT7/eBJ971gqMzcyBgHKgI3Ou7Asv+xIdWWRfp33tPC X-Received: by 2002:a92:c503:: with SMTP id r3mr617593ilg.148.1627854474195; Sun, 01 Aug 2021 14:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627854474; cv=none; d=google.com; s=arc-20160816; b=GqTCHPfv4kJG9RH7FAW6jOiUWvQ130gFOj/VRxppjz+vDNMZuE93sGlc8u1wIoHi0E gdKkqxtV3NENjQTz5OMyW2+C9aaKCyG+zTtJUdDFSbeQt+B4AacS0K/XvmyrIDqm+AHH VMDZD0CqkC76rfvrqB2xIvMGPn7nTMoFRs09kdUFd0xSqeM112Bggw1VnNPOJS+qfVgC h6IAZofiua3OOrdXsOws/sWUDBm2RC6PvNCUWV+jPW7UZcFJkzs6xMyckCuAh/Ox3pDl wVEB8FPwDxqGuHKYMHiTaBImWWUpY6++8V9PkPhhf9DWccV5tUkDznNUHqUS355zEwek 8UHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FHmT3Lad0HVTbRbNhsr3ltRMttQv2v7bDT8hS1NLpgY=; b=SwbmWDZeCesp6w2SxBnpDokiSwOMGyEfHrh/F5P1q5FIicPTqJW4LORE4VDYN84Bz3 MIhLcYymC7lJfh6w5R5HNOPGrskoGS3ZKKsilRFm8kgOUskPkvdNuRMMcCa+ShYU8Kz+ lKTKa0/rYrjp8OYJOCIoZoYik3ehlRzD5Fzmr1U1x2gEjOPHFx1c3nJ3ZwxhvZ/Violu IH60jLu4VN/X/NihCs48BzmGXZaVBrj7LJsHRTCShH83eVA+PISLxXAY2qcyc+7kayAt M3B9iJ8rmvjJYAe7JWj1FNT3c+TEManzajdmDFfUkT58NTzuDvDhQpD9sO2kNpi6xsBV fjFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si3794087jar.107.2021.08.01.14.47.16; Sun, 01 Aug 2021 14:47:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbhHAVkb (ORCPT + 99 others); Sun, 1 Aug 2021 17:40:31 -0400 Received: from gate.crashing.org ([63.228.1.57]:44069 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbhHAVkb (ORCPT ); Sun, 1 Aug 2021 17:40:31 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 171LWnvj015149; Sun, 1 Aug 2021 16:32:49 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 171LWlIp015148; Sun, 1 Aug 2021 16:32:47 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Sun, 1 Aug 2021 16:32:47 -0500 From: Segher Boessenkool To: Alexey Dobriyan Cc: akpm@linux-foundation.org, linux-arch@vger.kernel.org, Catalin Marinas , masahiroy@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Paul Mackerras , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/3] isystem: delete global -isystem compile option Message-ID: <20210801213247.GM1583@gate.crashing.org> References: <20210801201336.2224111-1-adobriyan@gmail.com> <20210801201336.2224111-3-adobriyan@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210801201336.2224111-3-adobriyan@gmail.com> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > -NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) > +NOSTDINC_FLAGS += -nostdinc This is removing the compiler's own include files. These are required for all kinds of basic features, and required to be compliant to the C standard at all. These are not "userspace headers", that is what -nostdinc takes care of already. In the case of GCC all these headers are GPL-with-runtime-exception, so claiming this can cause licensing problems is fearmongering. I strongly advise against doing this. Segher