diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-21 13:41:45 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-22 12:56:38 -0400 |
| commit | d78404cc24dfababd0b594cdca3ecfdd8710869d (patch) | |
| tree | f87e3871c64f0f565875bdfabba6a8a3dd6556c8 | |
| parent | c6c25ed0bcd8c5d6caf6091e2714b7ccc87316a6 (diff) | |
Staging: sxg: fix compiler warnings.
sizeof() isn't an unsigned long :(
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/staging/sxg/sxg.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/sxg/sxg.c b/drivers/staging/sxg/sxg.c index fe935e236859..5272a18e2043 100644 --- a/drivers/staging/sxg/sxg.c +++ b/drivers/staging/sxg/sxg.c | |||
| @@ -460,8 +460,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
| 460 | /* fails. If we hit a minimum, fail. */ | 460 | /* fails. If we hit a minimum, fail. */ |
| 461 | 461 | ||
| 462 | for (;;) { | 462 | for (;;) { |
| 463 | DBG_ERROR("%s Allocate XmtRings size[%lx]\n", __func__, | 463 | DBG_ERROR("%s Allocate XmtRings size[%x]\n", __func__, |
| 464 | (sizeof(SXG_XMT_RING) * 1)); | 464 | (unsigned int)(sizeof(SXG_XMT_RING) * 1)); |
| 465 | 465 | ||
| 466 | /* Start with big items first - receive and transmit rings. At the moment */ | 466 | /* Start with big items first - receive and transmit rings. At the moment */ |
| 467 | /* I'm going to keep the ring size fixed and adjust the number of */ | 467 | /* 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 | } | 477 | } |
| 478 | memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); | 478 | memset(adapter->XmtRings, 0, sizeof(SXG_XMT_RING) * 1); |
| 479 | 479 | ||
| 480 | DBG_ERROR("%s Allocate RcvRings size[%lx]\n", __func__, | 480 | DBG_ERROR("%s Allocate RcvRings size[%x]\n", __func__, |
| 481 | (sizeof(SXG_RCV_RING) * 1)); | 481 | (unsigned int)(sizeof(SXG_RCV_RING) * 1)); |
| 482 | adapter->RcvRings = | 482 | adapter->RcvRings = |
| 483 | pci_alloc_consistent(adapter->pcidev, | 483 | pci_alloc_consistent(adapter->pcidev, |
| 484 | sizeof(SXG_RCV_RING) * 1, | 484 | sizeof(SXG_RCV_RING) * 1, |
| @@ -538,8 +538,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
| 538 | return (STATUS_RESOURCES); | 538 | return (STATUS_RESOURCES); |
| 539 | } | 539 | } |
| 540 | 540 | ||
| 541 | DBG_ERROR("%s Allocate EventRings size[%lx]\n", __func__, | 541 | DBG_ERROR("%s Allocate EventRings size[%x]\n", __func__, |
| 542 | (sizeof(SXG_EVENT_RING) * RssIds)); | 542 | (unsigned int)(sizeof(SXG_EVENT_RING) * RssIds)); |
| 543 | 543 | ||
| 544 | /* Allocate event queues. */ | 544 | /* Allocate event queues. */ |
| 545 | adapter->EventRings = pci_alloc_consistent(adapter->pcidev, | 545 | adapter->EventRings = pci_alloc_consistent(adapter->pcidev, |
| @@ -569,8 +569,8 @@ static int sxg_allocate_resources(p_adapter_t adapter) | |||
| 569 | } | 569 | } |
| 570 | memset(adapter->Isr, 0, sizeof(u32) * IsrCount); | 570 | memset(adapter->Isr, 0, sizeof(u32) * IsrCount); |
| 571 | 571 | ||
| 572 | DBG_ERROR("%s Allocate shared XMT ring zero index location size[%lx]\n", | 572 | DBG_ERROR("%s Allocate shared XMT ring zero index location size[%x]\n", |
| 573 | __func__, sizeof(u32)); | 573 | __func__, (unsigned int)sizeof(u32)); |
| 574 | 574 | ||
| 575 | /* Allocate shared XMT ring zero index location */ | 575 | /* Allocate shared XMT ring zero index location */ |
| 576 | adapter->XmtRingZeroIndex = pci_alloc_consistent(adapter->pcidev, | 576 | adapter->XmtRingZeroIndex = pci_alloc_consistent(adapter->pcidev, |
