This pointer is derived from other const pointers. Signed-off-by: Alejandro Colomar --- Hi, This was found by changing some APIs to preserve the const qualifier in the return type if present in the input. Have a lovely night! Alex kernel/bpf/helpers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c index 58e357302850..f988dbead587 100644 --- a/kernel/bpf/helpers.c +++ b/kernel/bpf/helpers.c @@ -857,7 +857,8 @@ int bpf_bprintf_prepare(const char *fmt, u32 fmt_size, const u64 *raw_args, u32 num_args, struct bpf_bprintf_data *data) { bool get_buffers = (data->get_bin_args && num_args) || data->get_buf; - char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end, *fmt_end; + char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end; + const char *fmt_end; struct bpf_bprintf_buffers *buffers = NULL; size_t sizeof_cur_arg, sizeof_cur_ip; int err, i, num_spec = 0; -- 2.55.0