[2.6 patch] drivers/xen/balloon.c: make a function static - Kernel

This is a discussion on [2.6 patch] drivers/xen/balloon.c: make a function static - Kernel ; This patch makes the needlessly global balloon_set_new_target() static. Signed-off-by: Adrian Bunk --- 58bea00a0c55ed7e3252bc5f13e8c755f4bc9fe4 diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index ab25ba6..d109639 100644 --- a/drivers/xen/balloon.c +++ b/drivers/xen/balloon.c @@ -368,7 +368,7 @@ static void balloon_process(struct work_struct *work) } /* Resets the Xen limit, sets ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: [2.6 patch] drivers/xen/balloon.c: make a function static

  1. [2.6 patch] drivers/xen/balloon.c: make a function static

    This patch makes the needlessly global balloon_set_new_target() static.

    Signed-off-by: Adrian Bunk

    ---
    58bea00a0c55ed7e3252bc5f13e8c755f4bc9fe4 diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
    index ab25ba6..d109639 100644
    --- a/drivers/xen/balloon.c
    +++ b/drivers/xen/balloon.c
    @@ -368,7 +368,7 @@ static void balloon_process(struct work_struct *work)
    }

    /* Resets the Xen limit, sets new target, and kicks off processing. */
    -void balloon_set_new_target(unsigned long target)
    +static void balloon_set_new_target(unsigned long target)
    {
    /* No need for lock. Not read-modify-write updates. */
    balloon_stats.hard_limit = ~0UL;

    --
    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: [2.6 patch] drivers/xen/balloon.c: make a function static

    * Adrian Bunk (bunk@kernel.org) wrote:
    > This patch makes the needlessly global balloon_set_new_target() static.


    Right, this is fine. Cruft left from merge.

    > Signed-off-by: Adrian Bunk


    Acked-by: Chris Wright
    --
    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