netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: [PATCH 2/5] net: seq_operations should be const
Date: Tue, 01 Sep 2009 22:25:02 -0700	[thread overview]
Message-ID: <20090902052538.353868084@vyatta.com> (raw)
In-Reply-To: 20090902052500.808557262@vyatta.com

[-- Attachment #1: const-seq-ops.patch --]
[-- Type: text/plain, Size: 978 bytes --]

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>


---
 net/ipv6/ip6mr.c |    2 +-
 net/key/af_key.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/net/ipv6/ip6mr.c	2009-09-01 21:37:24.504215187 -0700
+++ b/net/ipv6/ip6mr.c	2009-09-01 22:22:22.223174601 -0700
@@ -204,7 +204,7 @@ static int ip6mr_vif_seq_show(struct seq
 	return 0;
 }
 
-static struct seq_operations ip6mr_vif_seq_ops = {
+static const struct seq_operations ip6mr_vif_seq_ops = {
 	.start = ip6mr_vif_seq_start,
 	.next  = ip6mr_vif_seq_next,
 	.stop  = ip6mr_vif_seq_stop,
--- a/net/key/af_key.c	2009-09-01 21:37:24.520180026 -0700
+++ b/net/key/af_key.c	2009-09-01 22:22:22.230177877 -0700
@@ -3705,7 +3705,7 @@ static void pfkey_seq_stop(struct seq_fi
 	read_unlock(&pfkey_table_lock);
 }
 
-static struct seq_operations pfkey_seq_ops = {
+static const struct seq_operations pfkey_seq_ops = {
 	.start	= pfkey_seq_start,
 	.next	= pfkey_seq_next,
 	.stop	= pfkey_seq_stop,

-- 


  parent reply	other threads:[~2009-09-02  5:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-02  5:25 [PATCH 0/5] More const ops cleanups Stephen Hemminger
2009-09-02  5:25 ` [PATCH 1/5] netdev: drivers should make ethtool_ops const Stephen Hemminger
     [not found]   ` <20090902052538.276324751-ZtmgI6mnKB3QT0dZR+AlfA@public.gmane.org>
2009-09-02 13:53     ` John W. Linville
2009-09-02  5:25 ` Stephen Hemminger [this message]
2009-09-02  5:25 ` [PATCH 3/5] tcp: MD5 operations should be const Stephen Hemminger
2009-09-02  5:25 ` [PATCH 4/5] inet: inet_connection_sock_af_ops const Stephen Hemminger
2009-09-02  5:25 ` [PATCH 5/5] net: file_operations should be const Stephen Hemminger
2009-09-02  8:55   ` Samuel Ortiz
2009-09-02 13:53   ` John W. Linville
2009-09-02  7:46 ` [PATCH 0/5] More const ops 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=20090902052538.353868084@vyatta.com \
    --to=shemminger@vyatta.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).