[PATCH 19/23] lscpu: add missing initializers to struct lscpu_coldesc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



warning: missing field 'is_abbr' initializer [-Wmissing-field-initializers]

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 sys-utils/lscpu.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index ef59410..30f2be6 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -300,17 +300,17 @@ struct lscpu_coldesc {
 static struct lscpu_coldesc coldescs[] =
 {
 	[COL_CPU]          = { "CPU", N_("logical CPU number"), 1 },
-	[COL_CORE]         = { "CORE", N_("logical core number") },
-	[COL_SOCKET]       = { "SOCKET", N_("logical socket number") },
-	[COL_NODE]         = { "NODE", N_("logical NUMA node number") },
-	[COL_BOOK]         = { "BOOK", N_("logical book number") },
-	[COL_CACHE]        = { "CACHE", N_("shows how caches are shared between CPUs") },
-	[COL_POLARIZATION] = { "POLARIZATION", N_("CPU dispatching mode on virtual hardware") },
-	[COL_ADDRESS]      = { "ADDRESS", N_("physical address of a CPU") },
-	[COL_CONFIGURED]   = { "CONFIGURED", N_("shows if the hypervisor has allocated the CPU") },
-	[COL_ONLINE]       = { "ONLINE", N_("shows if Linux currently makes use of the CPU") },
-	[COL_MAXMHZ]	   = { "MAXMHZ", N_("shows the maximum MHz of the CPU") },
-	[COL_MINMHZ]	   = { "MINMHZ", N_("shows the minimum MHz of the CPU") }
+	[COL_CORE]         = { "CORE", N_("logical core number"), 0 },
+	[COL_SOCKET]       = { "SOCKET", N_("logical socket number"), 0 },
+	[COL_NODE]         = { "NODE", N_("logical NUMA node number"), 0 },
+	[COL_BOOK]         = { "BOOK", N_("logical book number"), 0 },
+	[COL_CACHE]        = { "CACHE", N_("shows how caches are shared between CPUs"), 0 },
+	[COL_POLARIZATION] = { "POLARIZATION", N_("CPU dispatching mode on virtual hardware"), 0 },
+	[COL_ADDRESS]      = { "ADDRESS", N_("physical address of a CPU"), 0 },
+	[COL_CONFIGURED]   = { "CONFIGURED", N_("shows if the hypervisor has allocated the CPU"), 0 },
+	[COL_ONLINE]       = { "ONLINE", N_("shows if Linux currently makes use of the CPU"), 0 },
+	[COL_MAXMHZ]	   = { "MAXMHZ", N_("shows the maximum MHz of the CPU"), 0 },
+	[COL_MINMHZ]	   = { "MINMHZ", N_("shows the minimum MHz of the CPU"), 0 }
 };
 
 static int
-- 
2.1.1

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux