[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yz4xzCDGxyva/yZN@knights.ucf.edu>
Date: Wed, 5 Oct 2022 21:39:24 -0400
From: Brent Pappas <pappasbrent@...ghts.ucf.edu>
To: Nam Cao <namcaov@...il.com>
Cc: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"cai.huoqing@...ux.dev" <cai.huoqing@...ux.dev>,
"kuba@...nel.org" <kuba@...nel.org>,
"linux-staging@...ts.linux.dev" <linux-staging@...ts.linux.dev>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] staging: most: net: Replace macros HB and LB with static
inline functions
On 10/05/2022 19:57, Nam Cao wrote:
> On Wed, Oct 05, 2022 at 04:10:44PM +0000, Brent Pappas wrote:
> > Replace function-like macros "HB" and "LB" with static inline functions
> > to comply with preferred Linux coding style standards.
> >
> > Signed-off-by: Brent Pappas <pappasbrent@...ghts.ucf.edu>
> > ---
> > diff --git a/drivers/staging/most/net/net.c b/drivers/staging/most/net/net.c
> > index 1d1fe8bff7ee..8a8fbc274b73 100644
> > --- a/drivers/staging/most/net/net.c
> > +++ b/drivers/staging/most/net/net.c
> > @@ -36,8 +36,8 @@
> > #define PMS_TELID_MASK 0x0F
> > #define PMS_TELID_SHIFT 4
> >
> > -#define HB(value) ((u8)((u16)(value) >> 8))
> > -#define LB(value) ((u8)(value))
> > +static inline u8 HB(unsigned int value) { return ((u8)((u16)(value) >> 8)); }
> > +static inline u8 LB(unsigned int value) { return ((u8)(value)); }
> >
> > #define EXTRACT_BIT_SET(bitset_name, value) \
> > (((value) >> bitset_name##_SHIFT) & bitset_name##_MASK)
>
> I cannot apply your patch. I think your email client modified some
> whitespace characters.
>
> Check this for more information:
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kernel.org%2Fdoc%2Fhtml%2Fv4.10%2Fprocess%2Femail-clients.html&data=05%7C01%7Cpappasbrent%40knights.ucf.edu%7C3748a695ff1e438ecd0b08daa72d66bf%7C5b16e18278b3412c919668342689eeb7%7C0%7C0%7C638006110693613730%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rq2pgVr1dqT2k9hC21LXueqMeIcVyk2Qjvjl1KtkhsU%3D&reserved=0
>
> Best regards,
> Nam
You are correct.
The tabs were converted to spaces.
I will read the link you have provided and fix the problem.
Thank you,
Brent
--
Powered by blists - more mailing lists