mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
fs: xattr_handler table should be const
The entries in xattr handler table should be immutable (ie const) like other operation tables. Later patches convert common filesystems. Uncoverted filesystems will still work, but will generate a compiler warning. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
18e9e5104f
commit
bb4354538e
6 changed files with 15 additions and 15 deletions
|
|
@ -2071,14 +2071,14 @@ static int shmem_xattr_security_set(struct dentry *dentry, const char *name,
|
|||
size, flags);
|
||||
}
|
||||
|
||||
static struct xattr_handler shmem_xattr_security_handler = {
|
||||
static const struct xattr_handler shmem_xattr_security_handler = {
|
||||
.prefix = XATTR_SECURITY_PREFIX,
|
||||
.list = shmem_xattr_security_list,
|
||||
.get = shmem_xattr_security_get,
|
||||
.set = shmem_xattr_security_set,
|
||||
};
|
||||
|
||||
static struct xattr_handler *shmem_xattr_handlers[] = {
|
||||
static const struct xattr_handler *shmem_xattr_handlers[] = {
|
||||
&generic_acl_access_handler,
|
||||
&generic_acl_default_handler,
|
||||
&shmem_xattr_security_handler,
|
||||
|
|
|
|||
Loading…
Reference in a new issue