The patch titled net/netfilter/ipvs/ip_vs_wrr.c: use lib/gcd.c has been added to the -mm tree. Its filename is net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: net/netfilter/ipvs/ip_vs_wrr.c: use lib/gcd.c From: Florian Fainelli <florian@xxxxxxxxxxx> Remove the private version of the greatest common divider to use lib/gcd.c, the latter also implementing the a < b case. Signed-off-by: Florian Fainelli <florian@xxxxxxxxxxx> Cc: Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx> Cc: Takashi Iwai <tiwai@xxxxxxx> Cc: Simon Horman <horms@xxxxxxxxxxxx> Cc: Julius Volz <juliusv@xxxxxxxxxx> Cc: David S. Miller <davem@xxxxxxxxxxxxx> Cc: Patrick McHardy <kaber@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- net/netfilter/ipvs/Kconfig | 1 + net/netfilter/ipvs/ip_vs_wrr.c | 15 +-------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff -puN net/netfilter/ipvs/Kconfig~net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc net/netfilter/ipvs/Kconfig --- a/net/netfilter/ipvs/Kconfig~net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc +++ a/net/netfilter/ipvs/Kconfig @@ -113,6 +113,7 @@ config IP_VS_RR config IP_VS_WRR tristate "weighted round-robin scheduling" + select GCD ---help--- The weighted robin-robin scheduling algorithm directs network connections to different real servers based on server weights diff -puN net/netfilter/ipvs/ip_vs_wrr.c~net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc net/netfilter/ipvs/ip_vs_wrr.c --- a/net/netfilter/ipvs/ip_vs_wrr.c~net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc +++ a/net/netfilter/ipvs/ip_vs_wrr.c @@ -21,6 +21,7 @@ #include <linux/module.h> #include <linux/kernel.h> #include <linux/net.h> +#include <linux/gcd.h> #include <net/ip_vs.h> @@ -35,20 +36,6 @@ struct ip_vs_wrr_mark { }; -/* - * Get the gcd of server weights - */ -static int gcd(int a, int b) -{ - int c; - - while ((c = a % b)) { - a = b; - b = c; - } - return b; -} - static int ip_vs_wrr_gcd_weight(struct ip_vs_service *svc) { struct ip_vs_dest *dest; _ Patches currently in -mm which might be from florian@xxxxxxxxxxx are linux-next.patch lib-add-lib-gcdc.patch lib-add-lib-gcdc-fix.patch sound-core-pcm_timerc-use-lib-gcdc.patch net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc.patch net-netfilter-ipvs-ip_vs_wrrc-use-lib-gcdc-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html