[2.6 patch] IrDA prototype fixes

From: Adrian Bunk (bunk_at_stusta.de)
Date: 09/03/05

  • Next message: serue_at_us.ibm.com: "Re: [PATCH] 2.6.13: Filesystem capabilities 0.16"
    Date:	Sat, 3 Sep 2005 03:47:31 +0200
    To: netdev@vger.kernel.org
    
    

    Every file should #include the header files containing the prototypes of
    it's global functions.

    In this case this showed that the prototype of irlan_print_filter() was
    wrong which is also corrected in this patch.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    ---
     include/net/irda/irlan_filter.h |    2 +-
     net/irda/irlan/irlan_filter.c   |    1 +
     net/irda/qos.c                  |    1 +
     3 files changed, 3 insertions(+), 1 deletion(-)
    --- linux-2.6.13-mm1-full/net/irda/qos.c.old	2005-09-03 02:23:07.000000000 +0200
    +++ linux-2.6.13-mm1-full/net/irda/qos.c	2005-09-03 02:23:31.000000000 +0200
    @@ -37,6 +37,7 @@
     #include <net/irda/parameters.h>
     #include <net/irda/qos.h>
     #include <net/irda/irlap.h>
    +#include <net/irda/irlap_frame.h>
     
     /*
      * Maximum values of the baud rate we negociate with the other end.
    --- linux-2.6.13-mm1-full/include/net/irda/irlan_filter.h.old	2005-09-03 02:43:20.000000000 +0200
    +++ linux-2.6.13-mm1-full/include/net/irda/irlan_filter.h	2005-09-03 02:43:29.000000000 +0200
    @@ -28,6 +28,6 @@
     void irlan_check_command_param(struct irlan_cb *self, char *param, 
     			       char *value);
     void irlan_filter_request(struct irlan_cb *self, struct sk_buff *skb);
    -int irlan_print_filter(struct seq_file *seq, int filter_type);
    +void irlan_print_filter(struct seq_file *seq, int filter_type);
     
     #endif /* IRLAN_FILTER_H */
    --- linux-2.6.13-mm1-full/net/irda/irlan/irlan_filter.c.old	2005-09-03 02:25:06.000000000 +0200
    +++ linux-2.6.13-mm1-full/net/irda/irlan/irlan_filter.c	2005-09-03 02:25:24.000000000 +0200
    @@ -27,6 +27,7 @@
     #include <linux/seq_file.h>
     
     #include <net/irda/irlan_common.h>
    +#include <net/irda/irlan_filter.h>
     
     /*
      * Function irlan_filter_request (self, skb)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: serue_at_us.ibm.com: "Re: [PATCH] 2.6.13: Filesystem capabilities 0.16"

    Relevant Pages

    • Re: [2.6 patch] drivers/isdn/: add missing #includes
      ... > it's global functions. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] lib/sort.c: small cleanups
      ... make two needlessly global functions static ... every file should #include the header files containing the prototypes ... +static void generic_swap ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] fs/freevxfs/: add #includes
      ... Every file should #include the headers containing the prototypes for ... it's global functions. ... files changed, 2 insertions(+) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] drivers/pci/: small cleanups
      ... access.c should #include "pci.h" for getting the prototypes of it's ... make the needlessly global function ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6 patch] net/atm/ioctl.c should #include "common.h"
      ... Every file should #include the header files containing the prototypes of ... it's global functions. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)