Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp666897lqb; Wed, 29 May 2024 07:16:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5BP3m0nPTz7zapBY4iPSMtBLgAnl4hwyx213289cnkuxrjcWgoczk7yaJhn43/ht8JGNH2fgPpRyyc4J84XdbLcWtHrgwzZ2UL5n2RA== X-Google-Smtp-Source: AGHT+IH4B/k67wZM6X2lrc2m38tL+OLB1s+9ADWuBTWg56DWLPyxnPzjTdmwuD5Lz7gyyHrRuQDZ X-Received: by 2002:a17:90a:8d01:b0:2bd:9032:5934 with SMTP id 98e67ed59e1d1-2bf5f7544ecmr13284550a91.49.1716992168139; Wed, 29 May 2024 07:16:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716992168; cv=pass; d=google.com; s=arc-20160816; b=AMyM7AL9kAYcQnLJ4ZhdSUA+c/8UFxVayJbF7cE2/kbH4zyaQgcjPPduEgJHmTh7Mc /qnNHyM+5iidEN1VmMVCCdZJGuoc1BE1dHHXAsjmvgPcTwx+OcAPvqMGqmneqWQRAFDH PMLwaH2HDQpNC9RVPLCFEhp5U+G1LWI7g6b1q45cK7iXfafJzzvIt57t4Hx9LPsXsdMb OU0lO1nJBw4tz92qSjc5WIGbkebrIU3Xm2pPOJ52Vn1KyYjr/tHIeIEiJiLjLGm+bqKG B4A13SmsN7mr7Yovr6QnUPVvR/XzHi0CTb6MzwMcrLAWvd0axDNTRrvdEYnNp1u09teS iBJg== 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=7W8ecLudPpFqSbJRrJMLaE+hJjxzBDOvmHDTYNwekL0=; fh=bkuuwL0IG6Vujou5YptfTbPV1KXOCWyLyxvloMSGjxQ=; b=fg5W4HaRZcw6ukPcWIhITiYKen0FIjh9E3OEKOPQnFrndaGn5gI17ZcdNNaG5STIcE QV7rbzG2/vGruFYdC6sU7wP6FMYxxfVh1juuf2HwjpIKleRKnUejb3VzB2Sh84MlqSy6 HcP+V9NVNxShX2fx0uvJ67STxtKxIxpU/stLHCEmV7/B2EUsF0DgEtqLY01bBPhGposB hSCjAgJ0bUdjEjkMAJPCBV7gxApMB28Mooe8u0B6nYaH6RZoU2yExcjcoC4+cVuGqagL LI5YJRETWyRQtJRZJC0hP74gX/9H3FIFU4rJ+G5jvSJQ6lUVCSnirki7EOOsoTy+NAUZ F6vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=p0IsSdNg; 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-194233-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9ef2a69si12129274a91.58.2024.05.29.07.16.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194233-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=p0IsSdNg; 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-194233-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194233-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DEDDE2890B9 for ; Wed, 29 May 2024 14:09:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69D00210E7; Wed, 29 May 2024 14:09:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="p0IsSdNg" 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 BFF731CA9E; Wed, 29 May 2024 14:09: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=1716991781; cv=none; b=DnHeLf7VQ0bdZmLX94fjiW4vdTwRsXgwtl6eWrLniRM3cLN/pCQj+9VASA0UMMr49G0bFY4zrNqBXsY1HP2BRDsg7/9wFr8SUSr39vEhpCit2YiFvubJM3CNMwv2RKYAdzWfZBiYYjY8WJFE8HqFJ2HdeyvDzGVFqK79u44fywE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716991781; c=relaxed/simple; bh=6RKhsjylzAiRwIo2wwjLgww6LdH42VeDcjmrpc0rXsc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ug9Ky95xfYdg11ckbFke8mLJ16kRuNRJVsQdqIawA313XlvIWwKyGHSaAJ/OkZvEdV5u542P3GDS1V+mHOCIyql8SZC0UdNvcRk7Tqpz4tUs7ILqmJEG2Qdqchp/2NWa/mbJfGyggfVdPUhkzpBT+Ftoycth6wxUJKARaEipYiw= 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=p0IsSdNg; 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 C09E340003; Wed, 29 May 2024 14:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1716991776; 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=7W8ecLudPpFqSbJRrJMLaE+hJjxzBDOvmHDTYNwekL0=; b=p0IsSdNgW2U11l1ihWyP+asGoPBxFTkFCURBWvXZVSTU1Ijxyx+EG3b0RaAWff+tnFe4NJ PGyFMZ/HAGfrNiSGZMr2rmg8oyZyUePFGQYK2vGYuRPFCYor/Wmkp0+2UcOqg+iUm/Cc3N MBPbMYLh04CSY0hVeGXjYWfbsIKhbS7aHmWMg47UpGCJx0YsrxeHzyV6GXhhQMUoVRanUE GVRTb966fFwAZzcbkzrcB8hKujx0rabAThxA3u5IZRr1shTMnN1l+fY0ESzsZ1YGSE1v7o a4figyPqPm9LbE0CnTap9EgxMGdRgZD7fhfWIqhD0aLwqa5GsCfp5wQhewZJZw== From: Kory Maincent Date: Wed, 29 May 2024 16:09:28 +0200 Subject: [PATCH 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: <20240529-feature_poe_power_cap-v1-1-0c4b1d5953b8@bootlin.com> References: <20240529-feature_poe_power_cap-v1-0-0c4b1d5953b8@bootlin.com> In-Reply-To: <20240529-feature_poe_power_cap-v1-0-0c4b1d5953b8@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 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. 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