]> err.no Git - linux-2.6/commitdiff
ucc_geth: fix compilation
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 13 Sep 2007 15:23:33 +0000 (19:23 +0400)
committerJeff Garzik <jeff@garzik.org>
Sat, 15 Sep 2007 23:32:01 +0000 (19:32 -0400)
Currently qe_bd_t is used in the macro call -- dma_unmap_single,
which is a no-op on PPC32, thus error is hidden today. Starting
with 2.6.24, macro will be replaced by the empty static function,
and erroneous use of qe_bd_t will trigger compilation error.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ucc_geth.c

index 12e01b24105a27f12c122f2be971a34226a50ff7..9a38dfe45f8f2c9cc316a59901a6627e6275b0e9 100644 (file)
@@ -2148,7 +2148,7 @@ static void ucc_geth_memclean(struct ucc_geth_private *ugeth)
                for (j = 0; j < ugeth->ug_info->bdRingLenTx[i]; j++) {
                        if (ugeth->tx_skbuff[i][j]) {
                                dma_unmap_single(NULL,
-                                                ((qe_bd_t *)bd)->buf,
+                                                ((struct qe_bd *)bd)->buf,
                                                 (in_be32((u32 *)bd) &
                                                  BD_LENGTH_MASK),
                                                 DMA_TO_DEVICE);