Content-Type: multipart/mixed; boundary="===============0060946929310686546==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] tcp: authopt: __tcp_authopt_calc_mac() can be static Date: Thu, 26 Aug 2021 10:19:46 +0800 Message-ID: <20210826021946.GA11889@2dc7eb59d52f> In-Reply-To: <3e8956d3895a05ca1e7672531cf88b5445b456f3.1629840814.git.cdleonard@gmail.com> List-Id: --===============0060946929310686546== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable net/ipv4/tcp_authopt.c:820:5: warning: symbol '__tcp_authopt_calc_mac' was = not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- tcp_authopt.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/ipv4/tcp_authopt.c b/net/ipv4/tcp_authopt.c index 2a3463ad68967..1b81fa54a9f2a 100644 --- a/net/ipv4/tcp_authopt.c +++ b/net/ipv4/tcp_authopt.c @@ -817,11 +817,11 @@ static int tcp_authopt_hash_packet(struct crypto_shas= h *tfm, return crypto_shash_final(desc, macbuf); } = -int __tcp_authopt_calc_mac(struct sock *sk, - struct sk_buff *skb, - struct tcp_authopt_key_info *key, - bool input, - char *macbuf) +static int __tcp_authopt_calc_mac(struct sock *sk, + struct sk_buff *skb, + struct tcp_authopt_key_info *key, + bool input, + char *macbuf) { struct crypto_shash *mac_tfm; u8 traffic_key[TCP_AUTHOPT_MAX_TRAFFIC_KEY_LEN]; --===============0060946929310686546==--