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=-0.8 required=3.0 tests=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 EEA61CA9ECB for ; Thu, 31 Oct 2019 10:07:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CED1020862 for ; Thu, 31 Oct 2019 10:07:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726982AbfJaKHY (ORCPT ); Thu, 31 Oct 2019 06:07:24 -0400 Received: from smtprelay0006.hostedemail.com ([216.40.44.6]:41733 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726193AbfJaKHY (ORCPT ); Thu, 31 Oct 2019 06:07:24 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 66010180A5AFF; Thu, 31 Oct 2019 10:07:22 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: kite22_402863056ff25 X-Filterd-Recvd-Size: 2589 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Thu, 31 Oct 2019 10:07:20 +0000 (UTC) Message-ID: Subject: Re: [PATCH linux-kselftest/test v6] lib/list-test: add a test for the 'list' doubly linked list From: Joe Perches To: Brendan Higgins Cc: shuah , Dan Carpenter , David Gow , Andrew Morton , Kees Cook , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List Date: Thu, 31 Oct 2019 03:07:12 -0700 In-Reply-To: <20191031085129.GA217570@google.com> References: <20191024224631.118656-1-davidgow@google.com> <0cb1d948-0da3-eb0f-c58f-ae3a785dd0dd@kernel.org> <20191030104217.GA18421@kadam> <42a8270d-ed6f-d29f-5e71-7b76a074b63e@kernel.org> <20191031085129.GA217570@google.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-10-31 at 01:51 -0700, Brendan Higgins wrote: > On Wed, Oct 30, 2019 at 10:18:44AM -0700, Joe Perches wrote: > > On Wed, 2019-10-30 at 09:35 -0700, Brendan Higgins wrote: > > > Agreed. I can see the point of not wanting to write an exception into > > > checkpatch for every exception of it's general rules; however, it > > > would be nice if there was a way to maybe have a special comment or > > > something that could turn off a checkpatch error. That way, a > > > checkpatch error/warning always means some action should be taken, and > > > if a rule is being ignored, there is always documentation as to why. > > > > That couldn't work when a comment which may exist > > in a file is out of scope of the patch context. > > Sorry, I don't understand exactly what you mean. Can you elaborate? checkpatch works on patch contexts. If the comment is not within the patch context, checkpatch cannot ignore various test. > static void list_test_list_for_each_prev(struct kunit *test) /* checkpatch: disable=for-each-format */ Long line, now what?