amlogic: memory_ext: Fix sizeof-array-div warning
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 23:09:39 +0000 (23:09 +0000)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:13:14 +0000 (09:13 +0100)
Change-Id: Ief3bec13d2096c4d94bbbcb0e2654feec2c5dce9

drivers/amlogic/memory_ext/page_trace.c

index 805d07382468e34040552d9a3d3944e313a7796a..994dcc5ade1b542ea5b62e5eca47e342bea5c24a 100644 (file)
@@ -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",