mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [cel:topic-rpc-with-tls 1/8] net/tls/ecdh.c:144:1: warning: no previous prototype for 'ttls_ecdh_read_params'
@ 2021-12-07 20:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-07 20:56 UTC (permalink / raw)
  To: Alexander K; +Cc: kbuild-all, linux-kernel, Chuck Lever

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@intel.com/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@intel.com>

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@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-07 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 20:56 [cel:topic-rpc-with-tls 1/8] net/tls/ecdh.c:144:1: warning: no previous prototype for 'ttls_ecdh_read_params' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®