All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helen Fornazier <helen.fornazier@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: Helen Fornazier <helen.fornazier@gmail.com>
Subject: [PATCH] Staging: i2o: Add "const" in variable declaration
Date: Wed, 25 Mar 2015 20:58:10 -0300	[thread overview]
Message-ID: <1427327890-5494-1-git-send-email-helen.fornazier@gmail.com> (raw)

This patch fixes the checkpatch.pl warning:

WARNING: char * array declaration might be better as static const
+       static char *FAIL_STATUS[] = {

Signed-off-by: Helen Fornazier <helen.fornazier@gmail.com>
---
 drivers/staging/i2o/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/i2o/debug.c b/drivers/staging/i2o/debug.c
index 12b783b2..f703e00 100644
--- a/drivers/staging/i2o/debug.c
+++ b/drivers/staging/i2o/debug.c
@@ -69,7 +69,7 @@ void i2o_dump_message(struct i2o_message *m)
  */
 static void i2o_report_fail_status(u8 req_status, u32 *msg)
 {
-	static char *FAIL_STATUS[] = {
+	static const char *FAIL_STATUS[] = {
 		"0x80",		/* not used */
 		"SERVICE_SUSPENDED",	/* 0x81 */
 		"SERVICE_TERMINATED",	/* 0x82 */
-- 
1.9.1



             reply	other threads:[~2015-03-25 23:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-25 23:58 Helen Fornazier [this message]
2015-03-26  6:34 ` [Outreachy kernel] [PATCH] Staging: i2o: Add "const" in variable declaration Julia Lawall
2015-03-26 12:12   ` Helen Fornazier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1427327890-5494-1-git-send-email-helen.fornazier@gmail.com \
    --to=helen.fornazier@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.