[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20220906225847.255b4f244105b9b66b713857@linux-foundation.org>
Date: Tue, 6 Sep 2022 22:58:47 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Xiu Jianfeng <xiujianfeng@...wei.com>
Cc: <linux-mm@...ck.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] secretmem: use ATOMIC_INIT() to initialize
secretmem_users
On Tue, 6 Sep 2022 17:36:20 +0800 Xiu Jianfeng <xiujianfeng@...wei.com> 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.
Powered by blists - more mailing lists