[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250402122104.GK25239@noisy.programming.kicks-ass.net>
Date: Wed, 2 Apr 2025 14:21:04 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Przemek Kitszel <przemyslaw.kitszel@...el.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org, vbabka@...e.cz,
torvalds@...ux-foundation.org, intel-wired-lan@...ts.osuosl.org,
netdev@...r.kernel.org
Subject: Re: [RFC] slab: introduce auto_kfree macro
On Wed, Apr 02, 2025 at 01:32:51PM +0300, Andy Shevchenko wrote:
> What would be better in my opinion is to have it something like DEFINE_*()
> type, which will look more naturally in the current kernel codebase
> (as we have tons of DEFINE_FOO().
>
> DEFINE_AUTO_KFREE_VAR(name, struct foo);
Still weird. Much better to have the compiler complain about the
obvious use of uninitialized.
Powered by blists - more mailing lists