lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 15 Oct 2023 12:14:02 +0700
From:   Bagas Sanjaya <bagasdotme@...il.com>
To:     chenguohua@...i.cn, linux@...linux.org.uk
Cc:     netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: sfp: Clean up errors in sfp.h

On Fri, Oct 13, 2023 at 11:01:21AM +0800, chenguohua@...i.cn wrote:
> Fix the following errors reported by checkpatch:
> 
> ERROR: spaces required around that '=' (ctx:VxW)
> 
> Signed-off-by: GuoHua Cheng <chenguohua@...i.cn>
> ---
>  include/linux/sfp.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/include/linux/sfp.h b/include/linux/sfp.h
> index 9346cd44814d..725c8381a347 100644
> --- a/include/linux/sfp.h
> +++ b/include/linux/sfp.h
> @@ -289,10 +289,10 @@ enum {
>  	SFF8024_ENCODING_8B10B		= 0x01,
>  	SFF8024_ENCODING_4B5B		= 0x02,
>  	SFF8024_ENCODING_NRZ		= 0x03,
> -	SFF8024_ENCODING_8472_MANCHESTER= 0x04,
> +	SFF8024_ENCODING_8472_MANCHESTER = 0x04,
>  	SFF8024_ENCODING_8472_SONET	= 0x05,
>  	SFF8024_ENCODING_8472_64B66B	= 0x06,
> -	SFF8024_ENCODING_8436_MANCHESTER= 0x06,
> +	SFF8024_ENCODING_8436_MANCHESTER = 0x06,
>  	SFF8024_ENCODING_8436_SONET	= 0x04,
>  	SFF8024_ENCODING_8436_64B66B	= 0x05,
>  	SFF8024_ENCODING_256B257B	= 0x07,
> @@ -306,11 +306,11 @@ enum {
>  	SFF8024_CONNECTOR_MT_RJ		= 0x08,
>  	SFF8024_CONNECTOR_MU		= 0x09,
>  	SFF8024_CONNECTOR_SG		= 0x0a,
> -	SFF8024_CONNECTOR_OPTICAL_PIGTAIL= 0x0b,
> +	SFF8024_CONNECTOR_OPTICAL_PIGTAIL = 0x0b,
>  	SFF8024_CONNECTOR_MPO_1X12	= 0x0c,
>  	SFF8024_CONNECTOR_MPO_2X16	= 0x0d,
>  	SFF8024_CONNECTOR_HSSDC_II	= 0x20,
> -	SFF8024_CONNECTOR_COPPER_PIGTAIL= 0x21,
> +	SFF8024_CONNECTOR_COPPER_PIGTAIL = 0x21,
>  	SFF8024_CONNECTOR_RJ45		= 0x22,
>  	SFF8024_CONNECTOR_NOSEPARATE	= 0x23,
>  	SFF8024_CONNECTOR_MXC_2X16	= 0x24,

To be consistent, other enum's indentation should also be aligned to match
the longest ones (MANCHESTER and PIGTAIL).

In netdev, though, checkpatch fixes are not welcome (auto-rejected) as these
make stable backports more convoluted.

Thanks.

-- 
An old man doll... just what I always wanted! - Clara

Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