[PATCH v1 1/7] Revert "panic: fix compilation error (`make W=1`)"

Andy Shevchenko posted 7 patches 2 months, 3 weeks ago
[PATCH v1 1/7] Revert "panic: fix compilation error (`make W=1`)"
Posted by Andy Shevchenko 2 months, 3 weeks ago
This reverts commit d66eaf0a73fbe3dfbe95c473ef12c68d582e5ce2.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 lib/sys_info.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/sys_info.c b/lib/sys_info.c
index 779f8725b194..46d6f4f1ad2a 100644
--- a/lib/sys_info.c
+++ b/lib/sys_info.c
@@ -49,11 +49,13 @@ unsigned long sys_info_parse_param(char *str)
 
 #ifdef CONFIG_SYSCTL
 
+static const char sys_info_avail[] = "tasks,mem,timers,locks,ftrace,all_bt,blocked_tasks";
+
 int sysctl_sys_info_handler(const struct ctl_table *ro_table, int write,
 					  void *buffer, size_t *lenp,
 					  loff_t *ppos)
 {
-	char names[sizeof("tasks,mem,timers,locks,ftrace,all_bt,blocked_tasks") + 1];
+	char names[sizeof(sys_info_avail) + 1];
 	struct ctl_table table;
 	unsigned long *si_bits_global;
 
-- 
2.47.2