* pull request: sfc-next 2012-01-30
@ 2012-01-30 18:20 Ben Hutchings
2012-01-30 18:21 ` [PATCH net-next 1/2] sfc: MTD: Leave the DEBUG macro alone Ben Hutchings
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ben Hutchings @ 2012-01-30 18:20 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-net-drivers, Joe Perches
[-- Attachment #1: Type: text/plain, Size: 895 bytes --]
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(-)
--
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.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH net-next 1/2] sfc: MTD: Leave the DEBUG macro alone
2012-01-30 18:20 pull request: sfc-next 2012-01-30 Ben Hutchings
@ 2012-01-30 18:21 ` Ben Hutchings
2012-01-30 18:22 ` [PATCH net-next 2/2] sfc: Use a more sensible cast in efx_rx_buf_offset() Ben Hutchings
2012-01-30 20:47 ` pull request: sfc-next 2012-01-30 David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2012-01-30 18:21 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-net-drivers
<linux/mtd/mtd.h> no longer defines DEBUG so we do not need to
un-define it here.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
---
drivers/net/ethernet/sfc/mtd.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c
index eff49da..79c1922 100644
--- a/drivers/net/ethernet/sfc/mtd.c
+++ b/drivers/net/ethernet/sfc/mtd.c
@@ -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>
--
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.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next 2/2] sfc: Use a more sensible cast in efx_rx_buf_offset()
2012-01-30 18:20 pull request: sfc-next 2012-01-30 Ben Hutchings
2012-01-30 18:21 ` [PATCH net-next 1/2] sfc: MTD: Leave the DEBUG macro alone Ben Hutchings
@ 2012-01-30 18:22 ` Ben Hutchings
2012-01-30 20:47 ` pull request: sfc-next 2012-01-30 David Miller
2 siblings, 0 replies; 4+ messages in thread
From: Ben Hutchings @ 2012-01-30 18:22 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-net-drivers, Joe Perches
This 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.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
---
drivers/net/ethernet/sfc/rx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c
index a33aef2..1dfda5e 100644
--- a/drivers/net/ethernet/sfc/rx.c
+++ b/drivers/net/ethernet/sfc/rx.c
@@ -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)
--
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.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: pull request: sfc-next 2012-01-30
2012-01-30 18:20 pull request: sfc-next 2012-01-30 Ben Hutchings
2012-01-30 18:21 ` [PATCH net-next 1/2] sfc: MTD: Leave the DEBUG macro alone Ben Hutchings
2012-01-30 18:22 ` [PATCH net-next 2/2] sfc: Use a more sensible cast in efx_rx_buf_offset() Ben Hutchings
@ 2012-01-30 20:47 ` David Miller
2 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2012-01-30 20:47 UTC (permalink / raw)
To: bhutchings; +Cc: netdev, linux-net-drivers, joe
From: Ben Hutchings <bhutchings@solarflare.com>
Date: Mon, 30 Jan 2012 18:20:27 +0000
> 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.
Pulled, thanks Ben.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-30 20:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30 18:20 pull request: sfc-next 2012-01-30 Ben Hutchings
2012-01-30 18:21 ` [PATCH net-next 1/2] sfc: MTD: Leave the DEBUG macro alone Ben Hutchings
2012-01-30 18:22 ` [PATCH net-next 2/2] sfc: Use a more sensible cast in efx_rx_buf_offset() Ben Hutchings
2012-01-30 20:47 ` pull request: sfc-next 2012-01-30 David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).