diff options
author | Sami Kerola | 2017-02-12 01:19:33 +0100 |
---|---|---|
committer | Karel Zak | 2017-02-20 12:58:49 +0100 |
commit | 2ba641e5f3879593e36fa84872289872a4060d03 (patch) | |
tree | 4381e82a91b01343555d803c8afe772e1d15826d /sys-utils/lscpu.c | |
parent | misc: do not use plain 0 as NULL [smatch scan] (diff) | |
download | kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.gz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.xz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.zip |
misc: add static keyword to where needed [smatch scan]
text-utils/rev.c:68:9: warning: symbol 'buf' was not declared. Should it be
static?
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 92ffba44a..683fd66f7 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -104,14 +104,14 @@ enum { VIRT_FULL, VIRT_CONT }; -const char *virt_types[] = { +static const char *virt_types[] = { [VIRT_NONE] = N_("none"), [VIRT_PARA] = N_("para"), [VIRT_FULL] = N_("full"), [VIRT_CONT] = N_("container"), }; -const char *hv_vendors[] = { +static const char *hv_vendors[] = { [HYPER_NONE] = NULL, [HYPER_XEN] = "Xen", [HYPER_KVM] = "KVM", @@ -130,7 +130,7 @@ const char *hv_vendors[] = { [HYPER_WSL] = "Windows Subsystem for Linux" }; -const int hv_vendor_pci[] = { +static const int hv_vendor_pci[] = { [HYPER_NONE] = 0x0000, [HYPER_XEN] = 0x5853, [HYPER_KVM] = 0x0000, @@ -139,7 +139,7 @@ const int hv_vendor_pci[] = { [HYPER_VBOX] = 0x80ee, }; -const int hv_graphics_pci[] = { +static const int hv_graphics_pci[] = { [HYPER_NONE] = 0x0000, [HYPER_XEN] = 0x0001, [HYPER_KVM] = 0x0000, @@ -169,7 +169,7 @@ enum { DISP_VERTICAL = 1 }; -const char *disp_modes[] = { +static const char *disp_modes[] = { [DISP_HORIZONTAL] = N_("horizontal"), [DISP_VERTICAL] = N_("vertical") }; @@ -188,7 +188,7 @@ struct polarization_modes { char *readable; }; -struct polarization_modes polar_modes[] = { +static struct polarization_modes polar_modes[] = { [POLAR_UNKNOWN] = {"U", "-"}, [POLAR_VLOW] = {"VL", "vert-low"}, [POLAR_VMEDIUM] = {"VM", "vert-medium"}, |