Received: by 10.223.185.116 with SMTP id b49csp1477686wrg; Sun, 11 Feb 2018 13:03:08 -0800 (PST) X-Google-Smtp-Source: AH8x224cfbjSnJ23ADle4ATBv8ogy3dPCUU8Wv+DZJeSYUmtD/5eqqIN3x6k8CYBd1J5ks2b0uju X-Received: by 10.101.80.69 with SMTP id k5mr7737710pgo.443.1518382988697; Sun, 11 Feb 2018 13:03:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518382988; cv=none; d=google.com; s=arc-20160816; b=svLwGB8iQFQSGWcxZ8NRM+lzzPZn0imB5nhuiMOkkjY5KpsMCj9MCmezfE9YFJNodI pGNQDwdi7GgxPNgbmSKVkybLVKGFc0ZsV1hb2A6oTacw6YYH02wQGkVGp/DogFVn/9q/ fv0PgVzrqfI0jXk21AsHHF7TuSMCWHv/iZQKXPd4FnrlvMhGEELx8loAqz8mSgrJ9eU1 /wNwqJJ1aWVD9IPGNcmauxQNwnad2S2cIynQ3b2CF4hvm+Lsq2VBf2J4QHlfWlni16gt Rilv+jXfASahYjWmHLe8qc38k3W/pfWYZIsxyopWHra+qZCXs/xjM8aPUFnIJfMDZUuy mOOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature :arc-authentication-results; bh=y1sUaAxxFgwlDEJCd8G6gSBg6RiCAZRanN6wpJ2mqDE=; b=ONPm1Ppb2aBn4adTzAHUXbUzjzbUkdNWFeBeITA8Wu0QvFrhsLLSrBffJEgL1/UAg3 DZ235I3rYXpEjWbFUUqbANF+Emzm6PpfwS006dLYgyVNz1uGXPpYbkTHICcE1V0UngSW bGvJKRtYBu9i0ygOxrYtL23DjiEfwamIi4HYxdP853j74SOYKSnH21fnP24gXHgqKGzC lTjqYU2dOdxCcDh7gJNl+ZfCPRYQp3We9t9KeQxp5dslzDd6t+W0KUBSGwC9m0vMPVIq NSgAHRvxAFeLttK99lnbHmArRU47+cVksDxzvvd/xOqbmF++286PHzlWLQnuldTvsUAL rTfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=uwtCRRGg; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=c/s0JH/7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9si826648pgn.210.2018.02.11.13.02.52; Sun, 11 Feb 2018 13:03:08 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=uwtCRRGg; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=c/s0JH/7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932132AbeBKVCN (ORCPT + 99 others); Sun, 11 Feb 2018 16:02:13 -0500 Received: from casper.infradead.org ([85.118.1.10]:47916 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbeBKVCL (ORCPT ); Sun, 11 Feb 2018 16:02:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=y1sUaAxxFgwlDEJCd8G6gSBg6RiCAZRanN6wpJ2mqDE=; b=uwtCRRGgFRbJWyXznIfvTd7Nv MIzn8Iv5J7+6BoukyBgpJY+rC6iEpXv+q47T3Ch3jGyx09BBLXMij0Rr1SRnVHNyJHktrw3GSIjbP b0m4oqJOzxIOpCsg8y24NEc52Fah6Sj1+WC5Vf4P/GzdVzmuDaJX3C6N9/ERnNm9g9UYDOcrLuzMR T5F15nrQk5R9zjSlyg+HFu3FIyp2aKwZRazQT0PJUny0DAYuyaFnu5HibTq574F0K/eHs1fLdyIP/ pGon/DWFu2G/Rc03yZ8IEeeurQOS2NSjHTG7NA9DNVKZa1EUkpqNn90ZIa2xOsM9KF9EbESiRUyDG t9sDtrs7Q==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ekyl5-0005qR-0G; Sun, 11 Feb 2018 21:01:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=y1sUaAxxFgwlDEJCd8G6gSBg6RiCAZRanN6wpJ2mqDE=; b=c/s0JH/761kLZ8CEuET0aoVxT 3c0kADBk/c0huutSznBvkmbORq3Rsg6peRG1fDkjwNK+jtwJl3ftCRjDS/J2rgg6i1Ikv/+WCVZvR bCaNyo8Am/L9nQejuv/q0wKch8QwqtK9dw9X0DbranskY8+eLOQl5c6uv1zTG0EDTlZGSDv9FjDO/ agrURINQ6zBOoZWhaTxCWZk6FMmNm3Yi5PYpAN87y2inhVY4YQhhv2fY62V9gRL0+7cAeV4S52MVz ECm5oVXa8z5YeKn964YaxwsrtyvRNFIG0k7r8BELQH3v/E+f1kOm6tUk7uKsZgqP8Vt0rtWt8nmDb UfSb8nwTg==; Received: from willy by bombadil.infradead.org with local (Exim 4.89 #1 (Red Hat Linux)) id 1ekyl3-0006Ex-7P; Sun, 11 Feb 2018 21:01:57 +0000 Date: Sun, 11 Feb 2018 13:01:57 -0800 From: Matthew Wilcox To: Randy Dunlap Cc: Philippe Ombredanne , Igor Stoppa , Jonathan Corbet , Kees Cook , mhocko@kernel.org, labbott@redhat.com, jglisse@redhat.com, Christoph Hellwig , cl@linux.com, linux-security-module@vger.kernel.org, linux-mm@kvack.org, LKML , kernel-hardening@lists.openwall.com Subject: Re: [PATCH 2/6] genalloc: selftest Message-ID: <20180211210157.GB4680@bombadil.infradead.org> References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-3-igor.stoppa@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 11, 2018 at 12:27:14PM -0800, Randy Dunlap wrote: > On 02/11/18 12:22, Philippe Ombredanne wrote: > > nit... For a comment in .h this line should be instead its own comment > > as the first line: > >> +/* SPDX-License-Identifier: GPL-2.0 */ > > Why are we treating header files (.h) differently than .c files? > Either one can use the C++ "//" comment syntax. This is now documented! Documentation/process/license-rules.rst: 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. Personally, I find this disappointing. I find this: // SPDX-License-Identifier: GPL-2.0+ /* * XArray implementation * Copyright (c) 2017 Microsoft Corporation * Author: Matthew Wilcox */ much less visually appealling than /* * XArray implementation * Copyright (c) 2017 Microsoft Corporation * Author: Matthew Wilcox * SPDX-License-Identifier: GPL-2.0+ */ I can't see this variation making a tag extraction tool harder to write.