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] fs : mark nibblemap const
Date: Fri, 13 Jul 2007 12:26:10 +0200	[thread overview]
Message-ID: <20070713102610.GA16087@muff.macqel.be> (raw)

Hi all

Mark nibblemap const

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

diff -r 6c0a10cc415a fs/affs/bitmap.c
--- a/fs/affs/bitmap.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/fs/affs/bitmap.c	Fri Jul 13 12:21:14 2007 +0200
@@ -11,7 +11,7 @@
 
 /* This is, of course, shamelessly stolen from fs/minix */
 
-static int nibblemap[] = { 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4 };
+static const int nibblemap[] = { 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4 };
 
 static u32
 affs_count_free_bits(u32 blocksize, const void *data)
diff -r 6c0a10cc415a fs/ext2/balloc.c
--- a/fs/ext2/balloc.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/fs/ext2/balloc.c	Fri Jul 13 12:21:14 2007 +0200
@@ -522,7 +522,7 @@ io_error:
 
 #ifdef EXT2FS_DEBUG
 
-static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
+static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
 
 unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars)
 {
diff -r 6c0a10cc415a fs/ext3/bitmap.c
--- a/fs/ext3/bitmap.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/fs/ext3/bitmap.c	Fri Jul 13 12:21:14 2007 +0200
@@ -13,7 +13,7 @@
 
 #ifdef EXT3FS_DEBUG
 
-static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
+static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
 
 unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
 {
diff -r 6c0a10cc415a fs/ext4/bitmap.c
--- a/fs/ext4/bitmap.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/fs/ext4/bitmap.c	Fri Jul 13 12:21:14 2007 +0200
@@ -13,7 +13,7 @@
 
 #ifdef EXT4FS_DEBUG
 
-static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
+static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
 
 unsigned long ext4_count_free (struct buffer_head * map, unsigned int numchars)
 {
diff -r 6c0a10cc415a fs/minix/bitmap.c
--- a/fs/minix/bitmap.c	Thu Jul  5 16:10:16 2007 -0700
+++ b/fs/minix/bitmap.c	Fri Jul 13 12:21:14 2007 +0200
@@ -17,7 +17,7 @@
 #include <linux/bitops.h>
 #include <linux/sched.h>
 
-static int nibblemap[] = { 4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0 };
+static const int nibblemap[] = { 4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0 };
 
 static unsigned long count_free(struct buffer_head *map[], unsigned numblocks, __u32 numbits)
 {

             reply	other threads:[~2007-07-13 10:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-13 10:26 Philippe De Muyter [this message]
2007-09-02 19:40 ` Hint needed : how to debug sempahore's problem Philippe De Muyter
2007-09-02 19:47   ` Alexander Shishkin

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=20070713102610.GA16087@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®