From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: Re: [RFC: 2.6 patch] net/netlink/: possible cleanups Date: Fri, 14 Apr 2006 12:32:02 +0200 Message-ID: <20060414103202.GF4162@stusta.de> References: <20060413162710.GE4162@stusta.de> <20060413.132603.94193712.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Received: from emailhub.stusta.mhn.de ([141.84.69.5]:13575 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S965140AbWDNKcD (ORCPT ); Fri, 14 Apr 2006 06:32:03 -0400 To: "David S. Miller" Content-Disposition: inline In-Reply-To: <20060413.132603.94193712.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Apr 13, 2006 at 01:26:03PM -0700, David S. Miller wrote: > From: Adrian Bunk > Date: Thu, 13 Apr 2006 18:27:10 +0200 > > > This patch contains the following possible cleanups plus changes related > > to them: > > - make the following needlessly global functions static: > > - attr.c: __nla_reserve() > > - attr.c: __nla_put() > > - #if 0 the following unused global functions: > > - attr.c: nla_validate() > > - attr.c: nla_find() > > - attr.c: nla_memcpy() > > - attr.c: nla_memcmp() > > - attr.c: nla_strcmp() > > - attr.c: nla_reserve() > > - genetlink.c: genl_unregister_ops() > > - remove the following unused EXPORT_SYMBOL's: > > - af_netlink.c: netlink_set_nonroot > > - attr.c: nla_parse > > - attr.c: nla_strlcpy > > - attr.c: nla_put > > > > Signed-off-by: Adrian Bunk > > Bunk-bot, you have to stop. > > These interfaces were added so that new users of netlink could > write their code more easily. > > Unused does not equate to "comment out or delete". Can you give a more detailed answer which parts of my patch you disagree with? Is the export of netlink_set_nonroot that seems to be both present and unused since at least kernel 2.6.0 covered by your statement? Anything else where a removal might be OK? I'll then send a stripped-down patch (if any non-empty subset of my patch is OK). cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed