Skip to contentSkip to conversation

drivers/block/sx8.c: fix warnings with -Wundef

PATCH New Adrian Bunk 1 participant 1 message Jul 22, 2005 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/block/sx8.c: fix warnings with -Wundef

This patch fixes the following warnings with -Wundef:

<-- snip -->

...
CC drivers/block/sx8.o
drivers/block/sx8.c:1585:5: warning: "IF_64BIT_DMA_IS_POSSIBLE" is not defined drivers/block/sx8.c:1604:5: warning: "IF_64BIT_DMA_IS_POSSIBLE" is not defined
...

<-- snip -->

drivers/block/sx8.c renamed from drivers/block/sx8.c.old +2 -2
@@ -1582,7 +1582,7 @@
 	if (rc)
 		goto err_out;
 
-#if IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */
+#ifdef IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */
 	rc = pci_set_dma_mask(pdev, DMA_64BIT_MASK);
 	if (!rc) {
 		rc = pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK);
@@ -1601,7 +1601,7 @@
 			goto err_out_regions;
 		}
 		pci_dac = 0;
-#if IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */
+#ifdef IF_64BIT_DMA_IS_POSSIBLE /* grrrr... */
 	}
 #endif