public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Harvey Harrison <harvey.harrison@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Benc <jbenc@suse.cz>, LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH-mm 1/5] mac80211: add const where possible in michael.[ch]
Date: Wed, 16 Apr 2008 16:24:24 -0700	[thread overview]
Message-ID: <1208388264.11920.124.camel@brick> (raw)

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
Andrew, 5 more cleanup patches for -mm on top of the 3 sent earlier
today.  Setting the stage for a bit more to come later.

 net/mac80211/michael.c |    4 ++--
 net/mac80211/michael.h |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/mac80211/michael.c b/net/mac80211/michael.c
index a9f5323..30b542e 100644
--- a/net/mac80211/michael.c
+++ b/net/mac80211/michael.c
@@ -27,7 +27,7 @@ static void michael_block(u32 val, struct michael_mic_ctx *mctx)
 }
 
 void michael_mic_init(struct michael_mic_ctx *mctx,
-		      u8 *key, u8 *da, u8 *sa, u8 priority)
+		      const u8 *key, const u8 *da, const u8 *sa, u8 priority)
 {
 	mctx->l = get_unaligned_le32(key);
 	mctx->r = get_unaligned_le32(key + 4);
@@ -40,7 +40,7 @@ void michael_mic_init(struct michael_mic_ctx *mctx,
 	michael_block(priority, mctx);
 }
 
-void michael_mic(struct michael_mic_ctx *mctx, u8 *data, size_t data_len)
+void michael_mic(struct michael_mic_ctx *mctx, const u8 *data, size_t data_len)
 {
 	u32 val;
 	size_t block, blocks, left;
diff --git a/net/mac80211/michael.h b/net/mac80211/michael.h
index 5976550..c1a0fc6 100644
--- a/net/mac80211/michael.h
+++ b/net/mac80211/michael.h
@@ -19,9 +19,9 @@ struct michael_mic_ctx {
 };
 
 extern void michael_mic_init(struct michael_mic_ctx *mctx,
-		 u8 *key, u8 *da, u8 *sa, u8 priority);
+		 const u8 *key, const u8 *da, const u8 *sa, u8 priority);
 
 extern void michael_mic(struct michael_mic_ctx *mctx,
-		 u8 *data, size_t data_len);
+		 const u8 *data, size_t data_len);
 
 #endif /* MICHAEL_H */
-- 
1.5.5.144.g3e42



                 reply	other threads:[~2008-04-16 23:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1208388264.11920.124.camel@brick \
    --to=harvey.harrison@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jbenc@suse.cz \
    --cc=linux-kernel@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