From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E500BC433EF for ; Tue, 22 Mar 2022 02:07:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235350AbiCVCJT (ORCPT ); Mon, 21 Mar 2022 22:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235253AbiCVCJS (ORCPT ); Mon, 21 Mar 2022 22:09:18 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FB2D1659F for ; Mon, 21 Mar 2022 19:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647914859; x=1679450859; h=date:from:to:cc:subject:message-id:mime-version; bh=4QHTQqOCfuHh34BV23OvUlXLlh99QNGEm5Xas8FhS9U=; b=LLKRerU75/t+ff9WyjXZXbv9OdBQpq12UJQDKtwZJN8LgyA9DXE9JJWP SVX8JG1C6/fwznIsKTriHQogwSaHPgl+qeXAx3jExPgjkXqN+8Tkd/NXf waJrjplUIMjBb/iUa04jeC2G8hn7OOM1oi5jPQAOhMpx60guZEdczvhgk Rz76TxZfTVra3pxBQeQIcTs4prxHa7SB8sK7M+S5YL5T95i2IqP2QnYmA PEPb26I3DgBj2302ORU2SVoaK+zLssr2FICUw+yqcZrUSnEeC1/pv1wu6 hayeoYhfzmB9Z7R6dT+44Y5RSLhTAAEaeYr2x2xCg8eWP3TWPwSx2rLnA w==; X-IronPort-AV: E=McAfee;i="6200,9189,10293"; a="257647575" X-IronPort-AV: E=Sophos;i="5.90,200,1643702400"; d="scan'208";a="257647575" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 19:07:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,200,1643702400"; d="scan'208";a="648795930" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 21 Mar 2022 19:07:37 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nWTvt-000IM0-0u; Tue, 22 Mar 2022 02:07:37 +0000 Date: Tue, 22 Mar 2022 10:07:14 +0800 From: kernel test robot To: "Jason A. Donenfeld" Cc: kbuild-all@lists.01.org, build@wireguard.com, linux-kernel@vger.kernel.org Subject: [zx2c4-wireguard:devel 1/2] lib/crypto/poly1305-selftest.c:1043:13: warning: no previous prototype for 'poly1305_selftest' Message-ID: <202203221028.sbW0FzME-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git devel head: 85edbe4cea2a4446b6425d67a00c04dce142b2f2 commit: 957612a1219877cad2e0fd43f89dea54575db069 [1/2] crypto: poly1305 - add library selftests config: nds32-randconfig-m031-20220321 (https://download.01.org/0day-ci/archive/20220322/202203221028.sbW0FzME-lkp@intel.com/config) compiler: nds32le-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/zx2c4/wireguard-linux.git/commit/?id=957612a1219877cad2e0fd43f89dea54575db069 git remote add zx2c4-wireguard https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/wireguard-linux.git git fetch --no-tags zx2c4-wireguard devel git checkout 957612a1219877cad2e0fd43f89dea54575db069 # 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=nds32 SHELL=/bin/bash lib/crypto/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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 https://01.org/lkp