[hare-scsi-devel:auth.v2 3/15] crypto/ffdhe_helper.c:854:5: warning: no previous prototype for 'crypto_ffdhe_params'
From: kernel test robot
Date: Thu Aug 05 2021 - 22:36:31 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git auth.v2
head: a9934e3c1c89f0bdcf74245205d986814767ecc1
commit: 2860467278bdb68b25455dc90ee0ed3100199f83 [3/15] crypto/ffdhe: Finite Field DH Ephemeral Parameters
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gcc (GCC) 10.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/hare/scsi-devel.git/commit/?id=2860467278bdb68b25455dc90ee0ed3100199f83
git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git
git fetch --no-tags hare-scsi-devel auth.v2
git checkout 2860467278bdb68b25455dc90ee0ed3100199f83
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
>> crypto/ffdhe_helper.c:854:5: warning: no previous prototype for 'crypto_ffdhe_params' [-Wmissing-prototypes]
854 | int crypto_ffdhe_params(struct dh *p, int bits)
| ^~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/crypto_ffdhe_params +854 crypto/ffdhe_helper.c
853
> 854 int crypto_ffdhe_params(struct dh *p, int bits)
855 {
856 struct ffdhe_group *grp = NULL;
857 int i;
858
859 for (i = 0; i < ARRAY_SIZE(ffdhe_group_map); i++) {
860 if (ffdhe_group_map[i].bits == bits) {
861 grp = &ffdhe_group_map[i];
862 break;
863 }
864 }
865 if (!grp || !p)
866 return -EINVAL;
867
868 p->p_size = grp->bits / 8;
869 p->p = (u8 *)grp->p;
870 p->g_size = 1;
871 p->g = (u8 *)grp->g;
872 p->q_size = grp->bits / 8;
873 p->q = (u8 *)grp->q;
874
875 return 0;
876 }
877 EXPORT_SYMBOL_GPL(crypto_ffdhe_params);
878
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip