aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r--drivers/net/wireless/ipw2100.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index d296d464946f..9360763735f0 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -493,7 +493,7 @@ int ipw2100_get_ordinal(struct ipw2100_priv *priv, u32 ord,
493 *len = IPW_ORD_TAB_1_ENTRY_SIZE; 493 *len = IPW_ORD_TAB_1_ENTRY_SIZE;
494 494
495 IPW_DEBUG_WARNING(DRV_NAME 495 IPW_DEBUG_WARNING(DRV_NAME
496 ": ordinal buffer length too small, need %d\n", 496 ": ordinal buffer length too small, need %zd\n",
497 IPW_ORD_TAB_1_ENTRY_SIZE); 497 IPW_ORD_TAB_1_ENTRY_SIZE);
498 498
499 return -EINVAL; 499 return -EINVAL;
@@ -2302,7 +2302,7 @@ static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv,
2302#endif 2302#endif
2303 2303
2304 IPW_DEBUG_INFO(DRV_NAME ": PCI latency error detected at " 2304 IPW_DEBUG_INFO(DRV_NAME ": PCI latency error detected at "
2305 "0x%04X.\n", i * sizeof(struct ipw2100_status)); 2305 "0x%04zX.\n", i * sizeof(struct ipw2100_status));
2306 2306
2307#ifdef ACPI_CSTATE_LIMIT_DEFINED 2307#ifdef ACPI_CSTATE_LIMIT_DEFINED
2308 IPW_DEBUG_INFO(DRV_NAME ": Disabling C3 transitions.\n"); 2308 IPW_DEBUG_INFO(DRV_NAME ": Disabling C3 transitions.\n");
@@ -2398,7 +2398,7 @@ static inline void isr_rx(struct ipw2100_priv *priv, int i,
2398 /* Make a copy of the frame so we can dump it to the logs if 2398 /* Make a copy of the frame so we can dump it to the logs if
2399 * ieee80211_rx fails */ 2399 * ieee80211_rx fails */
2400 memcpy(packet_data, packet->skb->data, 2400 memcpy(packet_data, packet->skb->data,
2401 min(status->frame_size, IPW_RX_NIC_BUFFER_LENGTH)); 2401 min_t(u32, status->frame_size, IPW_RX_NIC_BUFFER_LENGTH));
2402#endif 2402#endif
2403 2403
2404 if (!ieee80211_rx(priv->ieee, packet->skb, stats)) { 2404 if (!ieee80211_rx(priv->ieee, packet->skb, stats)) {
@@ -2730,21 +2730,21 @@ static inline int __ipw2100_tx_process(struct ipw2100_priv *priv)
2730 { 2730 {
2731 int i = txq->oldest; 2731 int i = txq->oldest;
2732 IPW_DEBUG_TX( 2732 IPW_DEBUG_TX(
2733 "TX%d V=%p P=%p T=%p L=%d\n", i, 2733 "TX%d V=%p P=%04X T=%04X L=%d\n", i,
2734 &txq->drv[i], 2734 &txq->drv[i],
2735 (void*)txq->nic + i * sizeof(struct ipw2100_bd), 2735 (u32)(txq->nic + i * sizeof(struct ipw2100_bd)),
2736 (void*)txq->drv[i].host_addr, 2736 txq->drv[i].host_addr,
2737 txq->drv[i].buf_length); 2737 txq->drv[i].buf_length);
2738 2738
2739 if (packet->type == DATA) { 2739 if (packet->type == DATA) {
2740 i = (i + 1) % txq->entries; 2740 i = (i + 1) % txq->entries;
2741 2741
2742 IPW_DEBUG_TX( 2742 IPW_DEBUG_TX(
2743 "TX%d V=%p P=%p T=%p L=%d\n", i, 2743 "TX%d V=%p P=%04X T=%04X L=%d\n", i,
2744 &txq->drv[i], 2744 &txq->drv[i],
2745 (void*)txq->nic + i * 2745 (u32)(txq->nic + i *
2746 sizeof(struct ipw2100_bd), 2746 sizeof(struct ipw2100_bd)),
2747 (void*)txq->drv[i].host_addr, 2747 (u32)txq->drv[i].host_addr,
2748 txq->drv[i].buf_length); 2748 txq->drv[i].buf_length);
2749 } 2749 }
2750 } 2750 }
@@ -4212,7 +4212,7 @@ static void bd_queue_initialize(
4212{ 4212{
4213 IPW_DEBUG_INFO("enter\n"); 4213 IPW_DEBUG_INFO("enter\n");
4214 4214
4215 IPW_DEBUG_INFO("initializing bd queue at virt=%p, phys=%08x\n", q->drv, q->nic); 4215 IPW_DEBUG_INFO("initializing bd queue at virt=%p, phys=%08x\n", q->drv, (u32)q->nic);
4216 4216
4217 write_register(priv->net_dev, base, q->nic); 4217 write_register(priv->net_dev, base, q->nic);
4218 write_register(priv->net_dev, size, q->entries); 4218 write_register(priv->net_dev, size, q->entries);
@@ -8431,7 +8431,7 @@ int ipw2100_get_firmware(struct ipw2100_priv *priv, struct ipw2100_fw *fw)
8431 priv->net_dev->name, fw_name); 8431 priv->net_dev->name, fw_name);
8432 return rc; 8432 return rc;
8433 } 8433 }
8434 IPW_DEBUG_INFO("firmware data %p size %d\n", fw->fw_entry->data, 8434 IPW_DEBUG_INFO("firmware data %p size %zd\n", fw->fw_entry->data,
8435 fw->fw_entry->size); 8435 fw->fw_entry->size);
8436 8436
8437 ipw2100_mod_firmware_load(fw); 8437 ipw2100_mod_firmware_load(fw);