[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200813075843.GB7383@yilunxu-OptiPlex-7050>
Date: Thu, 13 Aug 2020 15:58:43 +0800
From: Xu Yilun <yilun.xu@...el.com>
To: David Laight <David.Laight@...LAB.COM>
Cc: 'Moritz Fischer' <mdf@...nel.org>,
"linux-fpga@...r.kernel.org" <linux-fpga@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"trix@...hat.com" <trix@...hat.com>,
"lgoncalv@...hat.com" <lgoncalv@...hat.com>
Subject: Re: [PATCH v4 1/4] fpga: dfl: change data type of feature id to u16
On Wed, Aug 12, 2020 at 08:52:39AM +0000, David Laight wrote:
> From: Moritz Fischer
> > Sent: 12 August 2020 04:56
> >
> > On Mon, Aug 10, 2020 at 10:41:10AM +0800, Xu Yilun wrote:
> > > The feature id is stored in a 12 bit field in DFH. So a u16 variable is
> > > enough for feature id.
> > >
> > > This patch changes all feature id related places to fit u16.
>
> How much bigger does it make the kernel?
The patch changes the definition of feature id from u64 to u16, and will
make the kernel slightly smaller.
Actually it is not the main purpose of this change. In the following
patches we will put the feature_id definiton in mod_devicetable.h in
order to support MODULE_DEVICE_TABLE(). The modpost will also use the
definitions in mod_devicetable.h but seems it doesn't support u64 now.
So we reduced the unnecessary bits definition in feature_id to fit
modpost.
Thanks,
Yilun
>
> David
>
> -
> Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
> Registration No: 1397386 (Wales)
Powered by blists - more mailing lists