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

From: Steven Rostedt

Date: Wed Aug 05 2026 - 14:17:34 EST


On Sat, 1 Aug 2026 09:05:10 +0200 (CEST)
Julia Lawall <julia.lawall@xxxxxxxx> 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