Commit ed6cd41f authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr] gcc 3.3 cleanups

Mostly adding 'ULL' modifier to 64-bit constants.
parent 9be2217a
...@@ -1846,7 +1846,7 @@ static int __devinit cp_init_one (struct pci_dev *pdev, ...@@ -1846,7 +1846,7 @@ static int __devinit cp_init_one (struct pci_dev *pdev,
} }
/* Configure DMA attributes. */ /* Configure DMA attributes. */
if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffff)) { if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffffULL)) {
cp->pci_using_dac = 1; cp->pci_using_dac = 1;
} else { } else {
rc = pci_set_dma_mask(pdev, (u64) 0xffffffff); rc = pci_set_dma_mask(pdev, (u64) 0xffffffff);
......
...@@ -243,7 +243,6 @@ enum TFC_bits { ...@@ -243,7 +243,6 @@ enum TFC_bits {
VLANTagInsert = 0x0000000010000000, VLANTagInsert = 0x0000000010000000,
TFDDone = 0x80000000, TFDDone = 0x80000000,
VIDShift = 32, VIDShift = 32,
CFI = 0x0000100000000000,
UsePriorityShift = 48, UsePriorityShift = 48,
}; };
......
...@@ -1769,7 +1769,7 @@ static int __devinit ns83820_init_one(struct pci_dev *pci_dev, const struct pci_ ...@@ -1769,7 +1769,7 @@ static int __devinit ns83820_init_one(struct pci_dev *pci_dev, const struct pci_
int using_dac = 0; int using_dac = 0;
/* See if we can set the dma mask early on; failure is fatal. */ /* See if we can set the dma mask early on; failure is fatal. */
if (TRY_DAC && !pci_set_dma_mask(pci_dev, 0xffffffffffffffff)) { if (TRY_DAC && !pci_set_dma_mask(pci_dev, 0xffffffffffffffffULL)) {
using_dac = 1; using_dac = 1;
} else if (!pci_set_dma_mask(pci_dev, 0xffffffff)) { } else if (!pci_set_dma_mask(pci_dev, 0xffffffff)) {
using_dac = 0; using_dac = 0;
......
...@@ -6740,7 +6740,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, ...@@ -6740,7 +6740,7 @@ static int __devinit tg3_init_one(struct pci_dev *pdev,
} }
/* Configure DMA attributes. */ /* Configure DMA attributes. */
if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffff)) { if (!pci_set_dma_mask(pdev, (u64) 0xffffffffffffffffULL)) {
pci_using_dac = 1; pci_using_dac = 1;
if (pci_set_consistent_dma_mask(pdev, if (pci_set_consistent_dma_mask(pdev,
(u64) 0xffffffffffffffff)) { (u64) 0xffffffffffffffff)) {
......
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