• Andrew Morton's avatar
    [PATCH] Make inode_ops->setxattr value parameter const · 443bfb9d
    Andrew Morton authored
    Patch from Andreas Gruenbacher <agruen@suse.de>
    
    The setxattr inode operation is defined like this in 2.4 and 2.5:
    
            int (*setxattr) (struct dentry *dentry, const char *name,
                             void *value, size_t size, int flags);
    
    the original type of the value parameter was `const void *'; the const
    obviously has been lost at some point. The definition should be:
    
            int (*setxattr) (struct dentry *dentry, const char *name,
                             const void *value, size_t size, int flags);
    443bfb9d
xattr.c 30.2 KB