* [jens.wiklander:optee_ffa 6/6] drivers/tee/optee/core.c:767: warning: expecting prototype for optee_to_msg_param(). Prototype was for optee_ffa_to_msg_param() instead
@ 2021-05-25 22:46 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-25 22:46 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3043 bytes --]
tree: https://git.linaro.org/people/jens.wiklander/linux-tee.git optee_ffa
head: 02b1370cb1f0bee42b69e9267674600920d7da99
commit: 02b1370cb1f0bee42b69e9267674600920d7da99 [6/6] optee: add FF-A support
config: arm64-randconfig-r004-20210525 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add jens.wiklander https://git.linaro.org/people/jens.wiklander/linux-tee.git
git fetch --no-tags jens.wiklander optee_ffa
git checkout 02b1370cb1f0bee42b69e9267674600920d7da99
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 >>):
>> 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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32515 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-25 22:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 22:46 [jens.wiklander:optee_ffa 6/6] drivers/tee/optee/core.c:767: warning: expecting prototype for optee_to_msg_param(). Prototype was for optee_ffa_to_msg_param() instead 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.