lkml.org 
[lkml]   [2018]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v2] net: dsa: Remove VLA usage
Date
From: Pavel Machek
> Sent: 29 July 2018 12:40
...
> > > + unsigned long *bitmap;
> > > + unsigned long _bitmap;
> >
> > This looks rather confusing. _bitmap -> bitmap_data? bitmap_bits?
>
> Actually, AFAICT that long is not used as a long, but as array of
> bits. So maybe char bitmap_data[8] would be more appropriate?

Unfortunately the 'bitmap' functions are defined to work in a
specific way on unsigned long[].
This means, for example, that they can't use the x86 'bit' instructions.

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

\
 
 \ /
  Last update: 2018-07-30 10:59    [W:0.083 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site