Daniel Bristot de Oliveira
a71597b4e5
tools/rtla: Remove unused sched_getattr() function
...
commit 084ce16df0f060efd371092a09a7ae74a536dc11 upstream.
Clang is reporting:
$ make HOSTCC=clang CC=clang LLVM_IAS=1
[...]
clang -O -g -DVERSION=\"6.8.0-rc3\" -flto=auto -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS $(pkg-config --cflags libtracefs) -c -o src/utils.o src/utils.c
src/utils.c:241:19: warning: unused function 'sched_getattr' [-Wunused-function]
241 | static inline int sched_getattr(pid_t pid, struct sched_attr *attr,
| ^~~~~~~~~~~~~
1 warning generated.
Which is correct, so remove the unused function.
Link: https://lkml.kernel.org/r/eaed7ba122c4ae88ce71277c824ef41cbf789385.1707217097.git.bristot@kernel.org
Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Justin Stitt <justinstitt@google.com>
Cc: Donald Zickus <dzickus@redhat.com>
Fixes: b1696371d865 ("rtla: Helper functions for rtla")
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-23 09:25:14 +01:00
..
2024-02-23 09:24:47 +01:00
2024-01-10 17:16:54 +01:00
2024-02-05 20:14:31 +00:00
2023-08-08 15:43:03 -06:00
2023-07-24 10:29:52 -04:00
2023-11-20 11:59:18 +01:00
2023-12-03 07:33:02 +01:00
2023-11-20 11:59:26 +01:00
2024-02-23 09:24:47 +01:00
2024-02-05 20:14:32 +00:00
2023-09-05 10:13:45 -07:00
2023-10-13 17:27:27 -07:00
2023-12-20 17:01:51 +01:00
2024-02-16 19:10:42 +01:00
2023-12-03 07:33:04 +01:00
2023-08-03 16:59:40 -03:00
2024-02-23 09:25:00 +01:00
2024-02-23 09:25:14 +01:00
2024-02-23 09:25:14 +01:00
2023-10-16 05:32:23 -04:00
2023-08-07 15:57:25 -10:00