• Sam Ravnborg's avatar
    nfs: fix build error in nfsroot with initconst · d0367a50
    Sam Ravnborg authored
    fix build error with latest kbuild adjustments to initconst.
    
    The commit a447c093 ("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: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: Steven Whitehouse <swhiteho@redhat.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Acked-by: default avatarJan Beulich <jbeulich@novell.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    d0367a50
nfsroot.c 14.4 KB