lkml.org 
[lkml]   [2002]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectmake idedisk_suspend()/idedisk_resume() conditional on CONFIG_SOFTWARE_SUSPEND
    ide-disk.c gets the following warning:

    drivers/ide/ide-disk.c:1614: warning: `idedisk_suspend' defined but not used
    drivers/ide/ide-disk.c:1651: warning: `idedisk_resume' defined but not used


    --- akpm-2.5.41-3/drivers/ide/ide-disk.c 2002-10-11 06:09:31.000000000 -0700
    +++ wli-2.5.41-3/drivers/ide/ide-disk.c 2002-10-11 06:53:58.000000000 -0700
    @@ -1610,6 +1610,7 @@
    #endif
    }

    +#ifdef CONFIG_SOFTWARE_SUSPEND
    static int idedisk_suspend(struct device *dev, u32 state, u32 level)
    {
    ide_drive_t *drive = dev->driver_data;
    @@ -1659,7 +1660,7 @@
    drive->blocked = 0;
    return 0;
    }
    -
    +#endif /* CONFIG_SOFTWARE_SUSPEND */

    /* This is just a hook for the overall driver tree.
    */
    -
    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: 2005-03-22 13:29    [W:0.023 / U:92.680 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site