mm: frontswap: make all branches of if statement in put page consistent
[platform/adaptation/renesas_rcar/renesas_kernel.git] / fs / cifs / ioctl.c
index 4221b5e..6d2667f 100644 (file)
@@ -51,7 +51,15 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
        cifs_sb = CIFS_SB(inode->i_sb);
 
        switch (command) {
+               static bool warned = false;
                case CIFS_IOC_CHECKUMOUNT:
+                       if (!warned) {
+                               warned = true;
+                               cERROR(1, "the CIFS_IOC_CHECKMOUNT ioctl will "
+                                         "be deprecated in 3.7. Please "
+                                         "migrate away from the use of "
+                                         "umount.cifs");
+                       }
                        cFYI(1, "User unmount attempted");
                        if (cifs_sb->mnt_uid == current_uid())
                                rc = 0;