Christian Göttsche
dafa7332e7
tracing: Constify string literal data member in struct trace_event_call
commit 452f4b31e3f70a52b97890888eeb9eaa9a87139a upstream.
The name member of the struct trace_event_call is assigned with
generated string literals; declare them pointer to read-only.
Reported by clang:
security/landlock/syscalls.c:179:1: warning: initializing 'char *' with an expression of type 'const char[34]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
179 | SYSCALL_DEFINE3(landlock_create_ruleset,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180 | const struct landlock_ruleset_attr __user *const, attr,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181 | const size_t, size, const __u32, flags)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:226:36: note: expanded from macro 'SYSCALL_DEFINE3'
226 | #define SYSCALL_DEFINE3(name, ...) SYSCALL_DEFINEx(3, _##name, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:234:2: note: expanded from macro 'SYSCALL_DEFINEx'
234 | SYSCALL_METADATA(sname, x, __VA_ARGS__) \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:184:2: note: expanded from macro 'SYSCALL_METADATA'
184 | SYSCALL_TRACE_ENTER_EVENT(sname); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./include/linux/syscalls.h:151:30: note: expanded from macro 'SYSCALL_TRACE_ENTER_EVENT'
151 | .name = "sys_enter"#sname, \
| ^~~~~~~~~~~~~~~~~
Cc: stable@vger.kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Mickaël Salaün <mic@digikod.net>
Cc: Günther Noack <gnoack@google.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Bill Wendling <morbo@google.com>
Cc: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/20241125105028.42807-1-cgoettsche@seltendoof.de
Fixes: b77e38aa24 ("tracing: add event trace infrastructure")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-02 10:32:09 +01:00
..
2024-06-27 13:49:11 +02:00
2024-12-09 10:32:02 +01:00
2025-01-02 10:31:59 +01:00
2024-12-19 18:11:29 +01:00
2023-09-01 09:53:54 -07:00
2024-06-12 11:12:23 +02:00
2024-10-22 15:46:19 +02:00
2024-04-27 17:11:33 +02:00
2024-12-14 19:59:46 +01:00
2024-06-12 11:12:21 +02:00
2024-10-22 15:46:35 +02:00
2023-08-29 17:45:22 -04:00
2023-11-20 11:59:23 +01:00
2024-09-18 19:24:08 +02:00
2024-12-14 20:00:00 +01:00
2024-04-03 15:28:58 +02:00
2024-02-23 09:25:18 +01:00
2023-09-01 08:09:48 -07:00
2024-04-03 15:28:28 +02:00
2024-12-14 19:59:35 +01:00
2024-06-21 14:38:34 +02:00
2023-09-06 22:53:55 +08:00
2024-09-12 11:11:32 +02:00
2025-01-02 10:32:07 +01:00
2024-09-08 07:54:43 +02:00
2024-01-31 16:18:47 -08:00
2024-07-25 09:50:47 +02:00
2024-08-19 06:04:23 +02:00
2024-10-04 16:29:50 +02:00
2024-06-12 11:11:37 +02:00
2023-09-11 15:24:16 -07:00
2024-09-12 11:11:40 +02:00
2024-11-14 13:19:38 +01:00
2024-01-31 16:18:49 -08:00
2023-08-31 01:29:28 +02:00
2024-02-23 09:25:16 +01:00
2024-01-25 15:35:46 -08:00
2024-10-04 16:29:59 +02:00
2024-06-12 11:11:38 +02:00
2024-01-20 11:51:38 +01:00
2024-08-14 13:59:02 +02:00
2023-08-30 17:35:54 +08:00
2024-12-09 10:32:56 +01:00
2024-04-27 17:11:43 +02:00
2024-01-25 15:35:28 -08:00
2024-05-25 16:22:53 +02:00
2024-12-09 10:31:42 +01:00
2024-09-12 11:11:34 +02:00
2024-12-19 18:11:25 +01:00
2023-09-15 12:08:27 -07:00
2023-09-02 11:10:50 -07:00
2023-09-17 10:33:53 -07:00
2024-03-06 14:48:44 +00:00
2024-07-25 09:50:40 +02:00
2024-08-19 06:04:31 +02:00
2024-01-25 15:35:38 -08:00
2024-08-14 13:58:56 +02:00
2024-07-05 09:34:04 +02:00
2024-12-09 10:32:46 +01:00
2024-12-09 10:32:46 +01:00
2024-11-08 16:28:20 +01:00
2024-12-19 18:11:36 +01:00
2024-06-12 11:12:14 +02:00
2024-06-12 11:11:24 +02:00
2024-10-10 11:57:58 +02:00
2023-12-13 18:44:56 +01:00
2024-08-29 17:33:14 +02:00
2023-12-20 17:01:51 +01:00
2024-11-22 15:38:35 +01:00
2024-01-10 17:16:53 +01:00
2024-06-12 11:11:57 +02:00
2024-11-08 16:28:24 +01:00
2024-03-26 18:20:13 -04:00
2024-05-17 12:02:27 +02:00
2024-09-04 13:28:24 +02:00
2024-02-16 19:10:42 +01:00
2024-12-14 20:00:16 +01:00
2023-08-30 13:34:34 -07:00
2024-05-02 16:32:46 +02:00
2023-11-28 17:20:11 +00:00
2024-12-14 19:59:58 +01:00
2024-08-29 17:33:31 +02:00
2024-01-05 15:19:41 +01:00
2024-10-04 16:29:37 +02:00
2024-12-14 20:00:05 +01:00
2024-06-12 11:11:56 +02:00
2024-10-10 11:58:00 +02:00
2024-07-09 11:44:29 +02:00
2024-06-12 11:12:51 +02:00
2023-10-12 18:53:36 +03:00
2024-10-04 16:29:48 +02:00
2024-07-25 09:50:57 +02:00
2024-09-08 07:54:44 +02:00
2024-07-11 12:49:16 +02:00
2024-12-14 19:59:45 +01:00
2023-11-28 17:19:35 +00:00
2024-05-17 12:02:15 +02:00
2024-04-03 15:28:44 +02:00
2024-12-14 20:00:00 +01:00
2023-12-13 18:45:21 +01:00
2024-12-09 10:31:48 +01:00
2024-02-16 19:10:55 +01:00
2024-11-08 16:28:27 +01:00
2024-08-03 08:54:11 +02:00
2023-11-20 11:59:18 +01:00
2024-09-08 07:54:43 +02:00
2024-12-27 13:58:54 +01:00
2024-10-10 11:58:01 +02:00
2023-11-20 11:59:35 +01:00
2024-07-05 09:33:51 +02:00
2023-09-19 16:28:37 +02:00
2024-12-09 10:32:59 +01:00
2023-09-12 17:50:53 +02:00
2024-04-03 15:28:19 +02:00
2024-04-03 15:28:18 +02:00
2024-10-17 15:24:26 +02:00
2023-09-27 16:54:03 +02:00
2024-04-10 16:36:02 +02:00
2024-12-27 13:58:55 +01:00
2024-11-08 16:28:19 +01:00
2024-06-21 14:38:30 +02:00
2023-09-01 08:11:51 +01:00
2024-02-05 20:14:17 +00:00
2023-11-28 17:19:56 +00:00
2024-04-17 11:19:36 +02:00
2024-10-17 15:24:13 +02:00
2024-12-09 10:31:50 +01:00
2023-10-18 12:12:41 -07:00
2024-06-27 13:49:13 +02:00
2024-04-13 13:07:38 +02:00
2024-01-01 12:42:33 +00:00
2024-06-27 13:49:03 +02:00
2024-06-16 13:47:41 +02:00
2024-06-12 11:12:52 +02:00
2023-08-31 13:48:50 -04:00
2024-12-14 20:00:12 +01:00
2024-07-05 09:33:57 +02:00
2024-12-09 10:32:45 +01:00
2024-07-11 12:49:18 +02:00
2023-09-29 17:20:46 -07:00
2024-01-31 16:18:56 -08:00
2023-10-05 09:50:14 +02:00
2024-03-01 13:35:06 +01:00
2024-11-01 01:58:25 +01:00
2024-10-17 15:24:10 +02:00
2023-09-06 20:49:04 -07:00
2024-02-05 20:14:21 +00:00
2023-12-20 17:02:02 +01:00
2024-12-14 20:00:17 +01:00
2024-10-04 16:29:21 +02:00
2024-11-22 15:38:37 +01:00
2024-12-09 10:32:59 +01:00
2024-07-18 13:21:10 +02:00
2024-06-27 13:49:14 +02:00
2024-03-26 18:19:55 -04:00
2023-11-28 17:19:56 +00:00
2024-07-11 12:49:02 +02:00
2024-11-01 01:58:29 +01:00
2024-01-25 15:35:59 -08:00
2024-03-06 14:48:36 +00:00
2024-10-17 15:24:29 +02:00
2024-12-09 10:32:12 +01:00
2024-10-17 15:24:23 +02:00
2024-04-03 15:28:29 +02:00
2023-09-13 11:51:11 -04:00
2024-06-12 11:11:50 +02:00
2023-09-05 05:34:14 -04:00
2024-06-12 11:12:53 +02:00
2024-07-05 09:33:53 +02:00
2024-09-18 19:24:04 +02:00
2024-05-17 12:01:55 +02:00
2024-08-03 08:53:38 +02:00
2023-12-20 17:02:06 +01:00
2024-12-09 10:31:56 +01:00
2024-09-04 13:28:22 +02:00
2023-09-09 08:18:16 -05:00
2024-12-09 10:32:59 +01:00
2024-12-09 10:32:59 +01:00
2024-04-13 13:07:32 +02:00
2024-07-25 09:50:56 +02:00
2024-05-02 16:32:47 +02:00
2024-07-18 13:21:20 +02:00
2024-10-17 15:24:22 +02:00
2024-12-14 20:00:14 +01:00
2024-10-10 11:57:27 +02:00
2024-09-12 11:11:40 +02:00
2024-07-11 12:49:11 +02:00
2023-09-06 07:46:49 +01:00
2024-01-31 16:19:09 -08:00
2023-11-20 11:58:57 +01:00
2024-03-26 18:19:17 -04:00
2023-11-08 11:56:20 +01:00
2023-11-28 17:19:48 +00:00
2024-06-12 11:11:56 +02:00
2024-08-14 13:58:47 +02:00
2024-09-18 19:24:03 +02:00
2024-02-23 09:24:53 +01:00
2024-06-12 11:12:24 +02:00
2023-10-06 11:01:23 +02:00
2023-10-06 11:01:23 +02:00
2024-04-13 13:07:40 +02:00
2024-12-09 10:32:59 +01:00
2024-05-17 12:01:59 +02:00
2023-09-19 13:21:34 -07:00
2023-12-13 18:45:19 +01:00
2024-04-03 15:28:32 +02:00
2024-01-31 16:18:56 -08:00
2024-10-04 16:29:38 +02:00
2024-12-14 19:59:50 +01:00
2025-01-02 10:32:09 +01:00
2023-12-13 18:45:15 +01:00
2024-08-11 12:47:16 +02:00
2024-04-10 16:36:04 +02:00
2024-07-11 12:49:18 +02:00
2024-12-09 10:31:51 +01:00
2024-07-05 09:34:00 +02:00
2024-04-27 17:11:42 +02:00
2024-05-17 12:02:20 +02:00
2025-01-02 10:32:00 +01:00
2024-08-29 17:33:23 +02:00
2024-06-16 13:47:49 +02:00
2024-12-09 10:32:10 +01:00
2023-11-28 17:19:38 +00:00
2024-11-22 15:38:32 +01:00
2024-01-25 15:35:49 -08:00
2024-12-19 18:11:37 +01:00
2024-10-10 11:58:08 +02:00
2023-11-28 17:19:40 +00:00
2024-03-01 13:35:00 +01:00
2024-04-27 17:11:42 +02:00
2023-09-27 11:19:15 +02:00
2024-07-05 09:34:04 +02:00
2024-08-11 12:47:13 +02:00
2024-11-01 01:58:20 +01:00
2024-10-17 15:24:23 +02:00
2024-11-08 16:28:16 +01:00
2024-11-14 13:19:37 +01:00
2023-11-20 11:58:51 +01:00
2023-11-28 17:20:08 +00:00
2025-01-02 10:32:09 +01:00
2024-06-12 11:12:35 +02:00
2024-06-27 13:49:05 +02:00
2024-04-17 11:19:28 +02:00
2024-11-08 16:28:26 +01:00
2024-04-27 17:11:32 +02:00
2024-10-10 11:57:36 +02:00
2024-11-14 13:19:39 +01:00
2024-12-09 10:33:06 +01:00
2023-09-03 18:10:22 -04:00
2023-11-20 11:59:18 +01:00
2024-04-03 15:28:49 +02:00
2024-10-10 11:57:17 +02:00
2024-01-25 15:35:26 -08:00
2023-09-04 13:44:11 -07:00
2025-01-02 10:32:00 +01:00
2024-12-27 13:58:57 +01:00
2024-07-05 09:33:45 +02:00
2024-10-04 16:30:02 +02:00