netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ivp4: igmp.c remove __inline__ and old changelog
@ 2008-03-06 19:31 Harvey Harrison
  2008-03-06 22:23 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Harvey Harrison @ 2008-03-06 19:31 UTC (permalink / raw)
  To: David Miller; +Cc: linux-netdev

Also move EXPORT_SYMBOL() next to the function they export.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
Dave, would you be interested in a follow-on janitor patch for
some of the stylistic stuff in this file?

 net/ipv4/igmp.c |   64 ++++--------------------------------------------------
 1 files changed, 5 insertions(+), 59 deletions(-)

diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 732cd07..3a27222 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -17,59 +17,6 @@
  *	modify it under the terms of the GNU General Public License
  *	as published by the Free Software Foundation; either version
  *	2 of the License, or (at your option) any later version.
- *
- *	Fixes:
- *
- *		Alan Cox	:	Added lots of __inline__ to optimise
- *					the memory usage of all the tiny little
- *					functions.
- *		Alan Cox	:	Dumped the header building experiment.
- *		Alan Cox	:	Minor tweaks ready for multicast routing
- *					and extended IGMP protocol.
- *		Alan Cox	:	Removed a load of inline directives. Gcc 2.5.8
- *					writes utterly bogus code otherwise (sigh)
- *					fixed IGMP loopback to behave in the manner
- *					desired by mrouted, fixed the fact it has been
- *					broken since 1.3.6 and cleaned up a few minor
- *					points.
- *
- *		Chih-Jen Chang	:	Tried to revise IGMP to Version 2
- *		Tsu-Sheng Tsao		E-mail: chihjenc@scf.usc.edu and tsusheng@scf.usc.edu
- *					The enhancements are mainly based on Steve Deering's
- * 					ipmulti-3.5 source code.
- *		Chih-Jen Chang	:	Added the igmp_get_mrouter_info and
- *		Tsu-Sheng Tsao		igmp_set_mrouter_info to keep track of
- *					the mrouted version on that device.
- *		Chih-Jen Chang	:	Added the max_resp_time parameter to
- *		Tsu-Sheng Tsao		igmp_heard_query(). Using this parameter
- *					to identify the multicast router version
- *					and do what the IGMP version 2 specified.
- *		Chih-Jen Chang	:	Added a timer to revert to IGMP V2 router
- *		Tsu-Sheng Tsao		if the specified time expired.
- *		Alan Cox	:	Stop IGMP from 0.0.0.0 being accepted.
- *		Alan Cox	:	Use GFP_ATOMIC in the right places.
- *		Christian Daudt :	igmp timer wasn't set for local group
- *					memberships but was being deleted,
- *					which caused a "del_timer() called
- *					from %p with timer not initialized\n"
- *					message (960131).
- *		Christian Daudt :	removed del_timer from
- *					igmp_timer_expire function (960205).
- *             Christian Daudt :       igmp_heard_report now only calls
- *                                     igmp_timer_expire if tm->running is
- *                                     true (960216).
- *		Malcolm Beattie :	ttl comparison wrong in igmp_rcv made
- *					igmp_heard_query never trigger. Expiry
- *					miscalculation fixed in igmp_heard_query
- *					and random() made to return unsigned to
- *					prevent negative expiry times.
- *		Alexey Kuznetsov:	Wrong group leaving behaviour, backport
- *					fix from pending 2.1.x patches.
- *		Alan Cox:		Forget to enable FDDI support earlier.
- *		Alexey Kuznetsov:	Fixed leaving groups on device down.
- *		Alexey Kuznetsov:	Accordance to igmp-v2-06 draft.
- *		David L Stevens:	IGMPv3 support, with help from
- *					Vinay Kulkarni
  */
 
 #include <linux/module.h>
@@ -164,7 +111,7 @@ static void ip_ma_put(struct ip_mc_list *im)
  *	Timer management
  */
 
-static __inline__ void igmp_stop_timer(struct ip_mc_list *im)
+static void igmp_stop_timer(struct ip_mc_list *im)
 {
 	spin_lock_bh(&im->lock);
 	if (del_timer(&im->timer))
@@ -1244,6 +1191,7 @@ void ip_mc_inc_group(struct in_device *in_dev, __be32 addr)
 out:
 	return;
 }
