lkml.org 
[lkml]   [2002]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH] : ir253_long_set_bit.diff
    From
    ir253_long_set_bit.diff :
    -----------------------
    <Following patch from Paul Mackerras>
    o [CORRECT] Argument of set_bit and friends should be unsigned long
    Should fix all compile warnings ;-)


    diff -u -p linux/include/net/irda/irlmp.d8.h linux/include/net/irda/irlmp.h
    --- linux/include/net/irda/irlmp.d8.h Fri May 3 18:53:43 2002
    +++ linux/include/net/irda/irlmp.h Fri May 3 18:56:45 2002
    @@ -100,7 +100,7 @@ struct lsap_cb {
    irda_queue_t queue; /* Must be first */
    magic_t magic;

    - int connected;
    + unsigned long connected; /* set_bit used on this */
    int persistent;

    __u8 slsap_sel; /* Source (this) LSAP address */
    diff -u -p linux/include/net/irda/irttp.d8.h linux/include/net/irda/irttp.h
    --- linux/include/net/irda/irttp.d8.h Fri May 3 18:54:03 2002
    +++ linux/include/net/irda/irttp.h Fri May 3 18:56:45 2002
    @@ -139,7 +139,7 @@ struct tsap_cb {
    __u32 tx_max_sdu_size; /* Max transmit user data size */

    int close_pend; /* Close, but disconnect_pend */
    - int disconnect_pend; /* Disconnect, but still data to send */
    + unsigned long disconnect_pend; /* Disconnect, but still data to send */
    struct sk_buff *disconnect_skb;
    };

    diff -u -p linux/net/irda/irnet/irnet.d8.h linux/net/irda/irnet/irnet.h
    --- linux/net/irda/irnet/irnet.d8.h Fri May 3 18:54:31 2002
    +++ linux/net/irda/irnet/irnet.h Fri May 3 18:56:45 2002
    @@ -409,8 +409,8 @@ typedef struct irnet_socket

    /* ------------------------ IrTTP part ------------------------ */
    /* We create a pseudo "socket" over the IrDA tranport */
    - int ttp_open; /* Set when IrTTP is ready */
    - int ttp_connect; /* Set when IrTTP is connecting */
    + unsigned long ttp_open; /* Set when IrTTP is ready */
    + unsigned long ttp_connect; /* Set when IrTTP is connecting */
    struct tsap_cb * tsap; /* IrTTP instance (the connection) */

    char rname[NICKNAME_MAX_LEN + 1];
    diff -u -p linux/net/irda/irnet/irnet_ppp.d8.c linux/net/irda/irnet/irnet_ppp.c
    --- linux/net/irda/irnet/irnet_ppp.d8.c Fri May 3 18:56:38 2002
    +++ linux/net/irda/irnet/irnet_ppp.c Fri May 3 18:56:45 2002
    @@ -860,7 +860,7 @@ ppp_irnet_send(struct ppp_channel * chan
    irda_irnet_connect(self);
    #endif /* CONNECT_IN_SEND */

    - DEBUG(PPP_INFO, "IrTTP not ready ! (%d-%d)\n",
    + DEBUG(PPP_INFO, "IrTTP not ready ! (%ld-%ld)\n",
    self->ttp_open, self->ttp_connect);

    /* Note : we can either drop the packet or block the packet.
    -
    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/
    \
     
     \ /
      Last update: 2005-03-22 13:26    [W:0.033 / U:0.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site