]> Pileus Git - ~andy/linux/commitdiff
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc...
authorDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2012 20:47:57 +0000 (15:47 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2012 20:47:57 +0000 (15:47 -0500)
drivers/net/ethernet/sfc/mtd.c
drivers/net/ethernet/sfc/rx.c

index eff49da458ed06bdb0f4501ce5d010c27d203707..79c1922720470cf33d0a74e77343399be85eb3d9 100644 (file)
@@ -10,7 +10,6 @@
 
 #include <linux/bitops.h>
 #include <linux/module.h>
-#undef DEBUG /* <linux/mtd/mtd.h> has its own use for DEBUG */
 #include <linux/mtd/mtd.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
index a33aef25ead944f20b3600609fbf933b9a408d80..1dfda5e279198baa287afd98504e77838385331c 100644 (file)
@@ -98,7 +98,7 @@ static inline unsigned int efx_rx_buf_offset(struct efx_nic *efx,
        /* Offset is always within one page, so we don't need to consider
         * the page order.
         */
-       return ((__force unsigned long) buf->dma_addr & (PAGE_SIZE - 1)) +
+       return ((unsigned int) buf->dma_addr & (PAGE_SIZE - 1)) +
                efx->type->rx_buffer_hash_size;
 }
 static inline unsigned int efx_rx_buf_size(struct efx_nic *efx)