[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aKxCbceDzTFom2Mq@smile.fi.intel.com>
Date: Mon, 25 Aug 2025 14:01:01 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Qianfeng Rong <rongqianfeng@...o.com>
Cc: Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Philipp Stanner <phasta@...nel.org>,
Thorsten Blum <thorsten.blum@...ux.dev>,
"open list:SOUND" <linux-sound@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 0/3] ALSA: use vmalloc_array() to simplify code
On Sun, Aug 24, 2025 at 09:55:09PM +0800, Qianfeng Rong wrote:
> Remove array_size() calls and replace vmalloc() with vmalloc_array() to
> simplify the code and maintain consistency with existing kmalloc_array()
> usage.
>
> vmalloc_array() is also optimized better, resulting in less instructions
> being used [1].
Have you considered using sizeof(*...) where it makes sense?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists