tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git
v5.8/psa_ffa
head: b483443526c98fa26aa37e66ac01d40407974824
commit: b483443526c98fa26aa37e66ac01d40407974824 [2/2] firmware: Add support for PSA FF-A
transport for VM partitions
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
git checkout b483443526c98fa26aa37e66ac01d40407974824
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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 >>, old ones prefixed by <<):
> drivers/firmware/arm_psa_ffa/driver.c:146:1: warning: no previous
prototype for '__arm_psa_ffa_fn_smc' [-Wmissing-prototypes]
146 |
__arm_psa_ffa_fn_smc(unsigned long function_id,unsigned long arg0,
| ^~~~~~~~~~~~~~~~~~~~
> drivers/firmware/arm_psa_ffa/driver.c:160:1: warning: no previous
prototype for '__arm_psa_ffa_fn_hvc' [-Wmissing-prototypes]
160 |
__arm_psa_ffa_fn_hvc(unsigned long function_id,unsigned long arg0,
| ^~~~~~~~~~~~~~~~~~~~
drivers/firmware/arm_psa_ffa/driver.c: In function 'psa_ffa_init':
> drivers/firmware/arm_psa_ffa/driver.c:460:48: warning: passing
argument 1 of '__virt_to_phys' makes integer from pointer without a cast
[-Wint-conversion]
460 | ret =
psa_ffa_rxtx_map(__virt_to_phys(drv_info->tx_buffer),
| ~~~~~~~~^~~~~~~~~~~
| |
| void *
In file included from arch/arm64/include/asm/thread_info.h:17,
from include/linux/thread_info.h:38,
from arch/arm64/include/asm/preempt.h:5,
from include/linux/preempt.h:78,
from include/linux/rcupdate.h:27,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from drivers/firmware/arm_psa_ffa/driver.c:28:
arch/arm64/include/asm/memory.h:253:49: note: expected 'long unsigned int' but
argument is of type 'void *'
253 | extern phys_addr_t __virt_to_phys(unsigned long x);
| ~~~~~~~~~~~~~~^
drivers/firmware/arm_psa_ffa/driver.c:461:34: warning: passing argument 1 of
'__virt_to_phys' makes integer from pointer without a cast [-Wint-conversion]
461 | __virt_to_phys(drv_info->rx_buffer),
| ~~~~~~~~^~~~~~~~~~~
| |
| void *
In file included from arch/arm64/include/asm/thread_info.h:17,
from include/linux/thread_info.h:38,
from arch/arm64/include/asm/preempt.h:5,
from include/linux/preempt.h:78,
from include/linux/rcupdate.h:27,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from drivers/firmware/arm_psa_ffa/driver.c:28:
arch/arm64/include/asm/memory.h:253:49: note: expected 'long unsigned int' but
argument is of type 'void *'
253 | extern phys_addr_t __virt_to_phys(unsigned long x);
| ~~~~~~~~~~~~~~^
At top level:
drivers/firmware/arm_psa_ffa/driver.c:325:12: warning: 'ffa_msg_send_direct_req'
defined but not used [-Wunused-function]
325 | static int ffa_msg_send_direct_req(u16 src_id, u16 dst_id)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/firmware/arm_psa_ffa/driver.c:311:1: warning: 'psa_ffa_msg_send' defined
but not used [-Wunused-function]
311 | psa_ffa_msg_send(u16 src_id, u16 dst_id, u32 len, u32 flags, u32 vcpu)
| ^~~~~~~~~~~~~~~~
drivers/firmware/arm_psa_ffa/driver.c:209:12: warning: 'psa_ffa_features' defined
but not used [-Wunused-function]
209 | static int psa_ffa_features(u32 func_id)
| ^~~~~~~~~~~~~~~~
vim +/__arm_psa_ffa_fn_smc +146 drivers/firmware/arm_psa_ffa/driver.c
144
145 struct arm_smccc_v1_2_res
146 __arm_psa_ffa_fn_smc(unsigned long function_id,unsigned long
arg0,
147 unsigned long arg1, unsigned long arg2,
148 unsigned long arg3, unsigned long arg4,
149 unsigned long arg5, unsigned long arg6)
150 {
151 struct arm_smccc_v1_2_res res;
152
153 arm_smccc_v1_2_smc(function_id, arg0, arg1, arg2, arg3, arg4, arg5,
154 arg6, &res);
155
156 return res;
157 }
158
159 struct arm_smccc_v1_2_res
160 __arm_psa_ffa_fn_hvc(unsigned long function_id,unsigned long
arg0,
161 unsigned long arg1, unsigned long arg2,
162 unsigned long arg3, unsigned long arg4,
163 unsigned long arg5, unsigned long arg6)
164 {
165 struct arm_smccc_v1_2_res res;
166
167 arm_smccc_v1_2_hvc(function_id, arg0, arg1, arg2, arg3, arg4, arg5,
168 arg6, &res);
169 return res;
170 }
171
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org