login
Header Space

 
 

[patch 1/8] iphase: fix 64bit warning

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <davem@...>
Cc: <netdev@...>, <akpm@...>, <alan@...>, <alan@...>, <chas@...>, <jeff@...>
Date: Wednesday, May 14, 2008 - 7:19 pm

From: Alan Cox <alan@lxorguk.ukuu.org.uk>

Time is unsigned long (except when you are in a hurry) so we need to store
rx_tmp_jif in the right sized object.

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: chas williams <chas@cmf.nrl.navy.mil>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/atm/iphase.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/atm/iphase.h~iphase-fix-64bit-warning drivers/atm/iphase.h
--- a/drivers/atm/iphase.h~iphase-fix-64bit-warning
+++ a/drivers/atm/iphase.h
@@ -1025,7 +1025,8 @@ typedef struct iadev_t {  
         spinlock_t rx_lock, misc_lock;
 	struct atm_vcc **rx_open;	/* list of all open VCs */  
         u16 num_rx_desc, rx_buf_sz, rxing;
-        u32 rx_pkt_ram, rx_tmp_cnt, rx_tmp_jif;
+        u32 rx_pkt_ram, rx_tmp_cnt;
+        unsigned long rx_tmp_jif;
         void __iomem *RX_DESC_BASE_ADDR;
         u32 drop_rxpkt, drop_rxcell, rx_cell_cnt, rx_pkt_cnt;
 	struct atm_dev *next_board;	/* other iphase devices */  
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/8] iphase: fix 64bit warning, , (Wed May 14, 7:19 pm)
Re: [patch 1/8] iphase: fix 64bit warning, David Miller, (Wed May 14, 7:42 pm)
speck-geostationary