Received: by 10.223.185.116 with SMTP id b49csp326435wrg; Sat, 10 Feb 2018 07:58:29 -0800 (PST) X-Google-Smtp-Source: AH8x225PMndHAZHWzivrHyY9eiwi8wOEqoJ9TXBedDOIEJ8EOszUSiYAGcXNBE442zjdK5vCs23k X-Received: by 10.99.163.111 with SMTP id v47mr4571317pgn.80.1518278308872; Sat, 10 Feb 2018 07:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518278308; cv=none; d=google.com; s=arc-20160816; b=oggtJRZSolFqh4gCYIx2lNs6cBIGvByw16cYxRAOzlFEJlpUMPd/4zO8J4FUKSm9AH hDID29Er1VJBFGcWT1Q6pwLQTXRKRZkv8dlCfkQ1MfmXvxQlJSiSJ7g0GbCW5/t/7AGz pr+Y4StyabMQoIkg/xWKgoxxQ2FAkqp3KSGEskj84hX9NYeP7ExslIOSUccaRGGcN1MN od1WAMh9bNu+vJ5Xds4onhHqW5fXhhggSaFzM/Iqmm8PLwGIRYBxCGGzFSC/5GZjs/dJ DI1WhnnhG7KuydvHLdBOwm2tzUiMg7czbf45tTmjDspPoBmqjv9B86GRD4UMcZSpgK+e BHOg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=mCMtpluXjsDIuJyYuIEpiaud6Xo0fUm3BIsb0AIlIU0=; b=RbluSoMs9kr4MnKOJhvSkNw8xkmoUT3h/z2wrm99xte799gGwudHc0BZSUU75gw8RQ +0+pSv+H8Z5XITDdCewd+kI4VPwxH9ybSqj09K9N//e/q3WjwM+3dEYJAgAEQedtvsLQ IRkvcVnUV01c4WUvFHc/aTTz0IDGKPA3JOXc0fm7XFcNEF6+7JzwR34a2nP2PHZPNFB+ P5Yr6Q1iywordzmbOGtEZptZ64ePCs137stCS3z/pVJ0HzH0e1oE3xogCky5goDy2//H zruVpi3/NP3kHi2bC3JD5GPdN8KVZUiJFwaK+c9b018B1MLStQvql1xX+vmCFs6eGr1W o+og== ARC-Authentication-Results: i=1; mx.google.com; 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 e32-v6si1594657plb.34.2018.02.10.07.58.15; Sat, 10 Feb 2018 07:58:28 -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; 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 S1751182AbeBJP5j convert rfc822-to-8bit (ORCPT + 99 others); Sat, 10 Feb 2018 10:57:39 -0500 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:40502 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbeBJP5i (ORCPT ); Sat, 10 Feb 2018 10:57:38 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) by saturn.retrosnub.co.uk (Postfix; Retrosnub mail submission) with ESMTPSA id 9CA544025D; Sat, 10 Feb 2018 15:57:35 +0000 (GMT) Date: Sat, 10 Feb 2018 15:57:34 +0000 From: Jonathan Cameron To: Joe Perches Cc: SF Markus Elfring , linux-iio@vger.kernel.org, linux-input@vger.kernel.org, Jonathan Cameron , Hartmut Knaack , Jiri Kosina , Lars-Peter Clausen , Peter Meerwald-Stadler , Srinivas Pandruvada , LKML , kernel-janitors@vger.kernel.org Subject: Re: Software evolution around =?UTF-8?B?4oCcY2hlY2twYXRjaC5wbA==?= =?UTF-8?B?4oCdPw==?= Message-ID: <20180210155734.708d01b6@archlinux> In-Reply-To: <1518274783.6579.2.camel@perches.com> References: <0406765c-bdd1-1a82-cf66-1c248063ae4f@users.sourceforge.net> <20180204112346.0977e938@archlinux> <9420fc82-1a37-3601-bafe-f57ef953bfcd@users.sourceforge.net> <87DF341A-1356-4B1B-8D25-14D5B0AAB01D@jic23.retrosnub.co.uk> <20180210145336.233c721d@archlinux> <1518274783.6579.2.camel@perches.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 10 Feb 2018 06:59:43 -0800 Joe Perches wrote: > On Sat, 2018-02-10 at 14:53 +0000, Jonathan Cameron wrote: > > While it would be great to improve checkpatches false > > positive rate, it's very nature as a string matcher makes > > this hard. > > true. > > what are the false positives you see? > This particular case is only 'sort of' a false positive in the warning that a message printed on a memory allocation failure 'may' not add any information over the generic case. Very hard to judge on whether it is useful to know more than an allocation failed somewhere or not. Message makes this clear: >“WARNING: Possible unnecessary 'out of memory' message” >(from the script “checkpatch.pl”) We also have the balance between any changes to existing code adding 'some' maintenance overhead vs changing this stuff in a new driver - which is what checkpatch is really intended for. So I think checkpatch is striking the right balance here in how it warns. Obviously if it could assess the text and come to an informed decision that would be great but we are some way from that ;) Jonathan