All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ibmveth: Remove unused page_offset macro
@ 2020-03-04  3:54 Matthew Wilcox
  2020-03-06  1:38 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox @ 2020-03-04  3:54 UTC (permalink / raw)
  To: Thomas Falcon, netdev

From: Matthew Wilcox (Oracle) <willy@infradead.org>

We already have a function called page_offset(), and this macro
is unused, so just delete it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

diff --git a/drivers/net/ethernet/ibm/ibmveth.c b/drivers/net/ethernet/ibm/ibmveth.c
index 84121aab7ff1..4cad94ac9bc9 100644
--- a/drivers/net/ethernet/ibm/ibmveth.c
+++ b/drivers/net/ethernet/ibm/ibmveth.c
@@ -978,8 +978,6 @@ static int ibmveth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 	return -EOPNOTSUPP;
 }
 
-#define page_offset(v) ((unsigned long)(v) & ((1 << 12) - 1))
-
 static int ibmveth_send(struct ibmveth_adapter *adapter,
 			union ibmveth_buf_desc *descs, unsigned long mss)
 {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ibmveth: Remove unused page_offset macro
  2020-03-04  3:54 [PATCH] ibmveth: Remove unused page_offset macro Matthew Wilcox
@ 2020-03-06  1:38 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-03-06  1:38 UTC (permalink / raw)
  To: willy; +Cc: tlfalcon, netdev

From: Matthew Wilcox <willy@infradead.org>
Date: Tue, 3 Mar 2020 19:54:55 -0800

> From: Matthew Wilcox (Oracle) <willy@infradead.org>
> 
> We already have a function called page_offset(), and this macro
> is unused, so just delete it.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

Applied to net-next, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-06  1:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04  3:54 [PATCH] ibmveth: Remove unused page_offset macro Matthew Wilcox
2020-03-06  1:38 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.