Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 955ebf10 authored by Faiyaz Mohammed's avatar Faiyaz Mohammed
Browse files

mm: slub: add type casting in alloc_trace_locations to avoid build warning



Add type casting in alloc_trace_locations to avoid build below warning.

mm/slub.c: In function ‘alloc_trace_locations’:
mm/slub.c:6322:27: warning: format ‘%p’ expects argument of type ‘void *’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
error, forbidden warning: slub.c:6322.

Change-Id: I87e337cc73c36274aaaa8dfd384f3f80f0d2d79d
Signed-off-by: default avatarFaiyaz Mohammed <faiyazm@codeaurora.org>
parent 376dd78d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6145,7 +6145,7 @@ static int alloc_trace_locations(struct seq_file *seq, struct kmem_cache *s,

		seq_printf(seq,
		"alloc_list: call_site=%pS count=%zu object_size=%zu slab_size=%zu slab_name=%s\n",
			l->addr, l->count, s->object_size, s->size, s->name);
			(void *)l->addr, l->count, s->object_size, s->size, s->name);
#ifdef CONFIG_STACKTRACE
		for (j = 0; j < TRACK_ADDRS_COUNT; j++)
			if (l->addrs[j]) {