Re: [PATCH] dma-mapping: Use 'bitmap_zalloc()' when applicable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le 24/10/2021 à 19:54, Joe Perches a écrit :
On Sun, 2021-10-24 at 19:40 +0200, Christophe JAILLET wrote:
'dma_mem->bitmap' is a bitmap. So use 'bitmap_zalloc()' to simplify code,
improve the semantic and avoid some open-coded arithmetic in allocator
arguments.

There is a cocci script for some of these.

https://lore.kernel.org/all/08b89608cfb1280624d1a89ead6547069f9a4c31.camel@xxxxxxxxxxx/


Hi Joe,

yes I know.
As it is public, I guess that new comers may have seen it and want to propose patches based on your cocci script.

So, for now, I'm more focused on things that are not spotted by your script. I look for places where the size computation is not done within the kmalloc() or eq. function.

CJ



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux