Content-Type: multipart/mixed; boundary="===============6201595922543643522==" MIME-Version: 1.0 From: kelvin.cao@microchip.com To: kbuild-all@lists.01.org Subject: [PATCH 4/5] PCI/switchtec: Replace ENOTSUPP with EOPNOTSUPP Date: Fri, 24 Sep 2021 10:24:43 +0000 Message-ID: <20210924102444.4684-5-kelvin.cao@microchip.com> In-Reply-To: <20210924102444.4684-1-kelvin.cao@microchip.com> List-Id: --===============6201595922543643522== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Kelvin Cao ENOTSUPP is not a SUSV4 error code, and the following checkpatch.pl warning will be given for new patches which still use ENOTSUPP. WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP See the link below for the discussion. Link: https://lore.kernel.org/netdev/20200511165319.2251678-1-kuba(a)kernel= .org/ Replace ENOTSUPP with EOPNOTSUPP to align with future patches which will be using EOPNOTSUPP. Signed-off-by: Kelvin Cao --- drivers/pci/switch/switchtec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c index b76094e2c885..20cec2367084 100644 --- a/drivers/pci/switch/switchtec.c +++ b/drivers/pci/switch/switchtec.c @@ -368,7 +368,7 @@ static ssize_t field ## _show(struct device *dev, \ return io_string_show(buf, &si->gen4.field, \ sizeof(si->gen4.field)); \ else \ - return -ENOTSUPP; \ + return -EOPNOTSUPP; \ } \ \ static DEVICE_ATTR_RO(field) @@ -660,7 +660,7 @@ static int ioctl_flash_info(struct switchtec_dev *stdev, info.flash_length =3D ioread32(&fi->gen4.flash_length); info.num_partitions =3D SWITCHTEC_NUM_PARTITIONS_GEN4; } else { - return -ENOTSUPP; + return -EOPNOTSUPP; } = if (copy_to_user(uinfo, &info, sizeof(info))) @@ -868,7 +868,7 @@ static int ioctl_flash_part_info(struct switchtec_dev *= stdev, if (ret) return ret; } else { - return -ENOTSUPP; + return -EOPNOTSUPP; } = if (copy_to_user(uinfo, &info, sizeof(info))) @@ -1603,7 +1603,7 @@ static int switchtec_init_pci(struct switchtec_dev *s= tdev, else if (stdev->gen =3D=3D SWITCHTEC_GEN4) part_id =3D &stdev->mmio_sys_info->gen4.partition_id; else - return -ENOTSUPP; + return -EOPNOTSUPP; = stdev->partition =3D ioread8(part_id); stdev->partition_count =3D ioread8(&stdev->mmio_ntb->partition_count); -- = 2.25.1 --===============6201595922543643522==--