Re: [PATCH 01/18] bitfield.h: add FIELD_MAX() and field_max()

2019-05-12 Thread Johannes Berg
On Sun, 2019-05-12 at 07:18 -0500, Alex Elder wrote: > On 5/12/19 1:33 AM, Kalle Valo wrote: > > Alex Elder writes: > > > > > Define FIELD_MAX(), which supplies the maximum value that can be > > > represented by a field value. Define field_max() as well, to go > > > along with the lower-case for

Re: [PATCH 01/18] bitfield.h: add FIELD_MAX() and field_max()

2019-05-12 Thread Alex Elder
On 5/12/19 1:33 AM, Kalle Valo wrote: > Alex Elder writes: > >> Define FIELD_MAX(), which supplies the maximum value that can be >> represented by a field value. Define field_max() as well, to go >> along with the lower-case forms of the field mask functions. >> >> Signed-off-by: Alex Elder >

Re: [PATCH 01/18] bitfield.h: add FIELD_MAX() and field_max()

2019-05-11 Thread Kalle Valo
Alex Elder writes: > Define FIELD_MAX(), which supplies the maximum value that can be > represented by a field value. Define field_max() as well, to go > along with the lower-case forms of the field mask functions. > > Signed-off-by: Alex Elder Via which tree is this going? I assume I do not h

[PATCH 01/18] bitfield.h: add FIELD_MAX() and field_max()

2019-05-11 Thread Alex Elder
Define FIELD_MAX(), which supplies the maximum value that can be represented by a field value. Define field_max() as well, to go along with the lower-case forms of the field mask functions. Signed-off-by: Alex Elder --- include/linux/bitfield.h | 14 ++ 1 file changed, 14 insertions