]> Git Repo - J-linux.git/commitdiff
kcsan: Remove redundant call of kallsyms_lookup_name()
authorRan Xiaokai <[email protected]>
Wed, 25 Sep 2024 14:31:51 +0000 (14:31 +0000)
committerMarco Elver <[email protected]>
Mon, 14 Oct 2024 14:44:56 +0000 (16:44 +0200)
There is no need to repeatedly call kallsyms_lookup_name, we can reuse
the return value of this function.

Signed-off-by: Ran Xiaokai <[email protected]>
Signed-off-by: Marco Elver <[email protected]>
kernel/kcsan/debugfs.c

index b14072071889fbce38e1d1dcccc46b91146e7e0b..2af39ba5b70b9b546d5e5677e957da01706d1a22 100644 (file)
@@ -179,8 +179,7 @@ retry_alloc:
        }
 
        /* Note: deduplicating should be done in userspace. */
-       report_filterlist.addrs[report_filterlist.used++] =
-               kallsyms_lookup_name(func);
+       report_filterlist.addrs[report_filterlist.used++] = addr;
        report_filterlist.sorted = false;
 
        raw_spin_unlock_irqrestore(&report_filterlist_lock, flags);
This page took 0.051544 seconds and 4 git commands to generate.