public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Etienne Carriere <etienne.carriere@linaro.org>,
	linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org,
	Sudeep Holla <sudeep.holla@arm.com>,
	Cristian Marussi <cristian.marussi@arm.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Etienne Carriere <etienne.carriere@linaro.org>
Subject: Re: [PATCH v3 2/2] firmware: arm_scmi: Add optee transport
Date: Tue, 19 Oct 2021 20:50:00 +0800	[thread overview]
Message-ID: <202110192032.GU7RNe4F-lkp@intel.com> (raw)
In-Reply-To: <20211018114046.25571-2-etienne.carriere@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 4157 bytes --]

Hi Etienne,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on robh/for-next]
[also build test ERROR on linux/master soc/for-next rockchip/for-next arm64/for-next/core shawnguo/for-next linus/master v5.15-rc6 next-20211018]
[cannot apply to arm/for-next keystone/next xilinx-xlnx/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Etienne-Carriere/dt-bindings-arm-Add-OP-TEE-transport-for-SCMI/20211018-194259
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm64-randconfig-r026-20211018 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
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
        # https://github.com/0day-ci/linux/commit/7dff6aa629cdf70e8001dcc7b565d134c61e6dab
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Etienne-Carriere/dt-bindings-arm-Add-OP-TEE-transport-for-SCMI/20211018-194259
        git checkout 7dff6aa629cdf70e8001dcc7b565d134c61e6dab
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/firmware/arm_scmi/optee.c:233:27: error: use of undeclared identifier 'scmi_optee_desc'; did you mean 'scmi_virtio_desc'?
                   const size_t msg_size = scmi_optee_desc.max_msg_size;
                                           ^~~~~~~~~~~~~~~
                                           scmi_virtio_desc
   drivers/firmware/arm_scmi/common.h:422:31: note: 'scmi_virtio_desc' declared here
   extern const struct scmi_desc scmi_virtio_desc;
                                 ^
   drivers/firmware/arm_scmi/optee.c:266:26: error: use of undeclared identifier 'scmi_optee_desc'; did you mean 'scmi_virtio_desc'?
           const size_t msg_size = scmi_optee_desc.max_msg_size;
                                   ^~~~~~~~~~~~~~~
                                   scmi_virtio_desc
   drivers/firmware/arm_scmi/common.h:422:31: note: 'scmi_virtio_desc' declared here
   extern const struct scmi_desc scmi_virtio_desc;
                                 ^
   2 errors generated.


vim +233 drivers/firmware/arm_scmi/optee.c

   221	
   222	static int invoke_process_smt_channel(struct optee_channel *channel)
   223	{
   224		struct tee_ioctl_invoke_arg arg = { };
   225		struct tee_param param[2] = { };
   226		int ret;
   227	
   228		arg.session = channel->tee_session;
   229		param[0].attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INPUT;
   230		param[0].u.value.a = channel->channel_id;
   231	
   232		if (channel->tee_shm) {
 > 233			const size_t msg_size = scmi_optee_desc.max_msg_size;
   234	
   235			param[1].attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT;
   236			param[1].u.memref.shm = channel->tee_shm;
   237			param[1].u.memref.size = msg_size;
   238			arg.num_params = 2;
   239			arg.func = PTA_SCMI_CMD_PROCESS_SMT_CHANNEL_MESSAGE;
   240		} else {
   241			arg.num_params = 1;
   242			arg.func = PTA_SCMI_CMD_PROCESS_SMT_CHANNEL;
   243		}
   244	
   245		ret = tee_client_invoke_func(optee_private->tee_ctx, &arg, param);
   246		if (ret < 0 || arg.ret) {
   247			dev_err(optee_private->dev, "Failed on channel %u: %d / %#x\n",
   248				channel->channel_id, ret, arg.ret);
   249	
   250			return -EIO;
   251		}
   252	
   253		return 0;
   254	}
   255	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36128 bytes --]

  parent reply	other threads:[~2021-10-19 12:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-18 11:40 [PATCH v3 1/2] dt-bindings: arm: Add OP-TEE transport for SCMI Etienne Carriere
2021-10-18 11:40 ` [PATCH v3 2/2] firmware: arm_scmi: Add optee transport Etienne Carriere
2021-10-18 19:43   ` Cristian Marussi
2021-10-19  9:10     ` Etienne Carriere
2021-10-19 14:24       ` Etienne Carriere
2021-10-19 16:19         ` Cristian Marussi
2021-10-19 12:50   ` kernel test robot [this message]
2021-10-18 17:32 ` [PATCH v3 1/2] dt-bindings: arm: Add OP-TEE transport for SCMI Rob Herring
2021-10-20 15:52   ` Etienne Carriere
2021-10-20 16:45     ` Etienne Carriere
2021-10-18 17:40 ` Rob Herring
2021-10-19  9:20   ` Etienne Carriere

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110192032.GU7RNe4F-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cristian.marussi@arm.com \
    --cc=etienne.carriere@linaro.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=sudeep.holla@arm.com \
    --cc=vincent.guittot@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox