Skip to content

Commit 26f25b2

Browse files
Jingoo Hanherbertx
authored andcommitted
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]> Acked-by: Joel Fernandes <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent ae12fe2 commit 26f25b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/omap-des.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static int omap_des_crypt_dma_stop(struct omap_des_dev *dd)
535535
return err;
536536
}
537537

538-
int omap_des_copy_needed(struct scatterlist *sg)
538+
static int omap_des_copy_needed(struct scatterlist *sg)
539539
{
540540
while (sg) {
541541
if (!IS_ALIGNED(sg->offset, 4))
@@ -547,7 +547,7 @@ int omap_des_copy_needed(struct scatterlist *sg)
547547
return 0;
548548
}
549549

550-
int omap_des_copy_sgs(struct omap_des_dev *dd)
550+
static int omap_des_copy_sgs(struct omap_des_dev *dd)
551551
{
552552
void *buf_in, *buf_out;
553553
int pages;

0 commit comments

Comments
 (0)