Messages in this thread | | | From | Salvatore Mesoraca <> | Date | Sun, 18 Mar 2018 15:08:01 +0100 | Subject | Re: [PATCH] net: dsa: drop some VLAs in switch.c |
| |
2018-03-14 13:48 GMT+01:00 Salvatore Mesoraca <s.mesoraca16@gmail.com>: > 2018-03-14 12:24 GMT+01:00 David Laight <David.Laight@aculab.com>: >> Isn't using DECLARE_BITMAP() completely OTT when the maximum size is less >> than the number of bits in a word? > > It allocates ceiling(size/8) "unsigned long"s, so yes.
Actually I meant ceiling(size/8/sizeof(unsigned long)) I'm sorry for the typo.
Salvatore
| |