CC: kbuild-all(a)lists.01.org In-Reply-To: <20211201004858.19831-4-nstange@suse.de> References: <20211201004858.19831-4-nstange@suse.de> TO: Nicolai Stange TO: Herbert Xu TO: "David S. Miller" CC: netdev(a)vger.kernel.org CC: "Stephan Müller" CC: Hannes Reinecke CC: Torsten Duwe CC: Zaibo Xu CC: Giovanni Cabiddu CC: David Howells CC: Jarkko Sakkinen Hi Nicolai, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on herbert-cryptodev-2.6/master] [also build test WARNING on herbert-crypto-2.6/master linus/master jmorris-security/next-testing v5.16-rc4 next-20211206] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Nicolai-Stange/crypto-dh-infrastructure-for-NVM-in-band-auth-and-FIPS-conformance/20211201-085159 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master :::::: branch date: 6 days ago :::::: commit date: 6 days ago config: arm-randconfig-m031-20211128 (https://download.01.org/0day-ci/archive/20211207/202112070306.wfN6TcdK-lkp(a)intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Reported-by: Dan Carpenter smatch warnings: crypto/dh_helper.c:32 get_safe_prime_group() warn: we never enter this loop vim +32 crypto/dh_helper.c 3313d2f891c8a3 Nicolai Stange 2021-12-01 26 3313d2f891c8a3 Nicolai Stange 2021-12-01 27 static inline const struct safe_prime_group * 3313d2f891c8a3 Nicolai Stange 2021-12-01 28 get_safe_prime_group(enum dh_group_id group_id) 3313d2f891c8a3 Nicolai Stange 2021-12-01 29 { 3313d2f891c8a3 Nicolai Stange 2021-12-01 30 int i; 3313d2f891c8a3 Nicolai Stange 2021-12-01 31 3313d2f891c8a3 Nicolai Stange 2021-12-01 @32 for (i = 0; i < ARRAY_SIZE(safe_prime_groups); ++i) { 3313d2f891c8a3 Nicolai Stange 2021-12-01 33 if (safe_prime_groups[i].group_id == group_id) 3313d2f891c8a3 Nicolai Stange 2021-12-01 34 return &safe_prime_groups[i]; 3313d2f891c8a3 Nicolai Stange 2021-12-01 35 } 3313d2f891c8a3 Nicolai Stange 2021-12-01 36 3313d2f891c8a3 Nicolai Stange 2021-12-01 37 return NULL; 3313d2f891c8a3 Nicolai Stange 2021-12-01 38 } 802c7f1c84e4b5 Salvatore Benedetto 2016-06-22 39 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org