]> Git Repo - linux.git/commitdiff
nfs: fix build error in nfsroot with initconst
authorSam Ravnborg <[email protected]>
Tue, 26 May 2009 18:51:00 +0000 (14:51 -0400)
committerTrond Myklebust <[email protected]>
Tue, 26 May 2009 18:51:00 +0000 (14:51 -0400)
fix build error with latest kbuild adjustments to initconst.

The commit a447c0932445f92ce6f4c1bd020f62c5097a7842 ("vfs: Use
const for kernel parser table") changed:

    static match_table_t __initdata tokens = {
to
    static match_table_t __initconst tokens = {

But the missing const causes popwerpc to fail with latest
updates to __initconst like this:

fs/nfs/nfsroot.c:400: error: __setup_str_nfs_root_setup causes a section type conflict
fs/nfs/nfsroot.c:400: error: __setup_str_nfs_root_setup causes a section type conflict

The bug is only present with kbuild-next.
Following patch has been build tested.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Steven Whitehouse <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Acked-by: Jan Beulich <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
fs/nfs/nfsroot.c

index d9ef602fbc5a893f60d087fe00a2744b7fdcd9e4..e3ed5908820baf878df5db43a1bfbd9a28798009 100644 (file)
@@ -129,7 +129,7 @@ enum {
        Opt_err
 };
 
-static match_table_t __initconst tokens = {
+static const match_table_t tokens __initconst = {
        {Opt_port, "port=%u"},
        {Opt_rsize, "rsize=%u"},
        {Opt_wsize, "wsize=%u"},
This page took 0.061258 seconds and 4 git commands to generate.