From: Stephen Hemminger <shemminger@vyatta•com>
To: David Miller <davem@davemloft•net>,
Sathya Perla <sathya.perla@emulex•com>,
Chris Metcalf <cmetcalf@tilera•com>
Cc: netdev@vger•kernel.org
Subject: [PATCH 3/3] netdev: make net_device_ops const
Date: Thu, 05 Jan 2012 21:10:25 -0800 [thread overview]
Message-ID: <20120106051051.161455988@vyatta.com> (raw)
In-Reply-To: 20120106051022.712047093@vyatta.com
[-- Attachment #1: netdev-ops-const3.patch --]
[-- Type: text/plain, Size: 1111 bytes --]
More drivers where net_device_ops should be const.
Signed-off-by: Stephen Hemminger <shemminger@vyatta•com>
---
drivers/net/ethernet/emulex/benet/be_main.c | 2 +-
drivers/net/ethernet/tile/tilepro.c | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
--- a/drivers/net/ethernet/emulex/benet/be_main.c 2012-01-03 08:06:38.418232216 -0800
+++ b/drivers/net/ethernet/emulex/benet/be_main.c 2012-01-05 08:17:04.567161286 -0800
@@ -3080,7 +3080,7 @@ fw_exit:
return status;
}
-static struct net_device_ops be_netdev_ops = {
+static const struct net_device_ops be_netdev_ops = {
.ndo_open = be_open,
.ndo_stop = be_close,
.ndo_start_xmit = be_xmit,
--- a/drivers/net/ethernet/tile/tilepro.c 2011-12-23 21:06:15.724436897 -0800
+++ b/drivers/net/ethernet/tile/tilepro.c 2012-01-05 08:16:03.870511570 -0800
@@ -2260,8 +2260,7 @@ static int tile_net_get_mac(struct net_d
return 0;
}
-
-static struct net_device_ops tile_net_ops = {
+static const struct net_device_ops tile_net_ops = {
.ndo_open = tile_net_open,
.ndo_stop = tile_net_stop,
.ndo_start_xmit = tile_net_tx,
next prev parent reply other threads:[~2012-01-06 5:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 5:10 [PATCH 0/3] more cleanups Stephen Hemminger
2012-01-06 5:10 ` [PATCH 1/3] usbnet: make ethtool_ops const Stephen Hemminger
[not found] ` <20120106051050.936477418-ZtmgI6mnKB3QT0dZR+AlfA@public.gmane.org>
2012-01-06 13:34 ` Greg KH
2012-01-06 5:10 ` [PATCH 2/3] bcm63xx: " Stephen Hemminger
2012-01-06 5:10 ` Stephen Hemminger [this message]
2012-01-09 22:05 ` [PATCH 0/3] more cleanups David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120106051051.161455988@vyatta.com \
--to=shemminger@vyatta$(echo .)com \
--cc=cmetcalf@tilera$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=netdev@vger$(echo .)kernel.org \
--cc=sathya.perla@emulex$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox