pull request: sfc-next 2012-01-30
Subsystems (3)
The following changes since commit 30088a25e9c4dc1f8bd5c48b14a18633441b5481:
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next (2012-01-29 16:11:26 -0500)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next.git for-davem
(commit 06e63c57acbb1df7c35ebe846ae416a8b88dfafa)
These address the review comments on Friday's changes.
Ben.
Ben Hutchings (2):
sfc: MTD: Leave the DEBUG macro alone
sfc: Use a more sensible cast in efx_rx_buf_offset()
drivers/net/ethernet/sfc/mtd.c | 1 - drivers/net/ethernet/sfc/rx.c | 2 +- 2 files changed, 1 insertions(+), 2 deletions(-)
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
PATCH 1/2 sfc: MTD: Leave the DEBUG macro alone
<linux/mtd/mtd.h> no longer defines DEBUG so we do not need to un-define it here.
--- drivers/net/ethernet/sfc/mtd.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/ethernet/sfc/mtd.c +0 -1
@@ -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>
Signature · 8 lines
1.7.7.5 -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
PATCH 2/2 sfc: Use a more sensible cast in efx_rx_buf_offset()
In reply to Ben HutchingsThis function returns the page offset of the buffer, which can be calculated based on either its DMA address or its virtual address. It used to use the virtual address and we would cast that to unsigned long, as anything smaller would result in a compiler warning. Now that it's using the DMA address we should use unsigned int, matching the return type. It is also unnecessary to use __force.
--- drivers/net/ethernet/sfc/rx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/sfc/rx.c +1 -1
@@ -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)
Signature · 7 lines
1.7.7.5 -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
David Miller
maintainerFrom: Ben Hutchings <[email protected]>
Date: Mon, 30 Jan 2012 18:20:27 +0000
Quoted 11 lines
The following changes since commit
30088a25e9c4dc1f8bd5c48b14a18633441b5481:Merge branch 'for-davem' of
git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next(2012-01-29 16:11:26 -0500)are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next.gitfor-davem(commit
06e63c57acbb1df7c35ebe846ae416a8b88dfafa)These address the review comments on Friday's changes.
Pulled, thanks Ben.