Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3131687imm; Mon, 10 Sep 2018 11:33:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYE17s6YRF99LhksPdpEdVx87oqjLYvc9Gc9aJZh60ANVxTjZxqmr9AJxyo52k+e0UN/GV0 X-Received: by 2002:a62:e813:: with SMTP id c19-v6mr25385809pfi.124.1536604425923; Mon, 10 Sep 2018 11:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536604425; cv=none; d=google.com; s=arc-20160816; b=jAmbnp67tWMiMpGNFj69ta13yaGMLuq2rFOX9CyCuiM3ZmIQnHfUSyOtVqTIEq+v6T MVlZXLnL40CmwoeAtWKy6MzitXSEswWFD4BwBWISfuwqf4EKins74MEYB4NBBHcYefn2 CiqARcF2UEVjUqV16PgkWxswz0ZcVZsFyHu5AP5iM65oJkDBrFlB8lQCe3RHK74EggGy TNW/SCQdu8W3ipuQSv/L7xgZCHv4XXDvdGxDaIyrh5IvXfp67J9YKvGDnv1FTqS3Xg22 2k1NIeIXfa37bGmr3GoKXmswUuiHQJo19Hs5CsqdIoAI4MflOCyDAkrBUg+eyYBY+PH4 4UOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=E8rNQgJbfDngxrnnoT9Ux1T8f95RkzNtAGIJOeVCfhM=; b=XjeulrY4cL1/zVhYv2e60O64eP1QytvlpPpSELleECJ9o6w1Zt8gFY+qZEQN5WQZQJ RoZ2XmOwHgRrzRsHwF1ddZo1zfG1gxysSlLDL38xoTR7OL4a7j6awOYmu2jM7nU8GPu5 O2fDcCamuxryRw0GiqPF//o7aKdU4yr2CXr/xATA4nFz7YwPLIkp3YdOK5kOnPmRZ7T5 lQfYjNmPUdKb4I6n9aA6/rWShtG9CQyG8XO8p8wmHBFbkTt+2llmFqRKsrizzgKUy6JO EvTRkWkwyz1GvU7hC95Pb3GyiklSbHCz2ZZmPSldDMnS/nryvbaMBezb5Qo/OBpTF2KV f9sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si18180224pfc.328.2018.09.10.11.33.27; Mon, 10 Sep 2018 11:33:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728106AbeIJX2j (ORCPT + 99 others); Mon, 10 Sep 2018 19:28:39 -0400 Received: from mga06.intel.com ([134.134.136.31]:34820 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbeIJX2j (ORCPT ); Mon, 10 Sep 2018 19:28:39 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 11:33:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,356,1531810800"; d="scan'208";a="256020382" Received: from fbaehren-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.49.250]) by orsmga005.jf.intel.com with ESMTP; 10 Sep 2018 11:33:02 -0700 Date: Mon, 10 Sep 2018 21:33:01 +0300 From: Jarkko Sakkinen To: Miguel Ojeda Cc: Andy Shevchenko , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Platform Driver , Dave Hansen , sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, linux-sgx@vger.kernel.org, serge.ayoun@intel.com, shay.katz-zamir@intel.com, "Siddha, Suresh B" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Darren Hart , Andy Shevchenko , Herbert Xu , Eric Biggers , Linux Kernel Mailing List Subject: Re: [PATCH v13 11/13] platform/x86: Intel SGX driver Message-ID: <20180910183301.GA20225@linux.intel.com> References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-12-jarkko.sakkinen@linux.intel.com> <20180905173355.GE11368@linux.intel.com> <20180906092100.GA27302@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 07:35:46PM +0200, Miguel Ojeda wrote: > Hi Jarkko, > > On Thu, Sep 6, 2018 at 11:21 AM, Jarkko Sakkinen > wrote: > > There is another open. If I grep through the kernel tree I see SPDX > > headers that are decorated both with C99- and C89-style comments. I > > guess I ended up using C99-style because when I was instructed to add > > SPDX headers in the first place that was the example I was given. Still > > checkpatch.pl complains about C99-style comments. > > > > Which one is right and why the kernel tree is polluted with C99-headers > > when they do not pass checkpatch.pl? How those commits were ever > > accepted? > > See Documentation/process/license-rules.rst. Headers should go with > C-style comments: > > The SPDX license identifier is added in form of a comment. The comment > style depends on the file type:: > > C source: // SPDX-License-Identifier: > C header: /* SPDX-License-Identifier: */ > > And: > > If a specific tool cannot handle the standard comment style, then the > appropriate comment mechanism which the tool accepts shall be used. This > is the reason for having the "/\* \*/" style comment in C header > files. There was build breakage observed with generated .lds files where > 'ld' failed to parse the C++ comment. This has been fixed by now, but > there are still older assembler tools which cannot handle C++ style > comments. > > The ones that got in are probably either old or they slipped through > (and they do not break the build). Thank you, this clears things up. Highly appreciated! > Cheers, > Miguel /Jarkko