diff mbox

[RFC] chtls_netdev() can be static

Message ID 20180215122639.GA128160@lkp-hsx02 (mailing list archive)
State Not Applicable
Delegated to: Herbert Xu
Headers show

Commit Message

kernel test robot Feb. 15, 2018, 12:26 p.m. UTC
Fixes: 5995a3b59239 ("Makefile Kconfig")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
 chtls_main.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/drivers/crypto/chelsio/chtls/chtls_main.c b/drivers/crypto/chelsio/chtls/chtls_main.c
index 58efb4a..3452f44 100644
--- a/drivers/crypto/chelsio/chtls/chtls_main.c
+++ b/drivers/crypto/chelsio/chtls/chtls_main.c
@@ -136,8 +136,8 @@  static int chtls_stop_listen(struct sock *sk)
 	return 0;
 }
 
-struct net_device *chtls_netdev(struct tls_device *dev,
-				struct net_device *netdev)
+static struct net_device *chtls_netdev(struct tls_device *dev,
+				       struct net_device *netdev)
 {
 	struct chtls_dev *cdev = to_chtls_dev(dev);
 	int i;
@@ -149,12 +149,12 @@  struct net_device *chtls_netdev(struct tls_device *dev,
 	return cdev->ports[i];
 }
 
-void chtls_update_prot(struct tls_device *dev, struct sock *sk)
+static void chtls_update_prot(struct tls_device *dev, struct sock *sk)
 {
 	sk->sk_prot = &chtls_base_prot;
 }
 
-int chtls_inline_feature(struct tls_device *dev)
+static int chtls_inline_feature(struct tls_device *dev)
 {
 	struct chtls_dev *cdev = to_chtls_dev(dev);
 	struct net_device *netdev;
@@ -168,14 +168,14 @@  int chtls_inline_feature(struct tls_device *dev)
 	return 1;
 }
 
-int chtls_create_hash(struct tls_device *dev, struct sock *sk)
+static int chtls_create_hash(struct tls_device *dev, struct sock *sk)
 {
 	if (sk->sk_state == TCP_LISTEN)
 		return chtls_start_listen(sk);
 	return 0;
 }
 
-void chtls_destroy_hash(struct tls_device *dev, struct sock *sk)
+static void chtls_destroy_hash(struct tls_device *dev, struct sock *sk)
 {
 	if (sk->sk_state == TCP_LISTEN)
 		chtls_stop_listen(sk);