ARM: OMAP3: Fix omap3_l3_block_irq warning when CONFIG_BUG is not set
[firefly-linux-kernel-4.4.55.git] / mm / shmem.c
index d576b84d913c40c89232b5709360b6e4abce4dad..585bd220a21ee4e5eefaec2b9c46dc9ae68fde98 100644 (file)
@@ -2439,11 +2439,9 @@ static struct dentry *shmem_fh_to_dentry(struct super_block *sb,
        return dentry;
 }
 
-static int shmem_encode_fh(struct dentry *dentry, __u32 *fh, int *len,
-                               int connectable)
+static int shmem_encode_fh(struct inode *inode, __u32 *fh, int *len,
+                               struct inode *parent)
 {
-       struct inode *inode = dentry->d_inode;
-
        if (*len < 3) {
                *len = 3;
                return 255;