[cel:topic-rpc-with-tls 1/8] net/tls/ecdh.c:144:1: warning: no previous prototype for 'ttls_ecdh_read_params'

From: kernel test robot
Date: Tue Dec 07 2021 - 15:57:31 EST


tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-rpc-with-tls
head: 21c40b0003975c1afe4b59126aba2c547103ccae
commit: 674ca98f07d168e6fbeea6852b81d3536b26d864 [1/8] Port of Tempesta TLS handshakes to the Linux 5.10.68
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20211208/202112080428.xNBYfZzC-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git/commit/?id=674ca98f07d168e6fbeea6852b81d3536b26d864
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel topic-rpc-with-tls
git checkout 674ca98f07d168e6fbeea6852b81d3536b26d864
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash net/sunrpc/ net/tls/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> net/tls/ecdh.c:144:1: warning: no previous prototype for 'ttls_ecdh_read_params' [-Wmissing-prototypes]
144 | ttls_ecdh_read_params(TlsECDHCtx *ctx, const unsigned char **buf,
| ^~~~~~~~~~~~~~~~~~~~~
--
>> net/tls/error.c:40:6: warning: no previous prototype for 'ttls_strerror' [-Wmissing-prototypes]
40 | void ttls_strerror(int ret, char *buf, size_t buflen)
| ^~~~~~~~~~~~~

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for CRYPTO_SHA1_SSSE3
Depends on CRYPTO && X86 && 64BIT
Selected by
- TLS_HANDSHAKE && NET && TLS


vim +/ttls_ecdh_read_params +144 net/tls/ecdh.c

135
136 /**
137 * Read the ServerKeyExhange parameters (RFC 8422 5.4)
138 * struct {
139 * ECParameters curve_params;
140 * ECPoint public;
141 * } ServerECDHParams;
142 */
143 int
> 144 ttls_ecdh_read_params(TlsECDHCtx *ctx, const unsigned char **buf,
145 const unsigned char *end)
146 {
147 int r;
148
149 if (!(ctx->grp = ttls_ecp_tls_read_group(buf, end - *buf)))
150 return -EINVAL;
151
152 /*
153 * Import a point from a TLS ECPoint record (RFC 8443 5.4)
154 * struct {
155 * opaque point <1..2^8-1>;
156 * } ECPoint;
157 */
158 if (!(r = ttls_ecdh_read_public(ctx, *buf, end - *buf)))
159 *buf += end - *buf;
160
161 return r;
162 }
163

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx