Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d535a916cdb1620d936a0a6197194c458854bd71
Commit:     d535a916cdb1620d936a0a6197194c458854bd71
Parent:     b4a9811c42ecb70b2f0b375f6d4c77ab34d1f598
Author:     Pavel Emelyanov <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 20 17:44:01 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Nov 20 17:44:01 2007 -0800

    [IPVS]: Fix compiler warning about unused register_ip_vs_protocol
    
    This is silly, but I have turned the CONFIG_IP_VS to m,
    to check the compilation of one (recently sent) fix
    and set all the CONFIG_IP_VS_PROTO_XXX options to n to
    speed up the compilation.
    
    In this configuration the compiler warns me about
    
      CC [M]  net/ipv4/ipvs/ip_vs_proto.o
    net/ipv4/ipvs/ip_vs_proto.c:49: warning: 'register_ip_vs_protocol' defined 
but not used
    
    Indeed. With no protocols selected there are no
    calls to this function - all are compiled out with
    ifdefs.
    
    Maybe the best fix would be to surround this call with
    ifdef-s or tune the Kconfig dependences, but I think that
    marking this register function as __used is enough. No?
    
    Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]>
    Acked-by: Simon Horman <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/ipvs/ip_vs_proto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv4/ipvs/ip_vs_proto.c b/net/ipv4/ipvs/ip_vs_proto.c
index e844ddb..c0e11ec 100644
--- a/net/ipv4/ipvs/ip_vs_proto.c
+++ b/net/ipv4/ipvs/ip_vs_proto.c
@@ -45,7 +45,7 @@ static struct ip_vs_protocol 
*ip_vs_proto_table[IP_VS_PROTO_TAB_SIZE];
 /*
  *     register an ipvs protocol
  */
-static int register_ip_vs_protocol(struct ip_vs_protocol *pp)
+static int __used register_ip_vs_protocol(struct ip_vs_protocol *pp)
 {
        unsigned hash = IP_VS_PROTO_HASH(pp->protocol);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to