diff options
author | Borislav Petkov <[email protected]> | 2018-09-11 11:15:10 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-09-11 12:45:14 +0200 |
commit | 3637897b6c9bc2f12f38956d64724a6d0bbb56fd (patch) | |
tree | a4c916116722b08cc0834816fae3f63eb7902d70 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b7a5eb6aafa95fce45fc4dcbc195cb232fa1b76d (diff) |
x86/paravirt: Clean up native_patch()
When CONFIG_PARAVIRT_SPINLOCKS=n, it generates a warning:
arch/x86/kernel/paravirt_patch_64.c: In function ‘native_patch’:
arch/x86/kernel/paravirt_patch_64.c:89:1: warning: label ‘patch_site’ defined but not used [-Wunused-label]
patch_site:
... but those labels can simply be removed by directly calling the
respective functions there.
Get rid of local variables too, while at it. Also, simplify function
flow for better readability.
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions