crypto: ccree – add missing inline qualifier [Linux 5.0]

This Linux kernel change "crypto: ccree – add missing inline qualifier" is included in the Linux 5.0 release. This change is authored by Gilad Ben-Yossef <gilad [at] benyossef.com> on Mon Feb 11 16:27:58 2019 +0200. The commit for this change in Linux stable tree is f1071c3 (patch).

crypto: ccree - add missing inline qualifier

Commit 1358c13a48c4 ("crypto: ccree - fix resume race condition on init")
was missing a "inline" qualifier for stub function used when CONFIG_PM
is not set causing a build warning.

Fixes: 1358c13a48c4 ("crypto: ccree - fix resume race condition on init")
Cc: [email protected] # v4.20
Signed-off-by: Gilad Ben-Yossef <[email protected]>
Acked-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/crypto/ccree/cc_pm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/ccree/cc_pm.h b/drivers/crypto/ccree/cc_pm.h
index f626243..907a6db 100644
--- a/drivers/crypto/ccree/cc_pm.h
+++ b/drivers/crypto/ccree/cc_pm.h
@@ -30,7 +30,7 @@ static inline int cc_pm_init(struct cc_drvdata *drvdata)
    return 0;
 }

-static void cc_pm_go(struct cc_drvdata *drvdata) {}
+static inline void cc_pm_go(struct cc_drvdata *drvdata) {}

 static inline void cc_pm_fini(struct cc_drvdata *drvdata) {}

Leave a Reply

Your email address will not be published. Required fields are marked *