Aaron Lu
2013-Sep-06 07:41 UTC
[PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
On 09/06/2013 03:20 PM, Amit Shah wrote:> On (Fri) 06 Sep 2013 [10:28:36], Aaron Lu wrote: >> >> The virtio_pci_freeze/restore are defined under CONFIG_PM but is used >> by SET_SYSTEM_SLEEP_PM_OPS macro, which is defined under >> CONFIG_PM_SLEEP. So if CONFIG_PM_SLEEP is not cofigured but >> CONFIG_PM_RUNTIME is, the following warning message appeared: >> >> drivers/virtio/virtio_pci.c:770:12: warning: ?virtio_pci_freeze? defined but not used [-Wunused-function] >> static int virtio_pci_freeze(struct device *dev) >> ^ >> drivers/virtio/virtio_pci.c:790:12: warning: ?virtio_pci_restore? defined but not used [-Wunused-function] >> static int virtio_pci_restore(struct device *dev) >> ^ >> Fix it by changing CONFIG_PM to CONFIG_PM_SLEEP. >> >> Signed-off-by: Aaron Lu <aaron.lu at intel.com> >> --- >> drivers/virtio/virtio_pci.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > While you're at it, can you update the virtio drivers as well?No problem, I think I'll send a separate patch for them on top of this one, since they do not cause compile warnings. Thanks, Aaron> > drivers/block/virtio_blk.c > drivers/char/hw_random/virtio_rng.c > drivers/char/virtio_console.c > drivers/net/virtio_net.c > drivers/scsi/virtio_scsi.c > drivers/virtio/virtio_balloon.c > > Thanks, > > Amit >
Amit Shah
2013-Sep-06 08:07 UTC
[PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
On (Fri) 06 Sep 2013 [15:41:36], Aaron Lu wrote:> On 09/06/2013 03:20 PM, Amit Shah wrote: > > On (Fri) 06 Sep 2013 [10:28:36], Aaron Lu wrote: > >> > >> The virtio_pci_freeze/restore are defined under CONFIG_PM but is used > >> by SET_SYSTEM_SLEEP_PM_OPS macro, which is defined under > >> CONFIG_PM_SLEEP. So if CONFIG_PM_SLEEP is not cofigured but > >> CONFIG_PM_RUNTIME is, the following warning message appeared: > >> > >> drivers/virtio/virtio_pci.c:770:12: warning: ?virtio_pci_freeze? defined but not used [-Wunused-function] > >> static int virtio_pci_freeze(struct device *dev) > >> ^ > >> drivers/virtio/virtio_pci.c:790:12: warning: ?virtio_pci_restore? defined but not used [-Wunused-function] > >> static int virtio_pci_restore(struct device *dev) > >> ^ > >> Fix it by changing CONFIG_PM to CONFIG_PM_SLEEP. > >> > >> Signed-off-by: Aaron Lu <aaron.lu at intel.com> > >> --- > >> drivers/virtio/virtio_pci.c | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > > > > While you're at it, can you update the virtio drivers as well? > > No problem, I think I'll send a separate patch for them on top of this > one, since they do not cause compile warnings.Yes, thanks. Amit
Seemingly Similar Threads
- [PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
- [PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
- [PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
- [PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM
- [PATCH] virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM