projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d9b07
)
amlogic: memory_ext: Fix sizeof-array-div warning
author
Stricted
<info@stricted.net>
Sat, 19 Jun 2021 23:09:39 +0000
(23:09 +0000)
committer
Nolen Johnson
<johnsonnolen@gmail.com>
Sat, 3 Jul 2021 01:04:51 +0000
(21:04 -0400)
Change-Id: Ief3bec13d2096c4d94bbbcb0e2654feec2c5dce9
drivers/amlogic/memory_ext/page_trace.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/amlogic/memory_ext/page_trace.c
b/drivers/amlogic/memory_ext/page_trace.c
index 805d07382468e34040552d9a3d3944e313a7796a..994dcc5ade1b542ea5b62e5eca47e342bea5c24a 100644
(file)
--- 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",