linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] crypto: mv_cesa - Staticize local symbols
@ 2013-09-13 11:36 Sachin Kamat
  2013-09-13 11:36 ` [PATCH 2/3] crypto: omap-aes " Sachin Kamat
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sachin Kamat @ 2013-09-13 11:36 UTC (permalink / raw)
  To: linux-crypto; +Cc: herbert, sachin.kamat, Sebastian Andrzej Siewior

Local symbols used only in this file are made static.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
---
 drivers/crypto/mv_cesa.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index 3374a3e..f9b9560 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -907,7 +907,7 @@ static int mv_cra_hash_hmac_sha1_init(struct crypto_tfm *tfm)
 	return mv_cra_hash_init(tfm, "sha1", COP_HMAC_SHA1, SHA1_BLOCK_SIZE);
 }
 
-irqreturn_t crypto_int(int irq, void *priv)
+static irqreturn_t crypto_int(int irq, void *priv)
 {
 	u32 val;
 
@@ -928,7 +928,7 @@ irqreturn_t crypto_int(int irq, void *priv)
 	return IRQ_HANDLED;
 }
 
-struct crypto_alg mv_aes_alg_ecb = {
+static struct crypto_alg mv_aes_alg_ecb = {
 	.cra_name		= "ecb(aes)",
 	.cra_driver_name	= "mv-ecb-aes",
 	.cra_priority	= 300,
@@ -951,7 +951,7 @@ struct crypto_alg mv_aes_alg_ecb = {
 	},
 };
 
-struct crypto_alg mv_aes_alg_cbc = {
+static struct crypto_alg mv_aes_alg_cbc = {
 	.cra_name		= "cbc(aes)",
 	.cra_driver_name	= "mv-cbc-aes",
 	.cra_priority	= 300,
@@ -975,7 +975,7 @@ struct crypto_alg mv_aes_alg_cbc = {
 	},
 };
 
-struct ahash_alg mv_sha1_alg = {
+static struct ahash_alg mv_sha1_alg = {
 	.init = mv_hash_init,
 	.update = mv_hash_update,
 	.final = mv_hash_final,
@@ -999,7 +999,7 @@ struct ahash_alg mv_sha1_alg = {
 		 }
 };
 
-struct ahash_alg mv_hmac_sha1_alg = {
+static struct ahash_alg mv_hmac_sha1_alg = {
 	.init = mv_hash_init,
 	.update = mv_hash_update,
 	.final = mv_hash_final,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] crypto: omap-aes - Staticize local symbols
  2013-09-13 11:36 [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Sachin Kamat
@ 2013-09-13 11:36 ` Sachin Kamat
  2013-09-13 11:36 ` [PATCH 3/3] crypto: tegra-aes - Staticize tegra_aes_cra_exit Sachin Kamat
  2013-09-23 20:08 ` [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Herbert Xu
  2 siblings, 0 replies; 4+ messages in thread
From: Sachin Kamat @ 2013-09-13 11:36 UTC (permalink / raw)
  To: linux-crypto; +Cc: herbert, sachin.kamat, Dmitry Kasatkin

Local symbols used only in this file are made static.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
---
 drivers/crypto/omap-aes.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c
index ce791c2..e1e58d0 100644
--- a/drivers/crypto/omap-aes.c
+++ b/drivers/crypto/omap-aes.c
@@ -554,7 +554,7 @@ static int omap_aes_crypt_dma_stop(struct omap_aes_dev *dd)
 	return err;
 }
 
-int omap_aes_check_aligned(struct scatterlist *sg)
+static int omap_aes_check_aligned(struct scatterlist *sg)
 {
 	while (sg) {
 		if (!IS_ALIGNED(sg->offset, 4))
@@ -566,7 +566,7 @@ int omap_aes_check_aligned(struct scatterlist *sg)
 	return 0;
 }
 
-int omap_aes_copy_sgs(struct omap_aes_dev *dd)
+static int omap_aes_copy_sgs(struct omap_aes_dev *dd)
 {
 	void *buf_in, *buf_out;
 	int pages;
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] crypto: tegra-aes - Staticize tegra_aes_cra_exit
  2013-09-13 11:36 [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Sachin Kamat
  2013-09-13 11:36 ` [PATCH 2/3] crypto: omap-aes " Sachin Kamat
@ 2013-09-13 11:36 ` Sachin Kamat
  2013-09-23 20:08 ` [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Herbert Xu
  2 siblings, 0 replies; 4+ messages in thread
From: Sachin Kamat @ 2013-09-13 11:36 UTC (permalink / raw)
  To: linux-crypto; +Cc: herbert, sachin.kamat, Stephen Warren

'tegra_aes_cra_exit' is used only in this file.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Stephen Warren <swarren@wwwdotorg.org>
---
 drivers/crypto/tegra-aes.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/tegra-aes.c b/drivers/crypto/tegra-aes.c
index 2d58da9..4f5f715 100644
--- a/drivers/crypto/tegra-aes.c
+++ b/drivers/crypto/tegra-aes.c
@@ -804,7 +804,7 @@ static int tegra_aes_cra_init(struct crypto_tfm *tfm)
 	return 0;
 }
 
-void tegra_aes_cra_exit(struct crypto_tfm *tfm)
+static void tegra_aes_cra_exit(struct crypto_tfm *tfm)
 {
 	struct tegra_aes_ctx *ctx =
 		crypto_ablkcipher_ctx((struct crypto_ablkcipher *)tfm);
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] crypto: mv_cesa - Staticize local symbols
  2013-09-13 11:36 [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Sachin Kamat
  2013-09-13 11:36 ` [PATCH 2/3] crypto: omap-aes " Sachin Kamat
  2013-09-13 11:36 ` [PATCH 3/3] crypto: tegra-aes - Staticize tegra_aes_cra_exit Sachin Kamat
@ 2013-09-23 20:08 ` Herbert Xu
  2 siblings, 0 replies; 4+ messages in thread
From: Herbert Xu @ 2013-09-23 20:08 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-crypto, Sebastian Andrzej Siewior

On Fri, Sep 13, 2013 at 05:06:45PM +0530, Sachin Kamat wrote:
> Local symbols used only in this file are made static.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>

All applied.  Thanks.
-- 
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-23 20:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 11:36 [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Sachin Kamat
2013-09-13 11:36 ` [PATCH 2/3] crypto: omap-aes " Sachin Kamat
2013-09-13 11:36 ` [PATCH 3/3] crypto: tegra-aes - Staticize tegra_aes_cra_exit Sachin Kamat
2013-09-23 20:08 ` [PATCH 1/3] crypto: mv_cesa - Staticize local symbols Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).