Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp739108ybx; Fri, 1 Nov 2019 10:25:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUBHJxQk6dtytGk8bX9gR0OWt9HLEEmPQhHrCivAjWC/YmfzrmhBYIWgCCUisrznxGFNFD X-Received: by 2002:a17:906:e243:: with SMTP id gq3mr10995855ejb.302.1572629153734; Fri, 01 Nov 2019 10:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572629153; cv=none; d=google.com; s=arc-20160816; b=uYzHnS2SaKjtOl6P9f3w1O5fYtLrxhxO1JA9Qlqb5iKEokiWwzYLe0+aLe0Zk5qXAj dcqDBPRCGoX4JMobHrRLoJLAuui3xGO1u0iBZKSseJaFPqs2BEtnKlJN+h+G/+02k87H zacUi7c2p3cVwYWq6KfsJFF4kROULgFlHuOEWlRjvUvMp3khYT387KoxXPvT2ayPRFS2 XDcgfi58hsofL36Xp7dhoiqw98CUpw47vG4rwau19sAGocSn6u8A0tJQ3RomdcGRzHa5 3Pphz+3CijDjYmoxAJceJhscsJoIDYOCBLIoOaLxJCWAyyWi+FabzIcAZ1/WOx76nVuJ waeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=8fyEqVdgEgmTlx73MvrPKrIVhlrpC1rOqgVW4dBljZo=; b=oO9nq49wiruj/Kz4uI5m1pqBtMVsGcPgdBkI9xLdy39/NcnaDy3dKf2P3V05nzckHN XC2qsl98n+tAY/sk2fjJ1SQ38Cnp0Wie4eS7ILKUY3ph0tsnR5bjs76NVIhZtXZYrKO6 KFNoJ0aCS5UnLwNu2tiHK2oZC2ut6L6btwor63klx3ykz7VXM/zyXcqW0Mpn554i5LVh LLRU5BVq0cWDOxgDqUgQw790vKKINl2ZPV5bY0kT72FL3walUrH9cNd++SCErJ4f5SKt dGgiEnf7gKjQPXYqvxK2tgkOt4+mnorYDjgBpfzWLc/Ovxou2vU27yjqxTP3WOo4pVq1 KFyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=psFXQRDb; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fx12si1238689ejb.154.2019.11.01.10.25.30; Fri, 01 Nov 2019 10:25:53 -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=@kernel.org header.s=default header.b=psFXQRDb; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728764AbfKAQuN (ORCPT + 99 others); Fri, 1 Nov 2019 12:50:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:55056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726825AbfKAQuN (ORCPT ); Fri, 1 Nov 2019 12:50:13 -0400 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 15D052080F; Fri, 1 Nov 2019 16:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572627012; bh=BUpvPIgCiek5J4CeLj4ca43Fs+r3iHsHbPYrxAmt2wE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=psFXQRDbxkTKxYUj7eTf2Omjo3astwoXfflW1bYkNIZmTuZD+EtesRws9UOkeYe91 IFZOcdy87wphXGkpuiDJs8rspxU3g4InAIWj8GjQJ6G/4herpdB9aV2dqStRjNlC9x ow6EgmD3OczIPTgaA4qoa5ZVWNCdPZpOmHt5oMAI= Subject: Re: [PATCH linux-kselftest/test v6] lib/list-test: add a test for the 'list' doubly linked list To: Joe Perches , Dan Carpenter Cc: David Gow , Brendan Higgins , Andrew Morton , Kees Cook , "open list:KERNEL SELFTEST FRAMEWORK" , kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, shuah 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> From: shuah Message-ID: Date: Fri, 1 Nov 2019 10:49:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/30/19 1:23 PM, Joe Perches wrote: > On Wed, 2019-10-30 at 22:12 +0300, Dan Carpenter wrote: >> On Wed, Oct 30, 2019 at 10:27:12AM -0600, shuah wrote: >>>> It's better to ignore checkpatch and other scripts when they are wrong. >>>> (unless the warning message inspires you to make the code more readable >>>> for humans). >>>> >>> >>> It gets confusing when to ignore and when not to. It takes work to >>> figure out and it is subjective. >>> >> >> In this case, it's not subjective because checkpatch is clearly not >> working as intended. > > checkpatch _is_ working as intended. > It was never intended to be perfect. > > checkpatch _always_ depended on a reviewer deciding > whether its output was appropriate. > >> I don't feel like "checkpatch clean" is a useful criteria for applying >> patches. > > Nor do I. > >> The other things about warnings is that I always encourage people to >> just ignore old warnings. If you're running Smatch and you see a >> warning in ancient code that means I saw it five years ago and didn't >> fix it so it's a false positive. Old warnings are always 100% false >> positives. > > That'd be not absolute either because it depended on your > historical judgment as to whether an old warning was in fact > a defect or not. > > People make mistakes. > Regex based scripts are by design stupid and untrustworthy. > > Mistakes will be made. > Just fix the actual defects in code as soon as possible. > > > Thanks all for chiming in. I am taking v6 as is and adding an update to commit log capture the spurious errors from checkpath.pl for this specific case. thanks, -- Shuah