Re: kernel/trace/ring_buffer.c:412:29-47: WARNING: casting value returned by memory allocation function to (struct buffer_page *) is useless.

Steven Rostedt <[email protected]> Wed, 5 Aug 2026 14:18:08 -0400
Newsgroups dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Sat, 1 Aug 2026 09:05:10 +0200 (CEST)
Julia Lawall <[email protected]> wrote:

> Thanks for the report.  I will remove the warning in the case of a macro
> body.
> 
> Is there some reason why it is not an inline function?

Hmm, probably nothing more than they looked better as macros?

-- Steve