Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp870350lqt; Fri, 7 Jun 2024 00:36:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJXmstvfgW2CW47dIXnirSn1G98lLkme2dJUSzvJeRAZINtiQB5b4or0tDjAbeFj6KP7tedIHFoBRvnC6whxBCsNFG46P/bQrVpy5q2Q== X-Google-Smtp-Source: AGHT+IFfHOPuqxI3wkPYFrPYaqlHY+YedDjogO8uyT2qDS5K+2CltGUFXV1ewYsBp9r8ef8+4i0B X-Received: by 2002:a05:6e02:1a69:b0:374:a5f0:d580 with SMTP id e9e14a558f8ab-37580309953mr23591895ab.5.1717745792729; Fri, 07 Jun 2024 00:36:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717745792; cv=pass; d=google.com; s=arc-20160816; b=xhhjGLiVcivq4si2qxvg8m3Ibcs9HvxAArdlxyzCh74YLti81MKciQtzlkLeDF4G6/ ASZ0W+4WvCU9bpy4o1iQ+T8IEkLnh9Unr12Y7zrFAprwEepjoY1u2bsSYNCHOj+QLNFx TVsksATOWQ/WzUDxVeBQg1/LzAWEpspsAqjIfSCmofVzyh21dkontl/getr8NEQZIujJ GQvK31oWE6HCGLY94HFEznflXz73kRkKA8/+5yEDkw3LdvGqiPaCl3wOnUWoH1tE74rn nJ3n70gOU07CYWCm4onMDdZwqIZROP7b+Iy5g1WMwW+FaIODKA6OghmJrmUwJtgYuAZO b5qA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=DctDY5wpYKdA8rU+Ryw9aKqZwgCO7G1RtPicZ+uP11I=; fh=b07OPnfy+T8nUHeBcNO0yRKxqoL6VonZWTzUFW/LLPY=; b=Nl7rSBX9OXkiryVrrtsqy6kQ8HoP901uQNyWJJ+T+X63jb6gZveLhigWm7kPgE7tMZ n3VOZb7KyfUAuAdXvTWQltczVAt47tANs4uYPfb5jTawOLymc4iwTOAL4cm2IiHtczvi zhwwATzz7Nt6pjHzNbd8AvLCiQcGwTcsWQodPlwPvuGcGQX7DQM0j8tVf9nqctHX78cX X4YtWGV6bPaGqDj0zOF7TIhRYOKWc0LMw1fyDIzRoSTFUft+xPF5GsEYlt3qtbRVvirD 3Fla1PrBppkyoRoe7jARcc10zdkLL8wUzEi0vi/LeZ0kn1Xn+TkocIpCYCIWO2XLB1HL QZOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kRuCUUPE; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-205530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262bfe47si1954410a12.410.2024.06.07.00.36.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 00:36:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=kRuCUUPE; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-205530-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205530-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C92D2B236D0 for ; Fri, 7 Jun 2024 07:30:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04900154C05; Fri, 7 Jun 2024 07:30:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="kRuCUUPE" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68D5A225D6; Fri, 7 Jun 2024 07:30:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745441; cv=none; b=Stpz0vvNR86/KkG0K8n/UQ9/abSgDd0nUMQxCC1DWpwvSbONISEqbq66/1TgOqkiJH7L1jlNl2Z5hp6gRaXjtJMw4rVqXRcFyzpC9IStojpWnzE+tzTLEEyQla5EkS13Z9uDyNrUu1r72ahwApADtbCrwSRvWFpugmUFrlLqcEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745441; c=relaxed/simple; bh=YAjMVZ3ggIgJ5SUYbEnnK+9a9PzdMaGXk8lNx4zAoiE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qndULc2vpNQ2sAQzRL5gnGWbP9kYMDSUE4tL0elILwKH2Azl2ggi/3d2CDspSvgGrNuGQY6AtpqfAXkTuSMw2L1qCcV4YJf5qrh0YAz13o8iyjLblmcNbN/nXSTHFFj2fIPy9MFHXhP+LA6GvrqwjIa0RXtechQovYx9gQWNfhc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=kRuCUUPE; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 0B6B84000D; Fri, 7 Jun 2024 07:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1717745437; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DctDY5wpYKdA8rU+Ryw9aKqZwgCO7G1RtPicZ+uP11I=; b=kRuCUUPEgzsga3OUcOm1MIJUwXeh7c11OGGlDPMr3YEE6fRPvwJW45hYwkiKwpSYtkwXom BXRyHvqsUW4DxMKJeuGVCzGNaF3WXLn2HCkS1FZtAsUX9cJBwq/GMLvG7LWdZSrI+PJ0AP RPg4ZTXpTaGRjfC2R8VLpcMRAtHC1mNsbp5ozDAanMM0SlWI+7aZhgKuh03vwxepxmgmft nLMO9/OK+G4wFxIKI9tPBKBXeiQ5bijm3RMmc7h9HRGIP/uzSDPQp+/mSdw0k1kuzkPQ0C GuCZnaP7CSZmGzcGZrZ0gmUIJ9XsrWnRr9R6c1KsmxsP94M/NeCgPpU/y5onhA== From: Kory Maincent Date: Fri, 07 Jun 2024 09:30:18 +0200 Subject: [PATCH net-next v2 1/8] net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240607-feature_poe_power_cap-v2-1-c03c2deb83ab@bootlin.com> References: <20240607-feature_poe_power_cap-v2-0-c03c2deb83ab@bootlin.com> In-Reply-To: <20240607-feature_poe_power_cap-v2-0-c03c2deb83ab@bootlin.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Donald Hunter , Oleksij Rempel Cc: Thomas Petazzoni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Dent Project , kernel@pengutronix.de, Kory Maincent , Andrew Lunn X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: "Kory Maincent (Dent Project)" ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by checkpatch script. Reviewed-by: Andrew Lunn Signed-off-by: Kory Maincent --- include/linux/pse-pd/pse.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/pse-pd/pse.h b/include/linux/pse-pd/pse.h index 6d07c95dabb9..6eec24ffa866 100644 --- a/include/linux/pse-pd/pse.h +++ b/include/linux/pse-pd/pse.h @@ -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) -- 2.34.1