OSDN Git Service

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, 17 Feb 2023 04:43:49 +0000 (20:43 -0800)
commitdf225c877d898992740d26250727a16db65c370d
tree6d977dceb336e547bfe34fc074c4e18c507c8b97
parent735df3c3a3493cbedfa86739eec6e2ee37fe95f8
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