livepatch/selftest: Clean up shadow variable names and type
authorPetr Mladek <pmladek@suse.com>
Thu, 16 Jan 2020 15:31:43 +0000 (16:31 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 17 Jan 2020 10:12:06 +0000 (11:12 +0100)
commitc24c57a4cc8a2f64de32084958920773c0906bc7
treea4b26438dfb926b6ce4ebe08b22a7181a3a4d5b6
parent8f6b88662cacb1d01398c1e8be52aeac433189f6
livepatch/selftest: Clean up shadow variable names and type

The shadow variable selftest is quite tricky. Especially it is problematic
to understand what values are stored, returned, and printed.

Make it easier to understand by using "int *var, **sv" variables
consistently everywhere instead of the generic "void *", "ret",
and "ctor_data".

Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
lib/livepatch/test_klp_shadow_vars.c