]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kernel/alternative.c
x86/alternatives: Make the x86nops[] symbol static
authorPavel Skripkin <paskripkin@gmail.com>
Thu, 6 May 2021 19:07:26 +0000 (22:07 +0300)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 10:22:56 +0000 (12:22 +0200)
commit64e1f5872a8c3d80bce4686b4ab5dbc6e6bd30c5
tree3c18eb93362287858a6e4674179d5da837306841
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
x86/alternatives: Make the x86nops[] symbol static

Sparse says:

  arch/x86/kernel/alternative.c:78:21: warning: symbol 'x86nops' was not declared. Should it be static?

Since x86nops[] is not used outside this file, Sparse is right and it can be made static.

Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210506190726.15575-1-paskripkin@gmail.com
arch/x86/kernel/alternative.c