lkml.org 
[lkml]   [2007]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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.

    Sam

    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)
    __releases(kernel_lock)
    {
    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 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: 2007-05-11 23:17    [W:0.027 / U:0.784 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site