hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/fs/ocfs2/xattr.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /* -*- mode: c; c-basic-offset: 8; -*-
23 * vim: noexpandtab sw=8 ts=8 sts=0:
34 *
....@@ -8,15 +9,6 @@
89 * CREDITS:
910 * Lots of code in this file is copy from linux/fs/ext3/xattr.c.
1011 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
11
- *
12
- * This program is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public
14
- * License version 2 as published by the Free Software Foundation.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
- * General Public License for more details.
2012 */
2113
2214 #include <linux/capability.h>
....@@ -1219,7 +1211,7 @@
12191211 struct ocfs2_xattr_value_root *xv;
12201212 size_t size;
12211213 int ret = -ENODATA, name_offset, name_len, i;
1222
- int uninitialized_var(block_off);
1214
+ int block_off;
12231215
12241216 xs->bucket = ocfs2_xattr_bucket_new(inode);
12251217 if (!xs->bucket) {
....@@ -7250,7 +7242,8 @@
72507242 */
72517243 static int ocfs2_xattr_security_get(const struct xattr_handler *handler,
72527244 struct dentry *unused, struct inode *inode,
7253
- const char *name, void *buffer, size_t size)
7245
+ const char *name, void *buffer, size_t size,
7246
+ int flags)
72547247 {
72557248 return ocfs2_xattr_get(inode, OCFS2_XATTR_INDEX_SECURITY,
72567249 name, buffer, size);
....@@ -7322,7 +7315,8 @@
73227315 */
73237316 static int ocfs2_xattr_trusted_get(const struct xattr_handler *handler,
73247317 struct dentry *unused, struct inode *inode,
7325
- const char *name, void *buffer, size_t size)
7318
+ const char *name, void *buffer, size_t size,
7319
+ int flags)
73267320 {
73277321 return ocfs2_xattr_get(inode, OCFS2_XATTR_INDEX_TRUSTED,
73287322 name, buffer, size);
....@@ -7348,7 +7342,8 @@
73487342 */
73497343 static int ocfs2_xattr_user_get(const struct xattr_handler *handler,
73507344 struct dentry *unused, struct inode *inode,
7351
- const char *name, void *buffer, size_t size)
7345
+ const char *name, void *buffer, size_t size,
7346
+ int flags)
73527347 {
73537348 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
73547349