Skip to content

Commit febfcf9

Browse files
phdmLinus Torvalds
authored andcommitted
fs: mark nibblemap const
Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 55ca3e7 commit febfcf9

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

fs/affs/bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/* This is, of course, shamelessly stolen from fs/minix */
1313

14-
static int nibblemap[] = { 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4 };
14+
static const int nibblemap[] = { 0,1,1,2,1,2,2,3,1,2,2,3,2,3,3,4 };
1515

1616
static u32
1717
affs_count_free_bits(u32 blocksize, const void *data)

fs/ext2/balloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ int ext2_new_block(struct inode *inode, unsigned long goal,
522522

523523
#ifdef EXT2FS_DEBUG
524524

525-
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
525+
static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
526526

527527
unsigned long ext2_count_free (struct buffer_head * map, unsigned int numchars)
528528
{

fs/ext3/bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#ifdef EXT3FS_DEBUG
1515

16-
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
16+
static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
1717

1818
unsigned long ext3_count_free (struct buffer_head * map, unsigned int numchars)
1919
{

fs/ext4/bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#ifdef EXT4FS_DEBUG
1515

16-
static int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
16+
static const int nibblemap[] = {4, 3, 3, 2, 3, 2, 2, 1, 3, 2, 2, 1, 2, 1, 1, 0};
1717

1818
unsigned long ext4_count_free (struct buffer_head * map, unsigned int numchars)
1919
{

fs/minix/bitmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <linux/bitops.h>
1818
#include <linux/sched.h>
1919

20-
static int nibblemap[] = { 4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0 };
20+
static const int nibblemap[] = { 4,3,3,2,3,2,2,1,3,2,2,1,2,1,1,0 };
2121

2222
static unsigned long count_free(struct buffer_head *map[], unsigned numblocks, __u32 numbits)
2323
{

0 commit comments

Comments
 (0)