summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2026-06-11 10:34:51 +0300
committerSteve French <stfrench@microsoft.com>2026-06-14 23:12:24 +0300
commit2e4f0d9815e93771a8002199fee2e3cd196811a7 (patch)
treeff7ad3e2c52666fe2a068f9aa1326bb07b158fe5
parent3ecad5de621ef538cbd63ae7075fddcc426dcd74 (diff)
downloadlinux-2e4f0d9815e93771a8002199fee2e3cd196811a7.tar.xz
smb/client: clean up a type issue in cifs_xattr_get()
The cifs_xattr_get() function returns type int, not ssize_t so declare "rc" as int as well. This has no effect on runtime. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/smb/client/xattr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/smb/client/xattr.c b/fs/smb/client/xattr.c
index 23227f2f9428..5091f6c0d7fe 100644
--- a/fs/smb/client/xattr.c
+++ b/fs/smb/client/xattr.c
@@ -272,7 +272,7 @@ static int cifs_xattr_get(const struct xattr_handler *handler,
struct dentry *dentry, struct inode *inode,
const char *name, void *value, size_t size)
{
- ssize_t rc = -EOPNOTSUPP;
+ int rc = -EOPNOTSUPP;
unsigned int xid;
struct super_block *sb = dentry->d_sb;
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
@@ -354,7 +354,7 @@ static int cifs_xattr_get(const struct xattr_handler *handler,
inode, full_path, &acllen, extra_info);
if (IS_ERR(pacl)) {
rc = PTR_ERR(pacl);
- cifs_dbg(VFS, "%s: error %zd getting sec desc\n",
+ cifs_dbg(VFS, "%s: error %d getting sec desc\n",
__func__, rc);
} else {
if (value) {