From 5b7261d2624ee9fbf24953fb53da15bafbb4bcc2 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 23:09:39 +0000 Subject: [PATCH] amlogic: memory_ext: Fix sizeof-array-div warning Change-Id: Ief3bec13d2096c4d94bbbcb0e2654feec2c5dce9 --- drivers/amlogic/memory_ext/page_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/memory_ext/page_trace.c b/drivers/amlogic/memory_ext/page_trace.c index 805d07382468..994dcc5ade1b 100644 --- a/drivers/amlogic/memory_ext/page_trace.c +++ b/drivers/amlogic/memory_ext/page_trace.c @@ -1397,7 +1397,7 @@ int slab_trace_mark_object(void *object, unsigned long ip, if (save_obj_stack(stack, SLAB_STACK_DEP)) return -EINVAL; hash = jhash2((unsigned int *)stack, - sizeof(stack) / sizeof(int), 0x9747b28c); + sizeof(stack) / sizeof(unsigned long), 0x9747b28c); record_stack(hash, stack); trace->object_ip[index] = hash; pr_debug("%s, mk object:%p,%lx, idx:%ld, trace:%p, group:%p,%ld, %pf\n", -- 2.20.1