Skip to contentSkip to conversation

net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP

PATCH Applied Kory Maincent 2 participants 2 messages Jun 10, 2024 – Jun 12, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP

ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by checkpatch script.

Fixes 18ff0bcda6d1 ("ethtool: add interface to interact with Ethernet Power Equipment")
---
 include/linux/pse-pd/pse.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/pse-pd/pse.h +2 -2
index 6d07c95dabb9..6eec24ffa866 100644
@@ -167,14 +167,14 @@ static inline int pse_ethtool_get_status(struct pse_control *psec,
 					 struct netlink_ext_ack *extack,
 					 struct pse_control_status *status)
 {
-	return -ENOTSUPP;
+	return -EOPNOTSUPP;
 }
 
 static inline int pse_ethtool_set_config(struct pse_control *psec,
 					 struct netlink_ext_ack *extack,
 					 const struct pse_control_config *config)
 {
-	return -ENOTSUPP;
+	return -EOPNOTSUPP;
 }
 
 static inline bool pse_has_podl(struct pse_control *psec)
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Mon, 10 Jun 2024 10:34:26 +0200 you wrote:

ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by checkpatch script.

Fixes 18ff0bcda6d1 ("ethtool: add interface to interact with Ethernet Power Equipment")

[...]

Here is the summary with links:
- [net] net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP

    https://git.kernel.org/netdev/net/c/144ba8580bcb

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html