Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Andrew Morton
On Fri, 6 Jul 2018 10:44:58 +0100 Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. A bit of grepping shows that

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Andrew Morton
On Fri, 6 Jul 2018 10:44:58 +0100 Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. A bit of grepping shows that

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 11:00, Chris Wilson wrote: > Quoting Randy Dunlap (2018-07-06 18:55:57) >> On 07/06/18 10:51, Chris Wilson wrote: >>> Quoting Randy Dunlap (2018-07-06 18:48:55) On 07/06/18 02:44, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 11:00, Chris Wilson wrote: > Quoting Randy Dunlap (2018-07-06 18:55:57) >> On 07/06/18 10:51, Chris Wilson wrote: >>> Quoting Randy Dunlap (2018-07-06 18:48:55) On 07/06/18 02:44, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
Quoting Randy Dunlap (2018-07-06 18:55:57) > On 07/06/18 10:51, Chris Wilson wrote: > > Quoting Randy Dunlap (2018-07-06 18:48:55) > >> > >> On 07/06/18 02:44, Chris Wilson wrote: > >>> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > >>> number of bits in a type

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
Quoting Randy Dunlap (2018-07-06 18:55:57) > On 07/06/18 10:51, Chris Wilson wrote: > > Quoting Randy Dunlap (2018-07-06 18:48:55) > >> > >> On 07/06/18 02:44, Chris Wilson wrote: > >>> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > >>> number of bits in a type

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 10:51, Chris Wilson wrote: > Quoting Randy Dunlap (2018-07-06 18:48:55) >> >> On 07/06/18 02:44, Chris Wilson wrote: >>> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the >>> number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the >>> macro to

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 10:51, Chris Wilson wrote: > Quoting Randy Dunlap (2018-07-06 18:48:55) >> >> On 07/06/18 02:44, Chris Wilson wrote: >>> net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the >>> number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the >>> macro to

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
Quoting Randy Dunlap (2018-07-06 18:48:55) > > On 07/06/18 02:44, Chris Wilson wrote: > > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > > macro to bitops.h, alongside BITS_PER_BYTE, for wider

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
Quoting Randy Dunlap (2018-07-06 18:48:55) > > On 07/06/18 02:44, Chris Wilson wrote: > > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > > macro to bitops.h, alongside BITS_PER_BYTE, for wider

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 02:44, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. > > Signed-off-by: Chris Wilson > Cc: Jani Nikula

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Randy Dunlap
On 07/06/18 02:44, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. > > Signed-off-by: Chris Wilson > Cc: Jani Nikula

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Jani Nikula
On Fri, 06 Jul 2018, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. > > Signed-off-by: Chris Wilson > Cc: Jani

Re: [PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Jani Nikula
On Fri, 06 Jul 2018, Chris Wilson wrote: > net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the > number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the > macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. > > Signed-off-by: Chris Wilson > Cc: Jani

[PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. Signed-off-by: Chris Wilson Cc: Jani Nikula Cc: Andy Gospodarek Cc: David S. Miller Cc:

[PATCH] bitops: Introduce BITS_PER_TYPE

2018-07-06 Thread Chris Wilson
net_dim.h has a rather useful extension to BITS_PER_BYTE to compute the number of bits in a type (BITS_PER_BYTE * sizeof(T)), so promote the macro to bitops.h, alongside BITS_PER_BYTE, for wider usage. Signed-off-by: Chris Wilson Cc: Jani Nikula Cc: Andy Gospodarek Cc: David S. Miller Cc: