diff options
author | Yannick Cote <ycote@redhat.com> | 2020-06-03 21:20:56 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2020-06-08 11:40:30 +0300 |
commit | 6a26a9df169d81aba244d6496e4381401d04e281 (patch) | |
tree | e514a209b48fb383db888c6b86c5ea4a9e147862 /fs/binfmt_em86.c | |
parent | 547840bd5ae52a9d864abddcb91ea491a78d8199 (diff) | |
download | linux-6a26a9df169d81aba244d6496e4381401d04e281.tar.xz |
selftests/livepatch: rework test-klp-shadow-vars
The initial idea was to make a change to please cppcheck and remove void
pointer arithmetics found a few times:
portability: 'obj' is of type 'void *'. When using void pointers
in calculations, the behaviour is undefined.
[arithOperationsOnVoidPointer]
The rest of the changes are to help make the test read as an example
while continuing to verify the shadow variable code. The logic of the
test is unchanged but restructured to use descriptive names.
Signed-off-by: Yannick Cote <ycote@redhat.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200603182058.109470-3-ycote@redhat.com
Diffstat (limited to 'fs/binfmt_em86.c')
0 files changed, 0 insertions, 0 deletions