vfs: Use const for kernel parser table

This is a much better version of a previous patch to make the parser
tables constant. Rather than changing the typedef, we put the "const" in
all the various places where its required, allowing the __initconst
exception for nfsroot which was the cause of the previous trouble.

This was posted for review some time ago and I believe its been in -mm
since then.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Alexander Viro <aviro@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Steven Whitehouse
2008-10-13 10:46:57 +01:00
committed by Linus Torvalds
부모 54cebc68c8
커밋 a447c09324
38개의 변경된 파일43개의 추가작업 그리고 43개의 파일을 삭제

파일 보기

@@ -919,7 +919,7 @@ enum {
Opt_inode_readahead_blks
};
static match_table_t tokens = {
static const match_table_t tokens = {
{Opt_bsd_df, "bsddf"},
{Opt_minix_df, "minixdf"},
{Opt_grpid, "grpid"},