From: Stricted Date: Sat, 19 Jun 2021 23:09:39 +0000 (+0000) Subject: amlogic: memory_ext: Fix sizeof-array-div warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5b7261d2624ee9fbf24953fb53da15bafbb4bcc2;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git amlogic: memory_ext: Fix sizeof-array-div warning Change-Id: Ief3bec13d2096c4d94bbbcb0e2654feec2c5dce9 --- 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",