Re: [PATCH 2/2] tee: optee: allow selection of ti-smc as a calling method

From: kbuild test robot
Date: Tue Sep 19 2017 - 20:45:25 EST

Hi Andrew,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.14-rc1 next-20170919]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64

All errors (new ones prefixed by >>):

drivers/tee/optee/core.o: In function `get_invoke_func':
>> drivers/tee/optee/core.c:445: undefined reference to `arm_ti_smccc_smc'
drivers/tee/optee/core.c:445:(.init.text+0xc0): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against undefined symbol `arm_ti_smccc_smc'
>> drivers/tee/optee/core.c:445: undefined reference to `arm_ti_smccc_smc'

vim +445 drivers/tee/optee/core.c

429 static optee_invoke_fn *get_invoke_func(struct device_node *np)
430 {
431 const char *method;
433 pr_info("probing for conduit method from DT.\n");
435 if (of_property_read_string(np, "method", &method)) {
436 pr_warn("missing \"method\" property\n");
437 return ERR_PTR(-ENXIO);
438 }
440 if (!strcmp("hvc", method))
441 return optee_smccc_hvc;
442 else if (!strcmp("smc", method))
443 return optee_smccc_smc;
444 else if (!strcmp("ti-smc", method))
> 445 return arm_ti_smccc_smc;
447 pr_warn("invalid \"method\" property: %s\n", method);
448 return ERR_PTR(-EINVAL);
449 }

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip