[PATCH v0 00/42] notifiers: Return an error when callback is already registered

Steven Rostedt rostedt at goodmis.org
Mon Nov 8 08:23:13 PST 2021


On Mon, 8 Nov 2021 15:35:50 +0100
Borislav Petkov <bp at alien8.de> wrote:

> On Mon, Nov 08, 2021 at 03:24:39PM +0100, Borislav Petkov wrote:
> > I guess I can add another indirection to notifier_chain_register() and
> > avoid touching all the call sites.  
> 
> IOW, something like this below.
> 
> This way I won't have to touch all the callsites and the registration
> routines would still return a proper value instead of returning 0
> unconditionally.

I prefer this method.

Question, how often does this warning trigger? Is it common to see in
development?

-- Steve



More information about the linux-arm-kernel mailing list