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

From: Steven Rostedt
Date: Mon Nov 08 2021 - 11:23:23 EST


On Mon, 8 Nov 2021 15:35:50 +0100
Borislav Petkov <bp@xxxxxxxxx> 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