lkml.org 
[lkml]   [2007]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/6] Suspend: Fix compilation warning for CONFIG_SUSPEND unset
    Date
    Suspend: Make debug facility depend on CONFIG_SUSPEND

    Make the new suspend debug facility code depend on CONFIG_SUSPEND,
    as appropriate, to remove the compiler warning printed when CONFIG_PM is set
    and CONFIG_SUSPEND is not set.

    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    ---
    kernel/power/main.c | 5 ++---
    1 file changed, 2 insertions(+), 3 deletions(-)

    Index: linux-2.6/kernel/power/main.c
    ===================================================================
    --- linux-2.6.orig/kernel/power/main.c
    +++ linux-2.6/kernel/power/main.c
    @@ -52,6 +52,8 @@ int pm_notifier_call_chain(unsigned long

    #endif /* CONFIG_PM_SLEEP */

    +#ifdef CONFIG_SUSPEND
    +
    #ifdef CONFIG_PM_DEBUG
    int pm_test_level = TEST_NONE;

    @@ -125,9 +127,6 @@ power_attr(pm_test);
    static inline int suspend_test(int level) { return 0; }
    #endif /* !CONFIG_PM_DEBUG */

    -
    -#ifdef CONFIG_SUSPEND
    -
    /* This is just an arbitrary number */
    #define FREE_PAGE_NUMBER (100)

    -
    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-11-27 00:21    [W:0.021 / U:118.972 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site