Commit 748ae569 authored by Adrian Bunk's avatar Adrian Bunk Committed by James Bottomley

[PATCH] integer constants in sym53c8xx_2/sym_glue.c too big for int

The patch below postfixes a constant in sym53c8xx_2/sym_glue.c with ULL,
on 32 bit archs this constant is too big for an int.
parent f2350eae
...@@ -1863,7 +1863,7 @@ static int sym_setup_bus_dma_mask(hcb_p np) ...@@ -1863,7 +1863,7 @@ static int sym_setup_bus_dma_mask(hcb_p np)
#if SYM_CONF_DMA_ADDRESSING_MODE == 1 #if SYM_CONF_DMA_ADDRESSING_MODE == 1
#define PciDmaMask 0xffffffffff #define PciDmaMask 0xffffffffff
#elif SYM_CONF_DMA_ADDRESSING_MODE == 2 #elif SYM_CONF_DMA_ADDRESSING_MODE == 2
#define PciDmaMask 0xffffffffffffffff #define PciDmaMask 0xffffffffffffffffULL
#endif #endif
if (np->features & FE_DAC) { if (np->features & FE_DAC) {
if (!pci_set_dma_mask(np->s.device, PciDmaMask)) { if (!pci_set_dma_mask(np->s.device, PciDmaMask)) {
......
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