Re: [PATCH v2 3/5] ACPI: Support __free() from cleanup.h for ACPI objects
Sakari Ailus <[email protected]>
| Newsgroups | org.kernel.vger.linux-acpi,org.kernel.vger.linux-media,org.kernel.vger.platform-driver-x86 |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo |
| Message-ID | <[email protected]> |
Hi Rafael, On Tue, Aug 25, 2026 at 01:51:18PM +0200, Rafael J. Wysocki (Intel) wrote: > On Mon, Aug 24, 2026 at 11:13 PM Sakari Ailus > <[email protected]> wrote: > > > > Use DEFINE_FREE() to allow ACPI objects to be released automatically. > > But at least some of them are allocated by ACPICA functions like > acpi_evaluate_object() and so they have no proper constructors. You could still assign the return buffer to a local variable. It's not ideal API-wise though. I'm not quite sure what was the point you wanted to make but I reckon this wasn't an ack. :-) -- Regards, Sakari Ailus