crypto: omap-des - make local functions static
PATCH 1/1 crypto: omap-des - make local functions static
Make omap_des_copy_needed(), omap_des_copy_sgs(), because these functions are used only in this file.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/crypto/omap-des.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/crypto/omap-des.c +2 -2
@@ -535,7 +535,7 @@ static int omap_des_crypt_dma_stop(struct omap_des_dev *dd)return err; } -int omap_des_copy_needed (struct scatterlist *sg) +static int omap_des_copy_needed (struct scatterlist *sg) {while (sg) {if (!IS_ALIGNED (sg->offset,4 ))
@@ -547,7 +547,7 @@ int omap_des_copy_needed(struct scatterlist *sg)return 0 ; } -int omap_des_copy_sgs (struct omap_des_dev *dd) +static int omap_des_copy_sgs (struct omap_des_dev *dd) {void *buf_in, *buf_out;int pages;
Signature · 1 line
1.7.10.4
Quoted 4 lines · Jingoo Han
Make
omap_des_copy_needed(),omap_des_copy_sgs(), because these functions are used only in this file.Signed-off-by Jingoo Han <[email protected]>
Ok with me,
Acked-by Joel Fernandes <[email protected]>
Quoted 27 lines
--- drivers/crypto/omap-des.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/crypto/omap-des.c +2
-2@@ -535,7 +535,7 @@ static int omap_des_crypt_dma_stop(struct omap_des_dev *dd)return err; } -int omap_des_copy_needed (struct scatterlist *sg) +static int omap_des_copy_needed (struct scatterlist *sg) {while (sg) {if (!IS_ALIGNED (sg->offset,4 ))@@ -547,7 +547,7 @@ int omap_des_copy_needed(struct scatterlist *sg)return 0 ; } -int omap_des_copy_sgs (struct omap_des_dev *dd) +static int omap_des_copy_sgs (struct omap_des_dev *dd) {void *buf_in, *buf_out;int pages;
Herbert Xu
maintainerQuoted 8 lines · Joel Fernandes
Quoted 4 lines · Jingoo Han
Make
omap_des_copy_needed(),omap_des_copy_sgs(), because these functions are used only in this file.Signed-off-by Jingoo Han <[email protected]>Ok with me,
Acked-by Joel Fernandes <[email protected]>
Patch applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt