tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
v5.13/ffa+optee
head: 919b89e263be046cd32a1979edaf41f0188d1131
commit: b24c4e2a8955c84883d9b7d1c2f67503678f6df4 [12/13] optee: add FF-A support
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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/sudeep.holla/linux.git/co...
git remote add skn
https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
git fetch --no-tags skn v5.13/ffa+optee
git checkout b24c4e2a8955c84883d9b7d1c2f67503678f6df4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/tee/optee/core.c:767: warning: expecting prototype for
optee_to_msg_param(). Prototype was for optee_ffa_to_msg_param() instead
vim +767 drivers/tee/optee/core.c
754
755 /**
756 * optee_to_msg_param() - convert from struct tee_params to OPTEE_MSG parameters
757 * @optee: main service struct
758 * @msg_params: OPTEE_MSG parameters
759 * @num_params: number of elements in the parameter arrays
760 * @params: subsystem itnernal parameter representation
761 * Returns 0 on success or <0 on failure
762 */
763 static int optee_ffa_to_msg_param(struct optee *optee,
764 struct optee_msg_param *msg_params,
765 size_t num_params,
766 const struct tee_param *params)
767 {
768 size_t n;
769
770 for (n = 0; n < num_params; n++) {
771 const struct tee_param *p = params + n;
772 struct optee_msg_param *mp = msg_params + n;
773
774 switch (p->attr) {
775 case TEE_IOCTL_PARAM_ATTR_TYPE_NONE:
776 mp->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE;
777 memset(&mp->u, 0, sizeof(mp->u));
778 break;
779 case TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INPUT:
780 case TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_OUTPUT:
781 case TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT:
782 to_msg_param_value(mp, p);
783 break;
784 case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT:
785 case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_OUTPUT:
786 case TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT:
787 if (to_msg_param_ffa_mem(mp, p))
788 return -EINVAL;
789 break;
790 default:
791 return -EINVAL;
792 }
793 }
794
795 return 0;
796 }
797
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org