Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756911AbXHBOza (ORCPT ); Thu, 2 Aug 2007 10:55:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755170AbXHBOzV (ORCPT ); Thu, 2 Aug 2007 10:55:21 -0400 Received: from nwd2mail10.analog.com ([137.71.25.55]:13749 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753482AbXHBOzS (ORCPT ); Thu, 2 Aug 2007 10:55:18 -0400 X-IronPort-AV: i="4.19,213,1183348800"; d="scan'208"; a="47211213:sNHT38213042" From: Robin Getz Organization: Blackfin uClinux org To: "Richard Knutsson" Subject: Re: [PATCH 06/68] 0 -> NULL, for arch/frv Date: Thu, 2 Aug 2007 10:58:47 -0400 User-Agent: KMail/1.9.5 Cc: "Mike Frysinger" , "Yoann Padioleau" , "David Howells" , kernel-janitors@vger.kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org References: <200707270944.LAA17167@ifs.emn.fr> <8bd0f97a0708010303j7f443b06lf9d77f6d36816237@mail.gmail.com> <46B062AF.1040907@student.ltu.se> In-Reply-To: <46B062AF.1040907@student.ltu.se> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708021058.47811.rgetz@blackfin.uclinux.org> X-OriginalArrivalTime: 02 Aug 2007 14:54:58.0440 (UTC) FILETIME=[18707080:01C7D515] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1264 Lines: 33 On Wed 1 Aug 2007 06:38, Richard Knutsson pondered: > If I understood Robin correctly, he suggested that checkpatch.pl would > tell to convert "x == NULL" to "!x", if that would be the preferred way. I guess I was asking - _if_ this is really important - lets pick a preferred way, and try to use the existing infrastructure (sparce or checkpatch.pl) to try to enforce it. If it is just pedantic - let it go. There are lots of ways to do the same thing, one is not necessarily more correct. (but in this case - I see the point, and agree). > BTW, too bad checkpatch.pl does not know the types, since it otherwise > could check for the "x [=!]= 0"-thing. Then let's ask people to use sparse on anything in their diffstat. (or at least recommend it). Sparse isn't mentioned in Documentation/SubmittingPatches yet. (if it is a suggestion) Even something completely stupid like: diff -uprN old new | diffstat -p 0 | grep -v changed | awk '{print $1}' | sed 's/\.c/\.o/' | xargs make C=2 worked for me. -Robin - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/