[PATCH] mm: page_cgroup needs linux/vmalloc.h for vmalloc_node()/vfree(). - Kernel

This is a discussion on [PATCH] mm: page_cgroup needs linux/vmalloc.h for vmalloc_node()/vfree(). - Kernel ; Trivial build fix for: CC mm/page_cgroup.o mm/page_cgroup.c: In function 'init_section_page_cgroup': mm/page_cgroup.c:111: error: implicit declaration of function 'vmalloc_node' mm/page_cgroup.c:111: warning: assignment makes pointer from integer without a cast mm/page_cgroup.c: In function '__free_page_cgroup': mm/page_cgroup.c:140: error: implicit declaration of function 'vfree' make[1]: *** ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] mm: page_cgroup needs linux/vmalloc.h for vmalloc_node()/vfree().

  1. [PATCH] mm: page_cgroup needs linux/vmalloc.h for vmalloc_node()/vfree().

    Trivial build fix for:

    CC mm/page_cgroup.o
    mm/page_cgroup.c: In function 'init_section_page_cgroup':
    mm/page_cgroup.c:111: error: implicit declaration of function 'vmalloc_node'
    mm/page_cgroup.c:111: warning: assignment makes pointer from integer without a cast
    mm/page_cgroup.c: In function '__free_page_cgroup':
    mm/page_cgroup.c:140: error: implicit declaration of function 'vfree'
    make[1]: *** [mm/page_cgroup.o] Error 1
    make: *** [mm/page_cgroup.o] Error 2

    Signed-off-by: Paul Mundt

    ---

    mm/page_cgroup.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c
    index 5d86550..78242b4 100644
    --- a/mm/page_cgroup.c
    +++ b/mm/page_cgroup.c
    @@ -5,6 +5,7 @@
    #include
    #include
    #include
    +#include

    static void __meminit
    __init_page_cgroup(struct page_cgroup *pc, unsigned long pfn)
    --
    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/

  2. Re: [PATCH] mm: page_cgroup needs linux/vmalloc.h for vmalloc_node()/vfree().

    On Tue, 21 Oct 2008 12:36:23 +0900
    Paul Mundt wrote:

    > Trivial build fix for:
    >
    > CC mm/page_cgroup.o
    > mm/page_cgroup.c: In function 'init_section_page_cgroup':
    > mm/page_cgroup.c:111: error: implicit declaration of function 'vmalloc_node'
    > mm/page_cgroup.c:111: warning: assignment makes pointer from integer without a cast
    > mm/page_cgroup.c: In function '__free_page_cgroup':
    > mm/page_cgroup.c:140: error: implicit declaration of function 'vfree'
    > make[1]: *** [mm/page_cgroup.o] Error 1
    > make: *** [mm/page_cgroup.o] Error 2
    >
    > Signed-off-by: Paul Mundt
    >

    Oh, thanks

    Reviewed-by: KAMEZAWA Hiroyuki

    > ---
    >
    > mm/page_cgroup.c | 1 +
    > 1 file changed, 1 insertion(+)
    >
    > diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c
    > index 5d86550..78242b4 100644
    > --- a/mm/page_cgroup.c
    > +++ b/mm/page_cgroup.c
    > @@ -5,6 +5,7 @@
    > #include
    > #include
    > #include
    > +#include
    >
    > static void __meminit
    > __init_page_cgroup(struct page_cgroup *pc, unsigned long pfn)
    >


    --
    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/

+ Reply to Thread