From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id C7A712C56 for ; Sun, 26 Feb 2017 17:42:02 +0100 (CET) Received: by mail-wm0-f50.google.com with SMTP id v186so46103507wmd.0 for ; Sun, 26 Feb 2017 08:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=jAWDyQ6Q7SFjFcUpUCB2kQJTGafAXffm5/V8cJ/lKq8=; b=gyvxZYTxKn2nh+LOfsxqHo5ISkjW0h1P1nPdfVb+XuzF9cOjuXu1nLRMllKzmeXG1R 646WiZCjPWPzQfUVNpeDqyT9gqllzLIG33LpbVnABbOzPPBQe1YRxVM52YVH1aznCw19 PZ6Ygjq4L/hUGc9R7ITBqVqwYtORwCs5ATvGsd/KC7A12bIot1xsSTeT8TuyLrjFYidb rg/jViK9D7kmYr8h+Yk20rM2Myz+U2fw1SN3uUM6PWlqO95cJFgm8bqyj5AeGw+U10Sm imgoVKg9RAg4VUN3ZEr1NBc0QubcIRpN4X2+b/wErxOvIminN/RSHIW5Q5LdvoZnCpZX KScQ== 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:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=jAWDyQ6Q7SFjFcUpUCB2kQJTGafAXffm5/V8cJ/lKq8=; b=hy/4bjp1meGQowzwuvCMB3zQUgPNPbw48CoojPsyixh6y+tf2CPqt5VdMb2N149eWe 27sgPTDlvRzHavm0ZTGAJ+JJr1mxI4SHyp5mKZMGhXJS6NSHOPQLPD7xn6MEYByoIMhq 5cwyT1z/VS94kfipWJVj7CDbYJWXSfgXPcHCOgfP2HHwoUgwbohOiIwggODZa39tH8qe R86N0lH+8LhTYlHF13nmCHpS/bn6UboN1IovaX1QTiOKWgfQBpSYv6Siq3Up1+rVmVGZ X4xEvxaWHjvXMoZwqkxHJGNQbmAVftEehnw3cc1OEiB5Aq0uhfVC2GwdHyrXmKSpBaFa gwzA== X-Gm-Message-State: AMke39mD6ZQjO3uZGb9PwC1NMuXNeLYiiV4DTDjED/imeNUdNiOqm2dV8qNElul+wdWw/V1o X-Received: by 10.28.218.80 with SMTP id r77mr9449568wmg.0.1488127322506; Sun, 26 Feb 2017 08:42:02 -0800 (PST) Received: from xps13.localnet (163.21.90.92.rev.sfr.net. [92.90.21.163]) by smtp.gmail.com with ESMTPSA id v130sm1143548wmv.2.2017.02.26.08.42.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Feb 2017 08:42:01 -0800 (PST) Date: Sun, 26 Feb 2017 08:42:01 -0800 (PST) X-Google-Original-Date: Sun, 26 Feb 2017 17:42 +0100 From: Thomas Monjalon To: "Legacy, Allain" Cc: dev@dpdk.org Message-ID: <6716326.UsPtCJtimW@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <70A7408C6E1BFB41B192A929744D85238A75738B@ALA-MBC.corp.ad.wrs.com> References: <70A7408C6E1BFB41B192A929744D85238A75701B@ALA-MBC.corp.ad.wrs.com> <1625293.rscMPIi6S2@xps13> <70A7408C6E1BFB41B192A929744D85238A75738B@ALA-MBC.corp.ad.wrs.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] checkpatch.pl inconsistent results X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 16:42:02 -0000 2017-02-26 16:20, Legacy, Allain: > From: Thomas Monjalon > > It is a false positive. > > PRIx64 and PRIu64 are obviously allowed. > > The only thing you need to take care is having spaces around. > > > Ok, thanks Thomas. Obviously PRIx64 and PRIu64 are acceptable so I knew that something must have been wrong with my understanding or what I was doing. I'll ignore these and proceed to fixing the other issues missed because of the older version of checkpatch.pl that I was using. Is there a list of acceptable false positives to avoid wasting time trying to figure these out? No we have no such list. We could add one in the contribution guide, or we could try to catch them in checkpatch.sh, or even better, we could try to contribute a change in Linux repo. > > Maybe the difference is because the first one happens in a standard > > printf function and checkpatch would ignore the specifiers. > > Just for curiosity sake I copied the line from my change in to the other patch that I mentioned and the checkpath.pl tool did not flag an error so it seems like it may be file path dependent. Since it is a false positive I won't waste any time trying to chase this down any further. > > On the subject of using the correct version of checkpath.pl, has there been any discussions around storing a version of this tool in the dpdk tree to avoid developers using one version while the automated tools use another, or even so that all developers are using the same version at any given time? It has always been my experience that it is better to version control as many of the dependent tools as possible to ensure repeatable and predictable results. If storing a version of the script in the dpdk tree is unacceptable then perhaps automatically downloading a copy from kernel.org at runtime would be better? Yes it has been discussed few times. I don't see any issue at having different results, because the main benefit of checkpatch is to help in reviews. If a new tool or version helps to have a better code, it's fine but it is probably not a big issue. I do not like the idea of saving a copy of checkpatch in DPDK (we won't maintain it and it could be used by several DPDK repositories). I think we can add an automatic download from kernel.org if the script is not found. However it won't fix the versioning.