Re: [PATCH] kunit: constify return of string literals

2025-03-02 Thread Christian Göttsche
On Tue, 26 Nov 2024 at 12:36, Christian Göttsche wrote: > > From: Christian Göttsche > > The function kunit_status_to_ok_not_ok() returns string literals, thus > declare the return value as such. > > Reported by clang: > > ./include/kunit/test.h:143:10: warni

[PATCH] kunit: constify return of string literals

2024-11-25 Thread Christian Göttsche
From: Christian Göttsche The function kunit_status_to_ok_not_ok() returns string literals, thus declare the return value as such. Reported by clang: ./include/kunit/test.h:143:10: warning: returning 'const char[3]' from a function with result type 'char *'

[RFC PATCH] sched: only issue an audit on privileged operation

2020-09-04 Thread Christian Göttsche
needed. Signed-off-by: Christian Göttsche --- kernel/sched/core.c | 65 - 1 file changed, 47 insertions(+), 18 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 8471a0f7eb32..954f968d2466 100644 --- a/kernel/sched/core.c +++ b