Re: [PATCH -next] secretmem: use ATOMIC_INIT() to initialize secretmem_users

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

 



On Tue, 6 Sep 2022 17:36:20 +0800 Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> wrote:

> The variable secretmem_users is of atomic_t type, so initialize it
> properly with ATOMIC_INIT().
> 

True, but there are many many cases where we initialize an atomic_t to
the all-zeroes pattern.  So many that this should be considered
acceptable practice.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux