From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755095Ab2JKI2j (ORCPT ); Thu, 11 Oct 2012 04:28:39 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:49895 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751234Ab2JKI2g (ORCPT ); Thu, 11 Oct 2012 04:28:36 -0400 Message-ID: <1349944115.2243.18.camel@joe-AO722> Subject: Re: [RFC net-next] treewide: s/ipv4_is_()/ipv4_addr_/ From: Joe Perches To: David Laight Cc: Eric Dumazet , David Miller , netdev , LKML , Brian Haley Date: Thu, 11 Oct 2012 01:28:35 -0700 In-Reply-To: References: <1349894559.2035.12.camel@joe-AO722> <1349895710.21172.7235.camel@edumazet-glaptop> <1349897005.2035.24.camel@joe-AO722> <1349897923.2035.31.camel@joe-AO722> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2012-10-11 at 09:11 +0100, David Laight wrote: > > ipv4 and ipv6 use different styles for these tests. > > > > ipv4_is_(__be32) > > ipv6_addr_(struct in6_addr *) > > I presume there is a 'const' in there ... > > > Perhaps it'd be good to convert the ipv4 tests to the ipv6 style. > > You don't want to force an IPv4 address (which might be in a register) > be written out to stack. > Taking the address also has implications for the optimiser. Of course not, I'm just talking about renaming.