[PATCH] ftrace: Make ftrace_regs abstract from direct use

Steven Rostedt rostedt at goodmis.org
Tue Oct 8 12:15:48 PDT 2024


On Tue, 8 Oct 2024 08:24:22 +0200
Christophe Leroy <christophe.leroy at csgroup.eu> wrote:

> >> +
> >> +struct ftrace_regs;
> >> +#define arch_ftrace_regs(fregs) ((struct __arch_ftrace_regs *)(fregs))
> >> +  
> > 
> > I just realized I can simplify it with:
> > 
> > #define arch_ftrace_get_regs(fregs)	({ &arch_ftrace_regs(fregs)->regs; })  
> 
> Is it possible to write it as a static inline function to enforce type 
> checking ?

Will do. Thanks,

-- Steve



More information about the linux-arm-kernel mailing list