From: Joe Perches <joe@perches.com> Date: 2011-07-01 01:09:29
Unused symbols waste space.
Commit 0e34e93177fb
"(netpoll: add generic support for bridge and bonding devices)"
added the symbol more than a year ago with the promise of "future use".
Because it is so far unused, remove it for now.
It can be easily readded if or when it actually needs to be used.
cc: WANG Cong <redacted>
Signed-off-by: Joe Perches <joe@perches.com>
---
include/linux/netpoll.h | 2 --
net/core/netpoll.c | 6 ++----
2 files changed, 2 insertions(+), 6 deletions(-)
From: Cong Wang <hidden> Date: 2011-07-01 03:27:02
于 2011年07月01日 09:08, Joe Perches 写道:
cc: WANG Cong<redacted>
Joe Perches (2):
netpoll: Remove unused EXPORT_SYMBOLs of netpoll_poll and netpoll_poll_dev
netpoll: Remove trivial wrapper function netpoll_poll
include/linux/netpoll.h | 2 --
net/core/netpoll.c | 13 +++----------
2 files changed, 3 insertions(+), 12 deletions(-)
I am fine with patch 1/2, but not 2/2, since it is trivial,
why touch it? With netpoll_poll(), we don't need to explore the
details of struct netpoll, I think it is nice to have it.
BTW, you can kill the export of netpoll_send_skb_on_dev() too.
Thanks.
From: Joe Perches <joe@perches.com> Date: 2011-07-01 03:35:51
On Fri, 2011-07-01 at 11:26 +0800, Cong Wang wrote:
于 2011年07月01日 09:08, Joe Perches 写道:
quoted
cc: WANG Cong<redacted>
Joe Perches (2):
netpoll: Remove unused EXPORT_SYMBOLs of netpoll_poll and netpoll_poll_dev
netpoll: Remove trivial wrapper function netpoll_poll
include/linux/netpoll.h | 2 --
net/core/netpoll.c | 13 +++----------
2 files changed, 3 insertions(+), 12 deletions(-)
I am fine with patch 1/2, but not 2/2, since it is trivial,
why touch it? With netpoll_poll(), we don't need to explore the
details of struct netpoll, I think it is nice to have it.
Shrug. Neither is used. Keep things minimal.
BTW, you can kill the export of netpoll_send_skb_on_dev() too.
Not too sure about that.
It's used in netpoll.h by netpoll_send_skb.
It could be called from anywhere.
It's currently called/used by bonding.h.
cheers, Joe
From: David Miller <davem@davemloft.net> Date: 2011-07-04 03:02:33
From: Joe Perches <joe@perches.com>
Date: Thu, 30 Jun 2011 18:08:57 -0700
Unused symbols waste space.
Commit 0e34e93177fb
"(netpoll: add generic support for bridge and bonding devices)"
added the symbol more than a year ago with the promise of "future use".
Because it is so far unused, remove it for now.
It can be easily readded if or when it actually needs to be used.
cc: WANG Cong <redacted>
Signed-off-by: Joe Perches <joe@perches.com>
From: Harry Wei <hidden> Date: 2011-07-04 06:53:44
On Thu, Jun 30, 2011 at 06:08:57PM -0700, Joe Perches wrote:
quoted hunk
Unused symbols waste space.
Commit 0e34e93177fb
"(netpoll: add generic support for bridge and bonding devices)"
added the symbol more than a year ago with the promise of "future use".
Because it is so far unused, remove it for now.
It can be easily readded if or when it actually needs to be used.
cc: WANG Cong <redacted>
Signed-off-by: Joe Perches <joe@perches.com>
---
include/linux/netpoll.h | 2 --
net/core/netpoll.c | 6 ++----
2 files changed, 2 insertions(+), 6 deletions(-)
Hi Joe,
You have removed the function declaration in include/linux/netpoll.h.
And you changed the function like
static void netpoll_poll_dev(...)
{
...
}
But i don't know its usage.
The 'static' before this function just says the active area of 'netpoll_poll_dev'
is in the file net/core/netpoll.c. What is the purpose? Could you please tell me?
Thanks in advance.
From: Joe Perches <joe@perches.com> Date: 2011-07-04 07:46:33
On Mon, 2011-07-04 at 14:53 +0800, Harry Wei wrote:
On Thu, Jun 30, 2011 at 06:08:57PM -0700, Joe Perches wrote:
quoted
Unused symbols waste space.
Commit 0e34e93177fb
"(netpoll: add generic support for bridge and bonding devices)"
added the symbol more than a year ago with the promise of "future use".
Because it is so far unused, remove it for now.
It can be easily readded if or when it actually needs to be used.
cc: WANG Cong <redacted>
Signed-off-by: Joe Perches <joe@perches.com>
---
include/linux/netpoll.h | 2 --
net/core/netpoll.c | 6 ++----
2 files changed, 2 insertions(+), 6 deletions(-)
You have removed the function declaration in include/linux/netpoll.h.
Because it's unused by anything in the tree
but netpoll.c
And you changed the function like
static void netpoll_poll_dev(...)
{
...
}
But i don't know its usage.
It's now a local function to netpoll.c
The 'static' before this function just says the active area of 'netpoll_poll_dev'
is in the file net/core/netpoll.c. What is the purpose? Could you please tell me?
It prods the device to perform network work.
/* Process pending work on NIC */
ops->ndo_poll_controller(dev);
poll_napi(dev);
From: Harry Wei <hidden> Date: 2011-07-04 09:27:57
On Mon, Jul 04, 2011 at 12:46:29AM -0700, Joe Perches wrote:
[...]
quoted
You have removed the function declaration in include/linux/netpoll.h.
Because it's unused by anything in the tree
but netpoll.c
Hmmmm..., so sorry. I misunderstood your 'unused', which i thought
there was also no use in netpoll.c :-/
quoted
And you changed the function like
static void netpoll_poll_dev(...)
{
...
}
But i don't know its usage.
It's now a local function to netpoll.c
Yeah, it's true.
quoted
The 'static' before this function just says the active area of 'netpoll_poll_dev'
is in the file net/core/netpoll.c. What is the purpose? Could you please tell me?
It prods the device to perform network work.
/* Process pending work on NIC */
ops->ndo_poll_controller(dev);
poll_napi(dev);
Yeah, i will read the codes.
Thanks so much
Harry Wei