mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-25 23:02:51 -04:00
perf jitdump: Constify variables storing the result of strchr() on const tables
As newer glibcs will propagate the const attribute of the searched table to its return. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -758,7 +758,7 @@ jit_inject(struct jit_buf_desc *jd, const char *path)
|
||||
static int
|
||||
jit_detect(const char *mmap_name, pid_t pid, struct nsinfo *nsi, bool *in_pidns)
|
||||
{
|
||||
char *p;
|
||||
const char *p;
|
||||
char *end = NULL;
|
||||
pid_t pid2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user