All of lore.kernel.org
 help / color / mirror / Atom feed
* [zx2c4-wireguard-linux:devel 1/1] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest'
@ 2021-05-25 16:54 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-25 16:54 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3143 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git devel
head:   7c532719cab0ac5af5ea45a242d31d52dda280d9
commit: 7c532719cab0ac5af5ea45a242d31d52dda280d9 [1/1] crypto: poly1305 - add library selftests
config: ia64-randconfig-r003-20210525 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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/zx2c4/wireguard-linux.git/commit/?id=7c532719cab0ac5af5ea45a242d31d52dda280d9
        git remote add zx2c4-wireguard-linux https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git
        git fetch --no-tags zx2c4-wireguard-linux devel
        git checkout 7c532719cab0ac5af5ea45a242d31d52dda280d9
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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 >>):

>> lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest' [-Wmissing-prototypes]
    1043 | bool __init poly1305_selftest(void)
         |             ^~~~~~~~~~~~~~~~~


vim +/poly1305_selftest +1043 lib/crypto/poly1305-selftest.c

  1042	
> 1043	bool __init poly1305_selftest(void)
  1044	{
  1045		bool success = true;
  1046		size_t i, j;
  1047	
  1048		for (i = 0; i < ARRAY_SIZE(poly1305_testvecs); ++i) {
  1049			struct poly1305_desc_ctx poly1305;
  1050			u8 out[POLY1305_DIGEST_SIZE];
  1051	
  1052			memset(out, 0, sizeof(out));
  1053			memset(&poly1305, 0, sizeof(poly1305));
  1054			poly1305_init(&poly1305, poly1305_testvecs[i].key);
  1055			poly1305_update(&poly1305, poly1305_testvecs[i].input,
  1056					poly1305_testvecs[i].ilen);
  1057			poly1305_final(&poly1305, out);
  1058			if (memcmp(out, poly1305_testvecs[i].output,
  1059				   POLY1305_DIGEST_SIZE)) {
  1060				pr_err("poly1305 self-test %zu: FAIL\n", i + 1);
  1061				success = false;
  1062			}
  1063	
  1064			if (poly1305_testvecs[i].ilen <= 1)
  1065				continue;
  1066	
  1067			for (j = 1; j < poly1305_testvecs[i].ilen - 1; ++j) {
  1068				memset(out, 0, sizeof(out));
  1069				memset(&poly1305, 0, sizeof(poly1305));
  1070				poly1305_init(&poly1305, poly1305_testvecs[i].key);
  1071				poly1305_update(&poly1305, poly1305_testvecs[i].input, j);
  1072				poly1305_update(&poly1305,
  1073						poly1305_testvecs[i].input + j,
  1074						poly1305_testvecs[i].ilen - j);
  1075				poly1305_final(&poly1305, out);
  1076				if (memcmp(out, poly1305_testvecs[i].output,
  1077					   POLY1305_DIGEST_SIZE)) {
  1078					pr_err("poly1305 self-test %zu (split %zu): FAIL\n",
  1079					       i + 1, j);
  1080					success = false;
  1081				}
  1082	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29841 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [zx2c4-wireguard-linux:devel 1/1] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest'
@ 2020-10-14  3:48 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-10-14  3:48 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3126 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git devel
head:   e6b6fed3eca2aac22631d3f04e31597238de96f2
commit: e6b6fed3eca2aac22631d3f04e31597238de96f2 [1/1] crypto: poly1305 - add library selftests
config: s390-defconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.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/zx2c4/wireguard-linux.git/commit/?id=e6b6fed3eca2aac22631d3f04e31597238de96f2
        git remote add zx2c4-wireguard-linux https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git
        git fetch --no-tags zx2c4-wireguard-linux devel
        git checkout e6b6fed3eca2aac22631d3f04e31597238de96f2
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 

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 >>):

>> lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest' [-Wmissing-prototypes]
    1043 | bool __init poly1305_selftest(void)
         |             ^~~~~~~~~~~~~~~~~

vim +/poly1305_selftest +1043 lib/crypto/poly1305-selftest.c

  1042	
> 1043	bool __init poly1305_selftest(void)
  1044	{
  1045		bool success = true;
  1046		size_t i, j;
  1047	
  1048		for (i = 0; i < ARRAY_SIZE(poly1305_testvecs); ++i) {
  1049			struct poly1305_desc_ctx poly1305;
  1050			u8 out[POLY1305_DIGEST_SIZE];
  1051	
  1052			memset(out, 0, sizeof(out));
  1053			memset(&poly1305, 0, sizeof(poly1305));
  1054			poly1305_init(&poly1305, poly1305_testvecs[i].key);
  1055			poly1305_update(&poly1305, poly1305_testvecs[i].input,
  1056					poly1305_testvecs[i].ilen);
  1057			poly1305_final(&poly1305, out);
  1058			if (memcmp(out, poly1305_testvecs[i].output,
  1059				   POLY1305_DIGEST_SIZE)) {
  1060				pr_err("poly1305 self-test %zu: FAIL\n", i + 1);
  1061				success = false;
  1062			}
  1063	
  1064			if (poly1305_testvecs[i].ilen <= 1)
  1065				continue;
  1066	
  1067			for (j = 1; j < poly1305_testvecs[i].ilen - 1; ++j) {
  1068				memset(out, 0, sizeof(out));
  1069				memset(&poly1305, 0, sizeof(poly1305));
  1070				poly1305_init(&poly1305, poly1305_testvecs[i].key);
  1071				poly1305_update(&poly1305, poly1305_testvecs[i].input, j);
  1072				poly1305_update(&poly1305,
  1073						poly1305_testvecs[i].input + j,
  1074						poly1305_testvecs[i].ilen - j);
  1075				poly1305_final(&poly1305, out);
  1076				if (memcmp(out, poly1305_testvecs[i].output,
  1077					   POLY1305_DIGEST_SIZE)) {
  1078					pr_err("poly1305 self-test %zu (split %zu): FAIL\n",
  1079					       i + 1, j);
  1080					success = false;
  1081				}
  1082	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19572 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-25 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 16:54 [zx2c4-wireguard-linux:devel 1/1] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-10-14  3:48 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.