Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3346244pxk; Mon, 5 Oct 2020 07:31:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydZC5ECrVx7lQRj4M4nCNlUZqE4KMUhjM8jaB9t7NCuIDq1Yvr+nZT4khs8WlvoINApWxN X-Received: by 2002:a05:6000:151:: with SMTP id r17mr17887241wrx.311.1601908293577; Mon, 05 Oct 2020 07:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601908293; cv=none; d=google.com; s=arc-20160816; b=c8euXQzmHUk8Ohb5YqsBYBEaGXRavFHJcshE73y8hZYbIdLUSPDsR4HSPZ2Gwnnllv 6xI7zbESfn0AQ2DytfTgR7fLvzUEcOUOt2mzxMNGW4QSWYm3TUMX7xqeairk/g4UN4rM byPWqjThImO/rKmZwLlINs07jCxWWXGhjo61SOCcfwjs5vStXPYzGxRXp9OXOqTs2+7k KvyK4aRHl9NLG3QRiuwSNowB3U3rfcsQcN4hKAV8/uhQd10idGIc+D/SqX9bWWMWnvEV nwh4DLdSQ9y1mKJy+FWsomsDdSqtjOBiuIiHLA4MSUHSNWXYIXpDLd5f6fvPPq+KQkHH 3uSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=O9TTWd2q7mvICrj+gcOz3VCf/sOns4txOsEbFu4ECQk=; b=zj7p+GLQEOey3CIeW4XmsFVHh9JuEQlIT0CNcQrpbLj6R3tqh0C84MRdHi2+Edb/0w oV5dwRx8dMbntFOTV4c/11QfB71Pl+zzFMHLFLF5noOXbyFIttY+ZWSd+RYnjRNgwiSo QPkQVLnLRg2GriUWniqVWaalTMblmiRgtdl5BF5tDMB53vVPJYntUiZAUIE2lrI/LhTY 1PVs2ULQV1c1kwdfwhmMq5ScW2HXKic/tTpgi4cW75d6tCPPR5PabBR6F8isZtSDhlaL MMUCi0pSlT/NroNjl3YspM1oKlbms6JYCfYjS4/V8fbjvdKceubPt/s/Y6M7czt11Um1 JDUQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si119120edq.44.2020.10.05.07.31.01; Mon, 05 Oct 2020 07:31:33 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbgJEO3b (ORCPT + 99 others); Mon, 5 Oct 2020 10:29:31 -0400 Received: from mga04.intel.com ([192.55.52.120]:39367 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgJEO3a (ORCPT ); Mon, 5 Oct 2020 10:29:30 -0400 IronPort-SDR: jmdeDNHVuudZ4/xIAmvdBr7do6spfC1DDOCZOXDCg/07RDNnZEzth86K+SYoeiz1YWdsSR340k bBpecW1Z/E3A== X-IronPort-AV: E=McAfee;i="6000,8403,9764"; a="160971080" X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="160971080" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 07:23:56 -0700 IronPort-SDR: yKL8oPIdfoBU5LgqtWJBu0jJETZLDfiPWCkk/ZGVcL2gkse/q6Tp62Nt9Socah90hhyzFT2Vb7 JchGdLGq/zVQ== X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="525934117" Received: from gtudori-mobl.ger.corp.intel.com (HELO localhost) ([10.249.33.131]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 07:23:47 -0700 Date: Mon, 5 Oct 2020 17:23:45 +0300 From: Jarkko Sakkinen To: Greg KH Cc: Christoph Hellwig , x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Matthew Wilcox , Jethro Beekman , Haitao Huang , Chunyang Hui , Jordan Hand , Nathaniel McCallum , Seth Moore , Darren Kenny , Sean Christopherson , Suresh Siddha , andriy.shevchenko@linux.intel.com, asapek@google.com, bp@alien8.de, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com, mikko.ylinen@intel.com Subject: Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver Message-ID: <20201005142345.GA6232@linux.intel.com> References: <20201003045059.665934-1-jarkko.sakkinen@linux.intel.com> <20201003045059.665934-12-jarkko.sakkinen@linux.intel.com> <20201003143925.GB800720@kroah.com> <20201005084554.GA3403@infradead.org> <20201005114250.GB181338@linux.intel.com> <20201005115030.GA682263@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201005115030.GA682263@kroah.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 05, 2020 at 01:50:30PM +0200, Greg KH wrote: > On Mon, Oct 05, 2020 at 02:42:50PM +0300, Jarkko Sakkinen wrote: > > On Mon, Oct 05, 2020 at 09:45:54AM +0100, Christoph Hellwig wrote: > > > On Sat, Oct 03, 2020 at 04:39:25PM +0200, Greg KH wrote: > > > > > @@ -0,0 +1,173 @@ > > > > > +// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > > > > > > > > You use gpl-only header files in this file, so how in the world can it > > > > be bsd-3 licensed? > > > > > > > > Please get your legal department to agree with this, after you explain > > > > to them how you are mixing gpl2-only code in with this file. > > > > > > > > > +// Copyright(c) 2016-18 Intel Corporation. > > > > > > > > Dates are hard to get right :( > > > > > > As is comment formatting apparently. Don't use // comments for anything > > > but the SPDX header, please. > > > > I'll bring some context to this. > > > > When I moved into using SPDX, I took the example from places where I saw > > also the copyright using "//". That's the reason for the choice. > > > > I.e. > > > > $ git grep "// Copyright" | wc -l > > 2123 > > > > I don't care, which one to use, just wondering is it done in the wrong > > way in all these sites? > > Probably, but I know at least one subsystem requires their headers to be > in this manner. There's no accounting for taste :) This discussion is a bit confusing [*], so I'll just ask from Git: ➜ linux-sgx (master) ✔ git --no-pager grep "\/\/ Copyright" arch/x86 arch/x86/kernel/cpu/sgx/driver.c:// Copyright(c) 2016-20 Intel Corporation. arch/x86/kernel/cpu/sgx/encl.c:// Copyright(c) 2016-20 Intel Corporation. arch/x86/kernel/cpu/sgx/ioctl.c:// Copyright(c) 2016-20 Intel Corporation. arch/x86/kernel/cpu/sgx/main.c:// Copyright(c) 2016-20 Intel Corporation. OK, now I think I know what to do :-) > thanks, > > greg k-h [*] One thing I've been wondering for a long time is that, why new code should have the copyright platters in the first place? I get it for pre-Git era but now there is a cryptographic log of authority. Copyright platters, remarking the authors to the header and MODULE_AUTHOR() macro are the three things that I just do not get in the modern times. /Jarkko