From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934161Ab3IDBis (ORCPT ); Tue, 3 Sep 2013 21:38:48 -0400 Received: from mga03.intel.com ([143.182.124.21]:4677 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755007Ab3IDBiq convert rfc822-to-8bit (ORCPT ); Tue, 3 Sep 2013 21:38:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,1017,1367996400"; d="scan'208";a="290510330" From: "Nelson, Shannon" To: Joe Perches CC: "Kirsher, Jeffrey T" , "e1000-devel@lists.sourceforge.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [E1000-devel] [PATCH 0/4] i40e: Neatening and object size reductions Thread-Topic: [E1000-devel] [PATCH 0/4] i40e: Neatening and object size reductions Thread-Index: AQHOpdX1NRXzP6/TyEu240MAQhoiJZm0lXnQgACxAwD//4tJ8A== Date: Wed, 4 Sep 2013 01:38:43 +0000 Message-ID: References: <1378258258.7347.48.camel@joe-AO722> In-Reply-To: <1378258258.7347.48.camel@joe-AO722> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.1.200.107] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Joe Perches [mailto:joe@perches.com] > Sent: Tuesday, September 03, 2013 6:31 PM > > On Wed, 2013-09-04 at 01:00 +0000, Nelson, Shannon wrote: > > Hi Shannon. > > > > -----Original Message----- > From: Joe Perches > > [mailto:joe@perches.com] > Sent: Friday, August 30, 2013 4:06 PM > > > > Just some potential cleanings... > > > > > i40e: Whitespace cleaning > > > > Hmmm, we hadn't noticed the new experimental "--fix" option before. > > There are a lot of good suggestions there, but obviously it needs a > lot > > of reading and tweaking before it can be used. There are cases here > > where function call parameters are adjusted to line up with the > opening > > '(' but that pushes the parameter(s) beyond 80 columns - we're trying > > to stay within the 80 column line and checkpatch clean. Also, there > > are several where the first continued parameter line indent is changed > > but the next line or two are not. > > > > We'll spend time going through these and try to take care of what > makes > > sense. > > Swell. All these are your choice to fix as you want. > > Exceeding 80 columns doesn't bother me much. We should perhaps become a little more flexible ourselves, but we've finally got a good process going internally, including this as a check. I don't dare disturb the machine now that it is working :-). > Keeping alignment appropriate for multi-line statements > needs work inside checkpatch. I played with it a bit > but it's unfortunately complicated by intermixed > insertions and deletions. Yeah, it all gets a little funky after a while. > > > > i40e: Add and use pf_ > > > > We had considered this kind of macro awhile ago, but nixed it for a > few > > different reasons, but primarily because it seems like > > yet-another-print-macro and not necessarily worth the effort. > > > > > i40e: pf_ remove "%s: " ... __func__ > > > > We're beginning to remove many of the __func__ uses, so these prints > > are no longer all doing the __func__ thing. We originally had them > > there for early development and debugging and are currently removing > > them from the normal path messages. > > Fine by me. I think __func__ is nearly always pretty > useless myself. It was useful for a while, but it is time to be pulling it out. > > > > i40e: Convert pf_ macros to functions > > > > Doesn't this create a problem with polluting the kernel namespace? > > These don't apply to any other driver. I suppose we could lessen the > > namespace problem with i40e_ prefix, but I'm still not sold on it. I > > suspect we can still get much of the text savings replacing the > > __func__ with __builtin_return_address(0) where needed, and remove > them > > where no longer needed. Does that work for you? > > I think you could just as soon whatever combinations of the > other standard logging mechanisms without using pf_ > > wiphy_ > netif_ > netdev_ > dev_ > pr_ > > as appropriate. I did that only because there was ~10K > of what I think of as not too useful function names out > of a defconfig size of 140k. Yes, and I think removing much of the __func__ or using __builtin_return_address(0) will help. > > > > i40e: Fix 32 bit shift compilation warnings > > > > Sure. > > I think you should use the kernel.h standard macros > for lower_32_bits and upper_32_bits instead. Yep. > > cheers, Joe