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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 C0476C4363D for ; Mon, 5 Oct 2020 14:28:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5E85A20776 for ; Mon, 5 Oct 2020 14:28:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5E85A20776 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E8F0C8E0001; Mon, 5 Oct 2020 10:28:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E3EF56B006C; Mon, 5 Oct 2020 10:28:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D2D458E0001; Mon, 5 Oct 2020 10:28:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id A32936B0062 for ; Mon, 5 Oct 2020 10:28:55 -0400 (EDT) Received: from smtpin03.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3ADA2180AD806 for ; Mon, 5 Oct 2020 14:28:55 +0000 (UTC) X-FDA: 77338103430.03.ducks32_0f00877271be Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin03.hostedemail.com (Postfix) with ESMTP id 13C8F28A4E9 for ; Mon, 5 Oct 2020 14:28:55 +0000 (UTC) X-HE-Tag: ducks32_0f00877271be X-Filterd-Recvd-Size: 5193 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf46.hostedemail.com (Postfix) with ESMTP for ; Mon, 5 Oct 2020 14:28:54 +0000 (UTC) IronPort-SDR: VzxMT0pH6HKIDGysheLJxBaYwyAj6NTPM0+R6qAlYimIg9sltWQCrAoOU82tfj7t2SCliJDUmQ qmW7DXpsyXBw== X-IronPort-AV: E=McAfee;i="6000,8403,9764"; a="248319888" X-IronPort-AV: E=Sophos;i="5.77,338,1596524400"; d="scan'208";a="248319888" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP; 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 In-Reply-To: <20201005115030.GA682263@kroah.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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) > > > >=20 > > > > You use gpl-only header files in this file, so how in the world c= an it > > > > be bsd-3 licensed? > > > >=20 > > > > Please get your legal department to agree with this, after you ex= plain > > > > to them how you are mixing gpl2-only code in with this file. > > > >=20 > > > > > +// Copyright(c) 2016-18 Intel Corporation. > > > >=20 > > > > Dates are hard to get right :( > > >=20 > > > As is comment formatting apparently. Don't use // comments for any= thing > > > but the SPDX header, please. > >=20 > > I'll bring some context to this. > >=20 > > 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. > >=20 > > I.e. > >=20 > > $ git grep "// Copyright" | wc -l > > 2123 > >=20 > > I don't care, which one to use, just wondering is it done in the wron= g > > way in all these sites? >=20 > Probably, but I know at least one subsystem requires their headers to b= e > in this manner. There's no accounting for taste :) This discussion is a bit confusing [*], so I'll just ask from Git: =E2=9E=9C linux-sgx (master) =E2=9C=94 git --no-pager grep "\/\/ Copyrig= ht" arch/x86 arch/x86/kernel/cpu/sgx/driver.c:// Copyright(c) 2016-20 Intel Corporatio= n. 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, >=20 > 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