lkml.org 
[lkml]   [2006]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectswapper_space export
    I was trying to compile the Unionfs[1] to get it up to sync it up with
    the kernel developments from the past few months. Anyway, long story
    short...swapper_space (defined in mm/swap_state.c) is not exported
    anymore (git commit: 4936967374c1ad0eb3b734f24875e2484c3786cc). This
    apparently is not an issue for most modules. Troubles arise when the
    modules include mm.h or any of its relatives.

    One simply gets a linker error about swapper_space not being defined.
    The problem is that it is used in mm.h.

    I included a reverse patch to export the symbol again.

    Josef "Jeff" Sipek.

    [1] http://unionfs.filesystems.org


    Export swapper_space because several include files reference it.

    Signed-off-by: Josef Sipek <jsipek@cs.sunysb.edu>

    --- a/mm/swap_state.c.orig 2006-05-16 18:23:38.000000000 -0400
    +++ b/mm/swap_state.c 2006-05-16 18:22:57.000000000 -0400
    @@ -43,6 +43,7 @@
    .i_mmap_nonlinear = LIST_HEAD_INIT(swapper_space.i_mmap_nonlinear),
    .backing_dev_info = &swap_backing_dev_info,
    };
    +EXPORT_SYMBOL(swapper_space);

    #define INC_CACHE_INFO(x) do { swap_cache_info.x++; } while (0)

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-05-17 01:27    [W:0.023 / U:30.436 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site