acrn-kernel/drivers/oprofile
Peter Zijlstra 0340a6b7fb module: Fix up module_notifier return values
While auditing all module notifiers I noticed a whole bunch of fail
wrt the return value. Notifiers have a 'special' return semantics.

As is; NOTIFY_DONE vs NOTIFY_OK is a bit vague; but
notifier_from_errno(0) results in NOTIFY_OK and NOTIFY_DONE has a
comment that says "Don't care".

From this I've used NOTIFY_DONE when the function completely ignores
the callback and notifier_to_error() isn't used.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Reviewed-by: Robert Richter <rric@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20200818135804.385360407@infradead.org
2020-09-01 09:58:03 +02:00
..
buffer_sync.c module: Fix up module_notifier return values 2020-09-01 09:58:03 +02:00
buffer_sync.h
cpu_buffer.c
cpu_buffer.h oprofile: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
event_buffer.c
event_buffer.h
nmi_timer_int.c
oprof.c
oprof.h
oprofile_files.c
oprofile_perf.c
oprofile_stats.c
oprofile_stats.h
oprofilefs.c
timer_int.c