Received: by 10.223.185.116 with SMTP id b49csp1453622wrg; Sun, 11 Feb 2018 12:24:14 -0800 (PST) X-Google-Smtp-Source: AH8x2278xG/ZDHPNvaEJWHfHtU8SAmcPMTLadFd1qBkonQsgoP5qrYfqxln20gJbg1tAbeN+OqcP X-Received: by 10.98.108.133 with SMTP id h127mr9625823pfc.50.1518380654264; Sun, 11 Feb 2018 12:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518380654; cv=none; d=google.com; s=arc-20160816; b=dZFEAk9q9Ikrsi/MQC8Q0FKE6uCp4GJHEeR4YpOZYnB8M4Wje4Uohd3HmTFxZzbJEm bEw0QthHAmhZL6iCiwx5ujor+/bp2lCBhRQE9+ei9dKNKjF9bY5jDywusTZ/sk67MCH6 xktiIydgf6aQrp9cQRTtTW3hsKvwyuSaHO6ZfbrcdWNuRTSW0dWqVHWEscyCIHyilZaa HDdz8jEYi5CQblyN/DHZtlUcoJ7QR9ddPP6XCBm6U41ydrlLNT7NEgBaL7axuu7RU2Ih 7HR8OCTYxbNbNq0OU/ppk7KdycP8l36O/B6IUfF0kutdo8MHIawJUyjhonfbjIqZ2wdq nVlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=C7o5VJ0421YNuiGJHQl2NpJXnpyMKGjBUvWvmElJFjM=; b=M6yVmcq67IwBImqgjaHOK/qn2TE9Ypjp4kR/Y61ZX95HjcyXcHHhp92POtG8hmQten vbK9U2o9NF+Ylcaf59HlKMFFHnmYw5I8l5SjdLp6q6AIIUjGwqodI2dyzFV4a80vcvoS A6IvEFTK3C5uVSkGB5rBcven1TbEw6epmJ5UjKSI1efF5yz4Y+3DhPxCFNCn0TVIC7w4 dJd0yTvMvKmuIDcOZpXs0R7+/ym39aVLPohUh0n3IE2xELXVcXkv7fPbIHGBFdiEsgpQ zh/Omtz8nHvFXmgGlAt2vw16n2shmSR8e9/c7+PUzEoJ0qDwEGxJ7tJfg4R34L7jIOXS Jy7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=I2Qjy0/u; 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 r13si1022612pgf.626.2018.02.11.12.23.58; Sun, 11 Feb 2018 12:24:14 -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=pass header.i=@nexb-com.20150623.gappssmtp.com header.s=20150623 header.b=I2Qjy0/u; 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 S932132AbeBKUXR (ORCPT + 99 others); Sun, 11 Feb 2018 15:23:17 -0500 Received: from mail-wm0-f42.google.com ([74.125.82.42]:39574 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753689AbeBKUXQ (ORCPT ); Sun, 11 Feb 2018 15:23:16 -0500 Received: by mail-wm0-f42.google.com with SMTP id b21so6339605wme.4 for ; Sun, 11 Feb 2018 12:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C7o5VJ0421YNuiGJHQl2NpJXnpyMKGjBUvWvmElJFjM=; b=I2Qjy0/ubhMarO7BtR7v7Qapns2W53amCoF/R9HBotByrvdqMiVnZdxhJIMinQYM25 PgtX6DzA5b5Od9t4iJ+CPeP3lH5pEsemr12d2vAyzBZaN/6z0924RKJKJHKVEk1uSs8j Grgdyhxi3aFoYbGCglruICEChUHhyMicXqM6iFrPoBUKFi7HBCKNa6bA+ytEb6oULyYe etYsHrHHnnLv3oJmZm+lKu5RFooWxnTLGjFVsJMozeq7ZCEp6KwsCyZKSbZ/MknRQvv4 SqHf73hnbH77qzaR0uTTu42JoS93cdmVCwwHaWgiddjU+bL72I3pBcvenUNABt3GUvtv 7Igw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C7o5VJ0421YNuiGJHQl2NpJXnpyMKGjBUvWvmElJFjM=; b=ls9OFMm70ka6lNgh8c+fEqBT3vYyK6IzLdQPFhetDWBWN3m33D3ZJvvEnWPtR7BMtY eYNXhHUKrcg9JfOQucdUzeS/JsJiy5Qdj0VpxGlVB55a9Taeu1Qi19KoBGycEAwS2HLN p28kN6mJa7yIxoskOhKJ9Ofmrh4CUU+BuXld1gIZOFdUQ9Un2ym/LVyxtnALNm04hpzE /tlv/t47BSOiiMWuxxzRfp46Kdg2VZI1vtTKtufT8IB0ovqh3+d7Z/zFKcpEHAXj1Lvb aIIpuKsMAWsSSe7UejbLq1/ad7IwNUd5MDoyJAwqi9gVeVKz3rm8ITLgd5mOZnvyiioJ /6SQ== X-Gm-Message-State: APf1xPA+E0cR2A8jqESaHq5oWOC/eSHxiEu/unepZdW4nSnSiZ1V2+2e /bTMzhRHjwt3/qt4aSkAlq1BPLGvkc6rvwlbm6AHAA== X-Received: by 10.28.191.131 with SMTP id o3mr1751460wmi.81.1518380594735; Sun, 11 Feb 2018 12:23:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.195.139 with HTTP; Sun, 11 Feb 2018 12:22:34 -0800 (PST) In-Reply-To: <20180211031920.3424-3-igor.stoppa@huawei.com> References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-3-igor.stoppa@huawei.com> From: Philippe Ombredanne Date: Sun, 11 Feb 2018 21:22:34 +0100 Message-ID: Subject: Re: [PATCH 2/6] genalloc: selftest To: Igor Stoppa Cc: Matthew Wilcox , Randy Dunlap , 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 Content-Type: text/plain; charset="UTF-8" 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 4:19 AM, Igor Stoppa wrote: > Introduce a set of macros for writing concise test cases for genalloc. > > The test cases are meant to provide regression testing, when working on > new functionality for genalloc. > > Primarily they are meant to confirm that the various allocation strategy > will continue to work as expected. > > The execution of the self testing is controlled through a Kconfig option. > > Signed-off-by: Igor Stoppa > --- /dev/null > +++ b/include/linux/genalloc-selftest.h > @@ -0,0 +1,26 @@ > +/* SPDX-License-Identifier: GPL-2.0 nit... For a comment in .h this line should be instead its own comment as the first line: > +/* SPDX-License-Identifier: GPL-2.0 */ > --- /dev/null > +++ b/lib/genalloc-selftest.c > @@ -0,0 +1,400 @@ > +/* SPDX-License-Identifier: GPL-2.0 And for a comment in .c this line should use C++ style as the first line: > +// SPDX-License-Identifier: GPL-2.0 Please check the docs for this (I know this can feel surprising but this has been debated at great length on list) Thank you! -- Cordially Philippe Ombredanne