+EXPORT_SYMBOL(ip_mc_inc_group);
 
 /*
  *	Resend IGMP JOIN report; used for bonding.
@@ -1266,6 +1214,7 @@ void ip_mc_rejoin_group(struct ip_mc_list *im)
 	igmp_ifc_event(in_dev);
 #endif
 }
+EXPORT_SYMBOL(ip_mc_rejoin_group);
 
 /*
  *	A socket has left a multicast group on device dev
@@ -1295,6 +1244,7 @@ void ip_mc_dec_group(struct in_device *in_dev, __be32 addr)
 		}
 	}
 }
+EXPORT_SYMBOL(ip_mc_dec_group);
 
 /* Device going down */
 
@@ -1780,6 +1730,7 @@ done:
 	rtnl_unlock();
 	return err;
 }
+EXPORT_SYMBOL(ip_mc_join_group);
 
 static int ip_mc_leave_src(struct sock *sk, struct ip_mc_socklist *iml,
 			   struct in_device *in_dev)
@@ -2577,8 +2528,3 @@ int __init igmp_mc_proc_init(void)
 	return 0;
 }
 #endif
-
-EXPORT_SYMBOL(ip_mc_dec_group);
-EXPORT_SYMBOL(ip_mc_inc_group);
-EXPORT_SYMBOL(ip_mc_join_group);
-EXPORT_SYMBOL(ip_mc_rejoin_group);
-- 
1.5.4.GIT




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ivp4: igmp.c remove __inline__ and old changelog
  2008-03-06 19:31 [PATCH] ivp4: igmp.c remove __inline__ and old changelog Harvey Harrison
@ 2008-03-06 22:23 ` David Miller
  2008-03-06 22:25   ` Harvey Harrison
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2008-03-06 22:23 UTC (permalink / raw)
  To: harvey.harrison; +Cc: netdev

From: Harvey Harrison <harvey.harrison@gmail.com>
Date: Thu, 06 Mar 2008 11:31:03 -0800

> Also move EXPORT_SYMBOL() next to the function they export.
> 
> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>

We have not decided to remove the changelog entries in the networking
sources.  It might be impolite to remove references to the contributes
made by individuals during the pre-BK/GIT era where no changelogs were
kept.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ivp4: igmp.c remove __inline__ and old changelog
  2008-03-06 22:23 ` David Miller
@ 2008-03-06 22:25   ` Harvey Harrison
  2008-03-06 22:32     ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Harvey Harrison @ 2008-03-06 22:25 UTC (permalink / raw)
  To: David Miller; +Cc: netdev

On Thu, 2008-03-06 at 14:23 -0800, David Miller wrote:
> From: Harvey Harrison <harvey.harrison@gmail.com>
> Date: Thu, 06 Mar 2008 11:31:03 -0800
> 
> > Also move EXPORT_SYMBOL() next to the function they export.
> > 
> > Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> 
> We have not decided to remove the changelog entries in the networking
> sources.  It might be impolite to remove references to the contributes
> made by individuals during the pre-BK/GIT era where no changelogs were
> kept.

How about I add all the removed text to the changelog for the removal
patch?  If there isn't any agreement on this, just drop it and I'll
submit a patch with just the __inline__ removal and the EXPORT_SYMBOL
movement...or just drop the changelog hunks and apply the rest.

Let me know what your preference is.

Harvey




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ivp4: igmp.c remove __inline__ and old changelog
  2008-03-06 22:25   ` Harvey Harrison
@ 2008-03-06 22:32     ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-03-06 22:32 UTC (permalink / raw)
  To: harvey.harrison; +Cc: netdev

From: Harvey Harrison <harvey.harrison@gmail.com>
Date: Thu, 06 Mar 2008 14:25:51 -0800

> How about I add all the removed text to the changelog for the removal
> patch?

How about you just leave it as-is.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-06 22:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 19:31 [PATCH] ivp4: igmp.c remove __inline__ and old changelog Harvey Harrison
2008-03-06 22:23 ` David Miller
2008-03-06 22:25   ` Harvey Harrison
2008-03-06 22:32     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).