* [PATCH] staging:ccree Fix char * array declaration
@ 2017-09-21 6:41 Janani Sankara Babu
0 siblings, 0 replies; only message in thread
From: Janani Sankara Babu @ 2017-09-21 6:41 UTC (permalink / raw)
To: gregkh
Cc: gilad, linux-crypto, driverdev-devel, devel, linux-kernel,
Janani Sankara Babu
This patch solves the following warning shown by the checkpatch script
Warning: char * array declaration might be better as static const
Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
drivers/staging/ccree/ssi_sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/ccree/ssi_sysfs.c b/drivers/staging/ccree/ssi_sysfs.c
index dbcd163..87cef46 100644
--- a/drivers/staging/ccree/ssi_sysfs.c
+++ b/drivers/staging/ccree/ssi_sysfs.c
@@ -300,7 +300,7 @@ static ssize_t ssi_sys_regdump_show(struct kobject *kobj,
static ssize_t ssi_sys_help_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{
- char *help_str[] = {
+ static const char *help_str[] = {
"cat reg_dump ", "Print several of CC register values",
#if defined CC_CYCLE_COUNT
"cat stats_host ", "Print host statistics",
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-21 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-21 6:41 [PATCH] staging:ccree Fix char * array declaration Janani Sankara Babu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®