[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM6PR05MB522465330E2C594B0309AE78A2340@AM6PR05MB5224.eurprd05.prod.outlook.com>
Date: Thu, 2 May 2019 21:14:46 +0000
From: Vadim Pasternak <vadimp@...lanox.com>
To: Asmaa Mnebhi <Asmaa@...lanox.com>,
"minyard@....org" <minyard@....org>
CC: "wsa@...-dreams.de" <wsa@...-dreams.de>,
Michael Shych <michaelsh@...lanox.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>
Subject: RE: [PATCH v4 0/1] Add support for IPMB driver
[...]
> >
> > >>Better, if you can avoid cast.
> > >>Would compiler warn if you use for example rol16(client->addr, 1) &
> GENMASK(7, 0); or something like it?
> > I thought it wouldn't be too much of an issue to use typecast here since other
> existing ipmi drivers use typecasting: bt-bmc.c, kcs_bmc_aspeed.c,
> kcs_bmc_npcm7xx.c all use (u8) typecasting.
> > But if you really think it is worth it, I could do that.
> > I just think it is not as straight forward to read this code as using a simple
> typecast. Some might wonder why a GENMASK is needed in this case.
> >
Hi Asmaa,
I will not insist in case it's OK with maintainers.
[...]
Powered by blists - more mailing lists