From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id E667FB0BD for ; Wed, 11 Jun 2014 17:46:04 +0200 (CEST) Received: from nat-pool-rdu-u.redhat.com ([66.187.233.203] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1Wukj4-0000B7-UD; Wed, 11 Jun 2014 11:46:16 -0400 Date: Wed, 11 Jun 2014 11:46:04 -0400 From: Neil Horman To: "Richardson, Bruce" Message-ID: <20140611154604.GA2940@localhost.localdomain> References: <1401838970-20968-1-git-send-email-bruce.richardson@intel.com> <20140606105032.GA1671@hmsreliant.think-freely.org> <87655757.0nh8hPpYoP@xps13> <59AF69C657FD0841A61C55336867B5B01AA34EC5@IRSMSX103.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59AF69C657FD0841A61C55336867B5B01AA34EC5@IRSMSX103.ger.corp.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] fix trailing whitespace. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 15:46:05 -0000 On Wed, Jun 11, 2014 at 03:24:04PM +0000, Richardson, Bruce wrote: > > -----Original Message----- > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > Sent: Wednesday, June 11, 2014 3:04 AM > > To: Richardson, Bruce > > Cc: dev@dpdk.org; Neil Horman > > Subject: Re: [dpdk-dev] [PATCH] fix trailing whitespace. > > > > > > This commit removes trailing whitespace from lines in files. Almost all > > > > files are affected, as the BSD license copyright header had trailing > > > > whitespace on 4 lines in it [hence the number of files reporting 8 lines > > > > changed in the diffstat]. > > > > > > > > Signed-off-by: Bruce Richardson > > > Acked-by: Neil Horman > > > > I've completed it with these changes: > > - remove spaces before tabs in libs > > - remove more trailing spaces in non-C files > > > > Applied for version 1.7.0. > > > > Some whitespaces and indentation errors are remaining, especially in examples. > > But it can be fixed when examples will be updated. > > I'm not a big fan of such patch. I prefer to take care of not adding new > > spacing errors. So from now, trailing whitespaces, spaces before tabs > > and wrong indentation should be tracked carefully in new patches. > > > Just FYI: my reasoning for cleaning it up now is that it allows us to write rules for our editors or IDEs to automatically fix whitespace errors on save (the patch I generated was created by using a vim rule on file save). Without having things cleaned up ahead of time, having a vim rule such as this will cleanup each file as it is modified, leading to lots of extra whitespace changes in our diffs, which are irrelevant to the code being changed. This then makes our lives harder when working on patches. > This sort of change should probably be accompanied by a script to do patch checking prior to submission (something like checkpatch.pl in the linux kernel). Not every contributor will have a whitespace cleaning rule set, and such a checker will be allow users to clean patches prior to submission, both for whitepace errors and any other errors you want to enforce (trailing whtespace, leading spaces, parenthetical spaces, etc). Neil > /Bruce >