Revert "crypto: talitos - export the talitos_submit function"
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 21 May 2019 13:34:20 +0000 (13:34 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:30:05 +0000 (15:30 +0800)
There is no other file using talitos_submit in the kernel tree,
so it doesn't need to be exported nor made global.

This reverts commit 865d506155b117edc7e668ced373030ce7108ce9.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Fixes: 865d506155b1 ("crypto: talitos - export the talitos_submit function")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c
drivers/crypto/talitos.h

index 12917fd54bcb9eeedb0fc06a8c3e6f17728b8607..6fe900d8e5d8760e954833c7222d947a41072ff3 100644 (file)
@@ -278,11 +278,11 @@ static int init_device(struct device *dev)
  * callback must check err and feedback in descriptor header
  * for device processing status.
  */
-int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
-                  void (*callback)(struct device *dev,
-                                   struct talitos_desc *desc,
-                                   void *context, int error),
-                  void *context)
+static int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
+                         void (*callback)(struct device *dev,
+                                          struct talitos_desc *desc,
+                                          void *context, int error),
+                         void *context)
 {
        struct talitos_private *priv = dev_get_drvdata(dev);
        struct talitos_request *request;
@@ -332,7 +332,6 @@ int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
 
        return -EINPROGRESS;
 }
-EXPORT_SYMBOL(talitos_submit);
 
 /*
  * process what was done, notify callback of error if not
index dbedd0956c8a855b56d35ee28771358681cbaaf3..95e97951b9248775820c57a29d1f5f6cf3eb171b 100644 (file)
@@ -150,12 +150,6 @@ struct talitos_private {
        bool rng_registered;
 };
 
-extern int talitos_submit(struct device *dev, int ch, struct talitos_desc *desc,
-                         void (*callback)(struct device *dev,
-                                          struct talitos_desc *desc,
-                                          void *context, int error),
-                         void *context);
-
 /* .features flag */
 #define TALITOS_FTR_SRC_LINK_TBL_LEN_INCLUDES_EXTENT 0x00000001
 #define TALITOS_FTR_HW_AUTH_CHECK 0x00000002