Skip to contentSkip to conversation

: ir253_long_set_bit.diff

PATCH New Jean Tourrilhes 1 participant 1 message May 10, 2002 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : ir253_long_set_bit.diff

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 ;-)

include/net/irda/irlmp.h renamed from include/net/irda/irlmp.d8.h +1 -1
diff -u -p linux/include/net/irda/irlmp.d8.h linux/include/net/irda/irlmp.h
@@ -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 */
include/net/irda/irttp.h renamed from include/net/irda/irttp.d8.h +1 -1
diff -u -p linux/include/net/irda/irttp.d8.h linux/include/net/irda/irttp.h
@@ -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;
 };
 
net/irda/irnet/irnet.h renamed from net/irda/irnet/irnet.d8.h +2 -2
diff -u -p linux/net/irda/irnet/irnet.d8.h linux/net/irda/irnet/irnet.h
@@ -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];
net/irda/irnet/irnet_ppp.c renamed from net/irda/irnet/irnet_ppp.d8.c +1 -1
diff -u -p linux/net/irda/irnet/irnet_ppp.d8.c linux/net/irda/irnet/irnet_ppp.c
@@ -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.