]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/pipe.c
constify dentry_operations: rest
[mirror_ubuntu-artful-kernel.git] / fs / pipe.c
index 14f502b89cf5c2eb46cf8f2fb476d055a7fb118a..6ddf05209a4ca2d32f93772b4a74a3a570242203 100644 (file)
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -870,7 +870,7 @@ static char *pipefs_dname(struct dentry *dentry, char *buffer, int buflen)
                                dentry->d_inode->i_ino);
 }
 
-static struct dentry_operations pipefs_dentry_operations = {
+static const struct dentry_operations pipefs_dentry_operations = {
        .d_delete       = pipefs_delete_dentry,
        .d_dname        = pipefs_dname,
 };
@@ -1034,11 +1034,6 @@ int do_pipe_flags(int *fd, int flags)
        return error;
 }
 
-int do_pipe(int *fd)
-{
-       return do_pipe_flags(fd, 0);
-}
-
 /*
  * sys_pipe() is the normal C calling standard for creating
  * a pipe. It's not the way Unix traditionally does this, though.