Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp857581ybx; Thu, 31 Oct 2019 01:55:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxn89doBdUP3K+PmtMEzAgmbIpAzhlu5A9DAY+HyGPV4RWwtVB+hz1QpuZxv1qVkEJbXys X-Received: by 2002:aa7:cf05:: with SMTP id a5mr4505050edy.255.1572512132982; Thu, 31 Oct 2019 01:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572512132; cv=none; d=google.com; s=arc-20160816; b=vAxG9SnxQ4IAulzIMgcGjxvyLQLYRTrO33zrqrQhkuztnB3n0XsUoDEw7Ep1wTP/n6 LB2abz37gZSIN77OLzQVrAJTuNhqZvelMUjaGd6k4eQjUoFVKVdrNnyuG7Qw+zepcaBC 3JZyeqMOCYA89/oGYX7jsc2Mh3fu7hYc5dADpjbWw0Zsth438j86nQxC0gFLFrfy+BTr YL7mSTnszfYywH641xer0ll/2Ew7Z7dfbpXBpHz7d32yFZ2WbG+JR5oelObQ5LCvn/pD qvRpZepe/ugqkflFq/9XVFV6TEDQ9QkPzxU3qyBQaZsRe7tjzVVKPvw3Le1LHL+ILDti GuLA== 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; bh=ME3Ltsu28xY9FZ7FPzX/YEVGfUZBxiS82t6VZQlhtiQ=; b=owheqcarCN1Rvm7dcA18uWvQYXBJWNY0ekgRBqT8spyhEk+NXbfz3TyqGA6SexXNjJ flXJ8MzCgkbtLG6KitDnLRJnTM2Y5u9mpdtrX2pvSjdXbDTgov3B7BdOQRWxyGy/x+Hw 3MZ+OmAWgvcrYlMHh269Uizjt3wX4k7h0jIJzuUY1dhJ5gaE7tggDRGmp4o6eSUPLIZE s4D8pOJUpLCtWinwYjKY2jm4hHtvwCklgy0FuYAANE3xmrmReMoZDUcx8FuzgdG7DBpp KcUyyG4OMkBCtPODx7n2T511A3xQma9hucH1Q56/kSlweI4g9iYLjEUX3STF8qsDHsdG KBFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tl8Hsb22; 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 w52si3259645edd.76.2019.10.31.01.55.09; Thu, 31 Oct 2019 01:55:32 -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=tl8Hsb22; 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 S1726960AbfJaIvh (ORCPT + 99 others); Thu, 31 Oct 2019 04:51:37 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44103 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbfJaIvh (ORCPT ); Thu, 31 Oct 2019 04:51:37 -0400 Received: by mail-pg1-f196.google.com with SMTP id e10so3587126pgd.11 for ; Thu, 31 Oct 2019 01:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ME3Ltsu28xY9FZ7FPzX/YEVGfUZBxiS82t6VZQlhtiQ=; b=tl8Hsb22yrpTp+aE+3bIye9K5uVkV4y8FxN7YPrbBnmCT+YfJ3AUC2cwuSlDicKCxu UDml6vdi71pvZSXoi5HfkSGyUpeBN4QTT/sBgk0cSnY1PpsPs2ib3+1pVot3g7+9VdSY Kod9TenRE541RA9FzpBG+XBTjSYvG94TZduK7Hu13F3Bl+UKIr5aV3qtKD+GxX6vJf/q kb5nkicEebV649v+z46H29loCCin+lqFILBZ6B2Vx0JktUqZk2IJNdSWiiDaKxt7KTlg 7bvpBPipwLfBqCAkflDGM7f0Ywys3KYYrZ742cfFgzEYGZ1AvWz5xEbH8SlVWB4udvfW 4ZyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ME3Ltsu28xY9FZ7FPzX/YEVGfUZBxiS82t6VZQlhtiQ=; b=KLP0EJzAzTIaqdPzkgX4i8318v8WjFqKu2H0EkNnFcVt3lf8ZVdZTKztmRy5TiacoK RvY9RWSlTXJ1v5HthAzp/lrkW9Jqg8AnzsVeRhYS1O1xlrqw2aFotvSv7hRTUsgmlscV FyutePg1ADygYJRdeDzJkFnQqENZytppiBDHQi7whJt48GFPS59pjuwCFGaUx2q3TIfI xAvJ0NZjtVKOpm1xwfZPTv4maVhu6YtF9ONnlRieIeRAHJq91QvCt2fZMu9Q3pdrtnnx A2UjGNlXW7/Ck1s1Gd+DiVNFbpcRTvxJA6ZyUDTU6rait2N/9PAxkkoJwjpR5BBkjBtm uf1Q== X-Gm-Message-State: APjAAAUW4NwBnssckirbdz+T74g2Co/2kP0f7nAobLWS/FKBsEet4pNu I6dG+7pTneCDDOZpfwsVS3gP1w== X-Received: by 2002:a17:90a:3651:: with SMTP id s75mr5830500pjb.30.1572511894912; Thu, 31 Oct 2019 01:51:34 -0700 (PDT) Received: from google.com ([2620:15c:2cb:1:e90c:8e54:c2b4:29e7]) by smtp.gmail.com with ESMTPSA id m123sm2657852pfb.133.2019.10.31.01.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 01:51:34 -0700 (PDT) Date: Thu, 31 Oct 2019 01:51:29 -0700 From: Brendan Higgins To: Joe Perches Cc: shuah , Dan Carpenter , David Gow , Andrew Morton , Kees Cook , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List Subject: Re: [PATCH linux-kselftest/test v6] lib/list-test: add a test for the 'list' doubly linked list Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? If it wasn't obvious, I am not proposing that David should make the changed I described now for this patch. I know what I proposed would not be an easy thing to implement, especially given the opinions that it is likely to solicit. Nevertheless, in the long term, I have seen other projects allow a comment that would cause style checkers or static analysis tools to ignore the designated line. Maybe we could implement this as a line comment that suppresses a checkpatch warning of a certain kind on the line. So here, we might have something like: static void list_test_list_for_each_prev(struct kunit *test) /* checkpatch: disable=for-each-format */ We would also probably want to require an explanation either in the checkpatch comment or the line above, but then you have to worry about that comment not being included in a patch that only updates the offending line. Anyway, it's just an idea. I know that we don't currently assume that all checkpatch errors/warnings require some action, but it might be cool if they did. Cheers