From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Steve French <stfrench@microsoft.com>,
Sasha Levin <sashal@kernel.org>,
pc@cjr.nz, dchinner@redhat.com, brauner@kernel.org, vl@samba.org,
chenxiaosong2@huawei.com, pc@manguebit.com,
sprasad@microsoft.com, lsahlber@redhat.com,
bharathsm@microsoft.com, abelova@astralinux.ru,
ematsumiya@suse.de, dhowells@redhat.com
Subject: [PATCH AUTOSEL 5.15 17/18] smb3: correct places where ENOTSUPP is used instead of preferred EOPNOTSUPP
Date: Sun, 24 Sep 2023 09:18:54 -0400 [thread overview]
Message-ID: <20230924131857.1276330-17-sashal@kernel.org> (raw)
In-Reply-To: <20230924131857.1276330-1-sashal@kernel.org>
From: Steve French <stfrench@microsoft.com>
[ Upstream commit ebc3d4e44a7e05457825e03d0560153687265523 ]
checkpatch flagged a few places with:
WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP
Also fixed minor typo
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/cifs/inode.c | 2 +-
fs/cifs/smb2ops.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 82848412ad852..30a9a89c141bb 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -2531,7 +2531,7 @@ int cifs_fiemap(struct inode *inode, struct fiemap_extent_info *fei, u64 start,
}
cifsFileInfo_put(cfile);
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
int cifs_truncate_page(struct address_space *mapping, loff_t from)
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 560c4ababfe1a..d8ce079ba9091 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -266,7 +266,7 @@ smb2_adjust_credits(struct TCP_Server_Info *server,
cifs_server_dbg(VFS, "request has less credits (%d) than required (%d)",
credits->value, new_val);
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
spin_lock(&server->req_lock);
@@ -1308,7 +1308,7 @@ smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
/* Use a fudge factor of 256 bytes in case we collide
* with a different set_EAs command.
*/
- if(CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
+ if (CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
MAX_SMB2_CLOSE_RESPONSE_SIZE - 256 <
used_len + ea_name_len + ea_value_len + 1) {
rc = -ENOSPC;
@@ -4822,7 +4822,7 @@ handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid,
if (shdr->Command != SMB2_READ) {
cifs_server_dbg(VFS, "only big read responses are supported\n");
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
if (server->ops->is_session_expired &&
--
2.40.1
next prev parent reply other threads:[~2023-09-24 13:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-24 13:18 [PATCH AUTOSEL 5.15 01/18] parisc: sba: Fix compile warning wrt list of SBA devices Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 02/18] parisc: iosapic.c: Fix sparse warnings Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 03/18] parisc: drivers: Fix sparse warning Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 04/18] parisc: irq: Make irq_stack_union static to avoid " Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 05/18] scsi: qedf: Add synchronization between I/O completions and abort Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 06/18] scsi: ufs: core: Move __ufshcd_send_uic_cmd() outside host_lock Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 07/18] selftests/ftrace: Correctly enable event in instance-event.tc Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 08/18] ring-buffer: Avoid softlockup in ring_buffer_resize() Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 09/18] btrfs: improve error message after failure to add delayed dir index item Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 10/18] selftests: fix dependency checker script Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 11/18] ring-buffer: Do not attempt to read past "commit" Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 12/18] platform/mellanox: mlxbf-bootctl: add NET dependency into Kconfig Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 13/18] drm/amd/display: Don't check registers, if using AUX BL control Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 14/18] drm/amdgpu: Handle null atom context in VBIOS info ioctl Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 15/18] scsi: pm80xx: Use phy-specific SAS address when sending PHY_START command Sasha Levin
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 16/18] scsi: pm80xx: Avoid leaking tags when processing OPC_INB_SET_CONTROLLER_CONFIG command Sasha Levin
2023-09-24 13:18 ` Sasha Levin [this message]
2023-09-24 13:18 ` [PATCH AUTOSEL 5.15 18/18] ata: libata-eh: do not clear ATA_PFLAG_EH_PENDING in ata_eh_reset() Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230924131857.1276330-17-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=abelova@astralinux.ru \
--cc=bharathsm@microsoft.com \
--cc=brauner@kernel.org \
--cc=chenxiaosong2@huawei.com \
--cc=dchinner@redhat.com \
--cc=dhowells@redhat.com \
--cc=ematsumiya@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=lsahlber@redhat.com \
--cc=pc@cjr.nz \
--cc=pc@manguebit.com \
--cc=sprasad@microsoft.com \
--cc=stable@vger.kernel.org \
--cc=stfrench@microsoft.com \
--cc=vl@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox