diff mbox series

[1/1] crypto: make mod_exp_sw() static

Message ID 20200119184804.78190-1-xypron.glpk@gmx.de
State Accepted
Commit 94a8e83a60bd82e6b3059bddd56187691b782896
Headers show
Series [1/1] crypto: make mod_exp_sw() static | expand

Commit Message

Heinrich Schuchardt Jan. 19, 2020, 6:48 p.m. UTC
Function mod_exp_sw() is only used via the operators of the uclass.
It is not defined in any include.

Make mod_exp_sw() static.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/crypto/rsa_mod_exp/mod_exp_sw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.24.1

Comments

Tom Rini Jan. 25, 2020, 5:09 p.m. UTC | #1
On Sun, Jan 19, 2020 at 07:48:04PM +0100, Heinrich Schuchardt wrote:

> Function mod_exp_sw() is only used via the operators of the uclass.
> It is not defined in any include.
> 
> Make mod_exp_sw() static.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c
index 5a098f83cc..46b9f1825c 100644
--- a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c
+++ b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c
@@ -9,8 +9,8 @@ 
 #include <dm.h>
 #include <u-boot/rsa-mod-exp.h>

-int mod_exp_sw(struct udevice *dev, const uint8_t *sig, uint32_t sig_len,
-		struct key_prop *prop, uint8_t *out)
+static int mod_exp_sw(struct udevice *dev, const uint8_t *sig, uint32_t sig_len,
+		      struct key_prop *prop, uint8_t *out)
 {
 	int ret = 0;