[PATCH] kernel/resource: Fix reserve_region_with_split() section mismatch. - Kernel

This is a discussion on [PATCH] kernel/resource: Fix reserve_region_with_split() section mismatch. - Kernel ; reserve_region_with_split() calls in to __reserve_region_with_split(), which is an __init function. All callers of reserve_region_with_split() are also __init functions, so make it __init too. Signed-off-by: Paul Mundt --- kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [PATCH] kernel/resource: Fix reserve_region_with_split() section mismatch.

  1. [PATCH] kernel/resource: Fix reserve_region_with_split() section mismatch.

    reserve_region_with_split() calls in to __reserve_region_with_split(),
    which is an __init function. All callers of reserve_region_with_split()
    are also __init functions, so make it __init too.

    Signed-off-by: Paul Mundt

    ---

    kernel/resource.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/kernel/resource.c b/kernel/resource.c
    index 4089d12..7fec0e4 100644
    --- a/kernel/resource.c
    +++ b/kernel/resource.c
    @@ -571,7 +571,7 @@ static void __init __reserve_region_with_split(struct resource *root,

    }

    -void reserve_region_with_split(struct resource *root,
    +void __init reserve_region_with_split(struct resource *root,
    resource_size_t start, resource_size_t end,
    const char *name)
    {
    --
    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] kernel/resource: Fix reserve_region_with_split() section mismatch.


    * Paul Mundt wrote:

    > reserve_region_with_split() calls in to __reserve_region_with_split(),
    > which is an __init function. [...]


    applied to tip/core/urgent, thanks Paul!

    > [...] All callers of reserve_region_with_split() are also __init
    > functions, so make it __init too.


    .... there's a single caller of that function ;-)

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