Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp219756lqp; Mon, 10 Jun 2024 01:39:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIZ+D8mzQGU+FUq0AUHGtuyjo6AoXMci0GjcS3CHDbU1eOoOshQQ9LjSn+iF477aq7H3YJ28K7S7urLFA7/0Is8S9R6TQ3tCghaZ4+3Q== X-Google-Smtp-Source: AGHT+IH4qT5l6eTUu3UaKuQYmYL6zEEiy8f32TZIvw/dsP9SWTV/T09/jsIy2Op14rl7ZoVrHzaU X-Received: by 2002:a17:907:971d:b0:a6f:dc0:904b with SMTP id a640c23a62f3a-a6f0dc09225mr350432466b.23.1718008784509; Mon, 10 Jun 2024 01:39:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718008784; cv=pass; d=google.com; s=arc-20160816; b=kdix1IoclqyFp5ZL+ADmKvDWVxmmKUVyl+vb+/VqOetcpPdoMw4CepUVzzogYGuaJv KZ9hg98QqD7ZWy6WJEaOLbnvRYVW7/an8kkqhJg2GfbdPcQA0eIt1FTpSvaiGWoWU53a 405afEi/+oDPhfgm9wgYOLAJMZ4KiW0wra5IEvkBwauJht2YH7CcLQx3Nx50tfeh420s 8CoV8XISINT1w/LKmaPV9WSV/wnBeFexBlo/e9zlf1S1gSx5bckDzO+dOC+mXvs6c9TG e2UF1xgC7nxfhtttz5lNQIxcTUqrjMR1pwK1JZOO/rLLE9qAlnYWst9mXKC1nMEXIiZ/ 7FIg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=4x4zWTd7CusdePzcDcFLJfurMsnhAhcRxR1EoRyEerA=; fh=JU96utc2mWuv5tCgGs0h8L4mWjTQ2QwYCljnuvusw5w=; b=aUdz9tSk3VRBZ/n6nzTmyJwmdb9JZXkGL28cunfys+GS+3Yh2Vr332Qb/YGkF5ce+V 6Bub6rSFSHIF4qC51vDRpJPPHdAHz9XssUmCT4kB8GRIg8LEUOts3V2lrta4F4fF3xRg kPcZb8a/rMnquUYgF5Ca8d+1AT8R92yxM0sYNNDobM0kgkHNVSAgJ4sI+nKNWSA555w2 FkUs3LycvZV1W0Az4vsNu24UKX3/nPz9qeXBYidnK+JU31DE3URnrFBrTNp3hMEfVU5W 2VMEZnpK5UfB5M7HYHu65qDCt/dhq4f+qj5OQZeRRb/puupSvB8/IZtH//5zKJX1MS2A g0sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jaYxa65N; 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-207858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207858-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c84f40f2csi485287a12.282.2024.06.10.01.39.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 01:39:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jaYxa65N; 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-207858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207858-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1FDAD1F211A5 for ; Mon, 10 Jun 2024 08:39:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5EF66F309; Mon, 10 Jun 2024 08:39:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jaYxa65N" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (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 84D8D55887; Mon, 10 Jun 2024 08:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718008772; cv=none; b=DraGHvszZ0NIgiBUsNlZDQF7q+mryguKAlkzqQ0aEQKytr3nyHAdQYwHvnlB9PiC2BBF70Q5bBLRlWNO9AxSyxvRyhObzfxCkulmhCGjd1fqhX+rKGbdNgDI0OTKe36XNLz+m0J/9ghyZQwbFH0y1HPHKyAs+bGtzpiXsqvnN2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718008772; c=relaxed/simple; bh=368XwNYZD0whAtsmeET0VZaclcSeD6ddAe2PyDhTmoM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=n8B8KzyKNSOxpS3BqO0xiA7LGDEebJtozzPNDbopcQ2SuM+W+PJHbWdRYYlww0W1jm6ZunpLK3AY9EC0JgtGizuneYewt+46uGjuornyOEARzCzuQmVLS7bLoJG+mQQ8ahohnuuzdz04vz9NA/Xnc7C4xGC7zvdzBNYXLMDML9s= 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=jaYxa65N; arc=none smtp.client-ip=217.70.178.240 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: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 95C4CC0CB4; Mon, 10 Jun 2024 08:35:31 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id AFE59C0006; Mon, 10 Jun 2024 08:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1718008523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4x4zWTd7CusdePzcDcFLJfurMsnhAhcRxR1EoRyEerA=; b=jaYxa65NzGG0q0RJifMvIuGaA9nKgPajR0t86xHSqtWwNtR0Uv8Noh5nuYgblyFNH9sSWJ NQVb/bWNF4gUdr5sev6tPKFlSUefXtD1kmu9e2JhvkZwpqGJYYDK1x/iQLQUhNVB1cd3qI wUWyE6u8m756i/ukzq2qxUZRAYo6KZpmVAPRgceJhafb3uSUEcmAz4K2ZmgLY6Vv+uUOpk e+XW6ao0mZI0NitQsVSN9AeCDAxzcDIIEWKESnlNOLQJauMOBfaKLS5vsthqWDeCLC2fDv 8a8ACYh3f+CKGYEJgE0D7hPVIb8S1sze6xChM6WSo5JU3Fxm4JA7C2Bfje+vJA== From: Kory Maincent To: netdev@vger.kernel.org, Oleksij Rempel , Bagas Sanjaya , Jakub Kicinski , Andrew Lunn , kernel test robot , linux-kernel@vger.kernel.org Cc: Kory Maincent , thomas.petazzoni@bootlin.com Subject: [PATCH net] net: pse-pd: Use EOPNOTSUPP error code instead of ENOTSUPP Date: Mon, 10 Jun 2024 10:34:26 +0200 Message-Id: <20240610083426.740660-1-kory.maincent@bootlin.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: kory.maincent@bootlin.com ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP as reported by checkpatch script. Reviewed-by: Andrew Lunn Acked-by: Oleksij Rempel Signed-off-by: Kory Maincent 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(-) 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