mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philippe De Muyter <phdm@macqel.be>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] net : make ip_tos2prio const
Date: Fri, 6 Jul 2007 13:30:44 +0200	[thread overview]
Message-ID: <20070706113044.GA12699@muff.macqel.be> (raw)

Hi all,

Make ip_tos2prio `const'.

Signed-off-by: Philippe De Muyter <phdm@macqel.be>

diff -r 6c0a10cc415a include/net/route.h
--- a/include/net/route.h	Thu Jul  5 16:10:16 2007 -0700
+++ b/include/net/route.h	Fri Jul  6 13:23:35 2007 +0200
@@ -136,7 +136,7 @@ static inline void ip_rt_put(struct rtab
 
 #define IPTOS_RT_MASK	(IPTOS_TOS_MASK & ~3)
 
-extern __u8 ip_tos2prio[16];
+extern const __u8 ip_tos2prio[16];
 
 static inline char rt_tos2priority(u8 tos)
 {
diff -r 6c0a10cc415a net/ipv4/route.c
--- a/net/ipv4/route.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/net/ipv4/route.c	Fri Jul  6 13:23:35 2007 +0200
@@ -168,7 +168,7 @@ static struct dst_ops ipv4_dst_ops = {
 
 #define ECN_OR_COST(class)	TC_PRIO_##class
 
-__u8 ip_tos2prio[16] = {
+const __u8 ip_tos2prio[16] = {
 	TC_PRIO_BESTEFFORT,
 	ECN_OR_COST(FILLER),
 	TC_PRIO_BESTEFFORT,

             reply	other threads:[~2007-07-06 11:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06 11:30 Philippe De Muyter [this message]
2007-07-09 22:33 ` 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=20070706113044.GA12699@muff.macqel.be \
    --to=phdm@macqel.be \
    --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

all inboxes | Powered by JetHome®