[lkml]   [2007]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: [RFC PATCH] kbuild: silence section mismatch warnings
    Use the new markers to avoid the warnings from init/main (arm + i386)
    and mm/slab (all archs).

    With this the noise level is dratiscally reduced.


    diff --git a/init/main.c b/init/main.c
    index 1940fa7..1d8ea31 100644
    --- a/init/main.c
    +++ b/init/main.c
    @@ -423,7 +423,7 @@ static void __init setup_command_line(char *command_line)
    * gcc-3.4 accidentally inlines this function, so use noinline.

    -static void noinline rest_init(void)
    +static void __init_refok noinline rest_init(void)
    int pid;
    diff --git a/mm/slab.c b/mm/slab.c
    index 944b205..ef60834 100644
    --- a/mm/slab.c
    +++ b/mm/slab.c
    @@ -1960,7 +1960,7 @@ static void slab_destroy(struct kmem_cache *cachep, struct slab *slabp)
    * For setting up all the kmem_list3s for cache whose buffer_size is same as
    * size of kmem_list3.
    -static void __init set_up_list3s(struct kmem_cache *cachep, int index)
    +static void __init_refok set_up_list3s(struct kmem_cache *cachep, int index)
    int node;

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2007-05-11 23:17    [W:0.023 / U:9.228 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site