[PATCH -next] fuse: fix virtio_fs.c build warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Be consistent in using CONFIG_PM_SLEEP for the freeze and restore
functions to avoid build warnings.

../fs/fuse/virtio_fs.c:501:12: warning: ‘virtio_fs_restore’ defined but not used [-Wunused-function]
 static int virtio_fs_restore(struct virtio_device *vdev)
            ^~~~~~~~~~~~~~~~~
../fs/fuse/virtio_fs.c:496:12: warning: ‘virtio_fs_freeze’ defined but not used [-Wunused-function]
 static int virtio_fs_freeze(struct virtio_device *vdev)
            ^~~~~~~~~~~~~~~~

Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Miklos Szeredi <miklos@xxxxxxxxxx>
Cc: linux-fsdevel@xxxxxxxxxxxxxxx
---
 fs/fuse/virtio_fs.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20190830.orig/fs/fuse/virtio_fs.c
+++ linux-next-20190830/fs/fuse/virtio_fs.c
@@ -492,7 +492,7 @@ static void virtio_fs_remove(struct virt
 	vdev->priv = NULL;
 }
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
 static int virtio_fs_freeze(struct virtio_device *vdev)
 {
 	return 0; /* TODO */
@@ -502,7 +502,7 @@ static int virtio_fs_restore(struct virt
 {
 	return 0; /* TODO */
 }
-#endif /* CONFIG_PM */
+#endif /* CONFIG_PM_SLEEP */
 
 const static struct virtio_device_id id_table[] = {
 	{ VIRTIO_ID_FS, VIRTIO_DEV_ANY_ID },





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux