Commit d78404cc authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: sxg: fix compiler warnings.

sizeof() isn't an unsigned long :(
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c6c25ed0
...@@ -460,8 +460,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -460,8 +460,8 @@ static int sxg_allocate_resources(p_adapter_t adapter)
/* fails. If we hit a minimum, fail. */ /* fails. If we hit a minimum, fail. */
for (;;) { for (;;) {
DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __func__, DBG_ERROR("%s Allocate XmtRings size[%x]\n", __func__,
(sizeof(SXG_XMT_RING) * 1)); (unsigned int)(sizeof(SXG_XMT_RING) * 1));
/* Start with big items first - receive and transmit rings. At the moment */ /* Start with big items first - receive and transmit rings. At the moment */
/* I'm going to keep the ring size fixed and adjust the number of */ /* I'm going to keep the ring size fixed and adjust the number of */
...@@ -477,8 +477,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -477,8 +477,8 @@ static int sxg_allocate_resources(p_adapter_t adapter)
} }
memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1);
DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __func__, DBG_ERROR("%s Allocate RcvRings size[%x]\n", __func__,
(sizeof(SXG_RCV_RING) * 1)); (unsigned int)(sizeof(SXG_RCV_RING) * 1));
adapter->RcvRings = adapter->RcvRings =
pci_alloc_consistent(adapter->pcidev, pci_alloc_consistent(adapter->pcidev,
sizeof(SXG_RCV_RING) * 1, sizeof(SXG_RCV_RING) * 1,
...@@ -538,8 +538,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -538,8 +538,8 @@ static int sxg_allocate_resources(p_adapter_t adapter)
return (STATUS_RESOURCES); return (STATUS_RESOURCES);
} }
DBG_ERROR("%s Allocate EventRings size[%lx]\n", __func__, DBG_ERROR("%s Allocate EventRings size[%x]\n", __func__,
(sizeof(SXG_EVENT_RING) * RssIds)); (unsigned int)(sizeof(SXG_EVENT_RING) * RssIds));
/* Allocate event queues. */ /* Allocate event queues. */
adapter->EventRings = pci_alloc_consistent(adapter->pcidev, adapter->EventRings = pci_alloc_consistent(adapter->pcidev,
...@@ -569,8 +569,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) ...@@ -569,8 +569,8 @@ static int sxg_allocate_resources(p_adapter_t adapter)
} }
memset(adapter->Isr, 0, sizeof(u32) * IsrCount); memset(adapter->Isr, 0, sizeof(u32) * IsrCount);
DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n", DBG_ERROR("%s Allocate shared XMT ring zero index location size[%x]\n",
__func__, sizeof(u32)); __func__, (unsigned int)sizeof(u32));
/* Allocate shared XMT ring zero index location */ /* Allocate shared XMT ring zero index location */
adapter->XmtRingZeroIndex = pci_alloc_consistent(adapter->pcidev, adapter->XmtRingZeroIndex = pci_alloc_consistent(adapter->pcidev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment