Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1247093 > unrolled thread

[PATCH] crypto: n2: set array of const as const

Started byLABBE Corentin <clabbe.montjoie@gmail.com>
First post2015-10-14 21:20 +0200
Last post2015-10-15 15:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] crypto: n2: set array of const as const LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-10-14 21:20 +0200
    Re: [PATCH] crypto: n2: set array of const as const Herbert Xu <herbert@gondor.apana.org.au> - 2015-10-15 15:30 +0200

#1247093 — [PATCH] crypto: n2: set array of const as const

FromLABBE Corentin <clabbe.montjoie@gmail.com>
Date2015-10-14 21:20 +0200
Subject[PATCH] crypto: n2: set array of const as const
Message-ID<qjzKF-7SB-3@gated-at.bofh.it>
Some array of const char are not set as const.
This patch fix that.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
---
 drivers/crypto/n2_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c
index 8ea6c32..febbd5e 100644
--- a/drivers/crypto/n2_core.c
+++ b/drivers/crypto/n2_core.c
@@ -34,7 +34,7 @@
 #define DRV_MODULE_VERSION	"0.2"
 #define DRV_MODULE_RELDATE	"July 28, 2011"
 
-static char version[] =
+static const char version[] =
 	DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
 
 MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
-- 
2.4.9

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1247790

FromHerbert Xu <herbert@gondor.apana.org.au>
Date2015-10-15 15:30 +0200
Message-ID<qjQLv-7Gi-3@gated-at.bofh.it>
In reply to#1247093
On Wed, Oct 14, 2015 at 09:15:13PM +0200, LABBE Corentin wrote:
> Some array of const char are not set as const.
> This patch fix that.
> 
> Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>

Applied.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web