]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/stackdepot: annotate init and early init functions
authorAndrey Konovalov <andreyknvl@google.com>
Fri, 10 Feb 2023 21:15:53 +0000 (22:15 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 23:36:10 +0000 (15:36 -0800)
commit9b2b9d7b1643ebc870e019717bad7d4462b0ece3
tree1cc716a483c94818548fbbc7d27e8ee4542fedc5
parent2864485e2fdcea319784ba974fba4f45ebda26ef
lib/stackdepot: annotate init and early init functions

Add comments to stack_depot_early_init and stack_depot_init to explain
certain parts of their implementation.

Also add a pr_info message to stack_depot_early_init similar to the one
in stack_depot_init.

Also move the scale variable in stack_depot_init to the scope where it
is being used.

Link: https://lkml.kernel.org/r/d17fbfbd4d73f38686c5e3d4824a6d62047213a1.1676063693.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/stackdepot.c