Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp768307ybx; Thu, 31 Oct 2019 00:13:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHJ7HXSiS613s/1lXBeU6418qEOxr2C5Hz/Um5DBvJSKztqFDtkIELPAhiniNIWD/AagA5 X-Received: by 2002:a17:906:e296:: with SMTP id gg22mr2329837ejb.211.1572506030898; Thu, 31 Oct 2019 00:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572506030; cv=none; d=google.com; s=arc-20160816; b=xg5lW1vk8utvaiiB6BcaHVaFi+Yu8lFSd/NvuChYfmfHCMCG3FvUMwt2+Oe54I6L3i GB5NpF6p053bh4lqS9DbB6rur/6hZHY5+uVJb26Z/zLro7WCpdl2ZpGn2hFaSJPBWX67 qRGLbm0DpSKIT5uJv28YvC/3IlWBWenON+IrDXM5Tm4PiO2HGnmQZm5UhlftFjVEoH7p kbBlLMRRw2Z0N1OpvIHOIZuogyMEagR9whiV7LuV+0fbbozsT0COBVPRCufwh5MXvnq9 MK7XmBCA2DCfBv1LNnpxWHeTSmg88E3RWZNcq+o64hjHOGctOe3EcWGwDNbHjpTf5Gb0 9ggQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=tp3Ez8VC0XFbaT+hgR6CPrD+SWbALo91LUbFh4nLv2I=; b=pch+vPdPTZ3YhBDbq/oKPQ3FLHXqBZ1a9yuX2PLYzdcHPytZp2Ted4Vnu9xw5DS842 CbdZKTIJhBc8yEld4Z6xQIm6IVUyqiq3rxrNLYsSBz2tLtvAki2Q3Cnw+hYwMhcAgYsR I5BP2FMgZ7zxlk7dnpvyUC/GzqjYUqOWMydzjOT3ygNb4r5l71d/qpT3N8vrCOR03Guo Vky46p4MFxZPWVvZfPDh3Dw4Y2GexKjpq5nAZOwD+g/OqB0BZ8kMIY4QPzYCISDRLHbX EkOzgya7f70KE1pXEUG+22sCgTqXcS2VIMlc0TwyRhxdNtDGiK9ljkxWVzqd+VRqPWUc X7iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BWc9Lgb4; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si3411283eda.174.2019.10.31.00.13.27; Thu, 31 Oct 2019 00:13:50 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=BWc9Lgb4; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbfJaHMh (ORCPT + 99 others); Thu, 31 Oct 2019 03:12:37 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42376 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726584AbfJaHMh (ORCPT ); Thu, 31 Oct 2019 03:12:37 -0400 Received: by mail-wr1-f66.google.com with SMTP id a15so4972898wrf.9 for ; Thu, 31 Oct 2019 00:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tp3Ez8VC0XFbaT+hgR6CPrD+SWbALo91LUbFh4nLv2I=; b=BWc9Lgb4ffE/c6zKH93LKOotgFgvzrf7Iiqx5peY+b+phsQPhNRoSKurM7+SOk6tXd lGdIiobByRKpNPxkENxN0xzPlZzsmj0GfjRlUHaNz/KxMjdB/VaGd8jc0+PMoqUN+8ie Y5YAXsNluRkWlsBv5eO9bueZtKTFLROkx8kNoHnKREeD/ScZwnNxJeIbKtufpihY2U/d 7tft9dDX3FxSR+eTX+ZHMf848+ZYfw/fdj9rdvCxKuxsfNk0y2mqUP5By6oNjf9QkzFU 34/WlKPOQq8eWyxuJYaKCWGKVPaHdSyaTHT5STGCZo6FRCOZrQ3m7hWhxcwU2bh/ArHs fEHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tp3Ez8VC0XFbaT+hgR6CPrD+SWbALo91LUbFh4nLv2I=; b=ssaaugf5A6tv4wNPRlt9g4JG7SLVMZnSxyDX2DRe7w2A74hwdfu3XwHk6uz8P5i+IQ yAtDWHNUo49hhg2RCqMafZ6eX7a04vXXiWXRyrLX5L8DtsPMp+kCQjM/DQnHI14QarpJ LSYWbTUEPZECa3zeWtBEcktrH0twlSdhRRlZVYdRVV6JV3NejZWqy59JwZx1iN7ck3K6 c3+0RsJ/AWg2k1MYDrV/DTqI/voJKPg8dJpP+VsFm1Ohj2cideZS6Dpyh7lWnLyFYHlh fQiYLro7wtge2KFwAasifwWNgvKey+MqGvr1gl1GybPxD5zRTeClnk8SaC/6GmSVazxQ /MKA== X-Gm-Message-State: APjAAAX5C2azlb8OSZNj82ehYQxIHvJCglZtNJ1G9zy+6PUz9OrLIele qUoKZMF19h8YgVx0+1sT/5rf+w7uhPbHybPLJ19Thg== X-Received: by 2002:a05:6000:101:: with SMTP id o1mr4001921wrx.394.1572505954230; Thu, 31 Oct 2019 00:12:34 -0700 (PDT) MIME-Version: 1.0 References: <20191024224631.118656-1-davidgow@google.com> <0cb1d948-0da3-eb0f-c58f-ae3a785dd0dd@kernel.org> <20191030104217.GA18421@kadam> <42a8270d-ed6f-d29f-5e71-7b76a074b63e@kernel.org> <20191030191255.GD18421@kadam> In-Reply-To: From: David Gow Date: Thu, 31 Oct 2019 00:12:22 -0700 Message-ID: Subject: Re: [PATCH linux-kselftest/test v6] lib/list-test: add a test for the 'list' doubly linked list To: Joe Perches Cc: Dan Carpenter , shuah , Brendan Higgins , Andrew Morton , Kees Cook , "open list:KERNEL SELFTEST FRAMEWORK" , kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org 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 I tend to agree that it's better to either fix or ignore checkpatch than to arbitrarily change things in cases like this where checkpatch is obviously wrong. Equally, it certainly seems that there isn't an obvious way of modifying checkpatch that will both not cause other problems and not add another arbitrary name check. The main concern about just leaving the checkpatch errors in is that people might be automatically rejecting changes (or worse, the whole kselftest/test pull request) if checkpatch errors are present. I'm not sure how likely that is, but I can understand the desire to be careful, since relatively minor changes have delayed KUnit changes before. So, there are a few options, I guess: - Hack around the issue in the patch (as this v7 is doing). Ugly, but does at least mean that this change won't trigger any automated rejection-of-checkpatch-errors people might be doing. (Even if, I think we agree, automatically rejecting anything with checkpatch warnings is not really correct.) - Accept that tests (and other functions) with "for_each" in the name like this are rare enough that it's not worth the complexity of supporting it in checkpatch, and taking v6 as-is with the checkpatch errors. - Modify checkpatch to handle this in some other way (e.g., only if the name doesn't include "test"): I don't think there's a perfectly clean way of doing this. - Modify checkpatch to make this ERROR a WARNING instead, since we know this check has some flaws in this test, and potentially future tests. - Re-send v6 with a note about the checkpatch warning in the description, so that it's easier to tell if one or more of these Is there some combination of the above that sounds good? -- David