linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Bjorn Andersson <bjorn.andersson@linaro.org>,
	Andy Gross <agross@kernel.org>, Ohad Ben-Cohen <ohad@wizery.com>
Cc: kbuild-all@lists.01.org, Rob Herring <robh+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Vinod Koul <vkoul@kernel.org>
Subject: Re: [PATCH v6 3/5] remoteproc: qcom: Update PIL relocation info on load
Date: Fri, 29 May 2020 11:06:22 +0800	[thread overview]
Message-ID: <202005291022.NppJkElw%lkp@intel.com> (raw)
In-Reply-To: <20200527054850.2067032-4-bjorn.andersson@linaro.org>

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

Hi Bjorn,

I love your patch! Perhaps something to improve:

[auto build test WARNING on next-20200526]
[also build test WARNING on v5.7-rc7]
[cannot apply to robh/for-next linus/master agross-msm/qcom/for-next remoteproc/for-next rpmsg/for-next hwspinlock/for-next v5.7-rc7 v5.7-rc6 v5.7-rc5]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Bjorn-Andersson/remoteproc-qcom-PIL-info-support/20200527-135911
base:    b0523c7b1c9d0edcd6c0fe6d2cb558a9ad5c60a8
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
        # 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: kbuild test robot <lkp@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

>> drivers/remoteproc/qcom_pil_info.c:69:5: warning: no previous prototype for 'qcom_pil_info_store' [-Wmissing-prototypes]
69 | int qcom_pil_info_store(const char *image, phys_addr_t base, size_t size)
|     ^~~~~~~~~~~~~~~~~~~

vim +/qcom_pil_info_store +69 drivers/remoteproc/qcom_pil_info.c

41d96cc2fee2c1 Bjorn Andersson 2020-05-26   60  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   61  /**
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   62   * qcom_pil_info_store() - store PIL information of image in IMEM
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   63   * @image:	name of the image
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   64   * @base:	base address of the loaded image
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   65   * @size:	size of the loaded image
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   66   *
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   67   * Return: 0 on success, negative errno on failure
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   68   */
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  @69  int qcom_pil_info_store(const char *image, phys_addr_t base, size_t size)
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   70  {
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   71  	char buf[PIL_RELOC_NAME_LEN];
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   72  	void __iomem *entry;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   73  	int ret;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   74  	int i;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   75  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   76  	mutex_lock(&reloc_mutex);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   77  	ret = qcom_pil_info_init();
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   78  	if (ret < 0) {
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   79  		mutex_unlock(&reloc_mutex);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   80  		return ret;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   81  	}
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   82  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   83  	for (i = 0; i < _reloc.num_entries; i++) {
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   84  		entry = _reloc.base + i * sizeof(struct pil_reloc_entry);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   85  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   86  		memcpy_fromio(buf, entry, PIL_RELOC_NAME_LEN);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   87  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   88  		/*
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   89  		 * An empty record means we didn't find it, given that the
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   90  		 * records are packed.
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   91  		 */
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   92  		if (!buf[0])
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   93  			goto found_unused;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   94  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   95  		if (!strncmp(buf, image, PIL_RELOC_NAME_LEN))
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   96  			goto found_existing;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   97  	}
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   98  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26   99  	pr_warn("insufficient PIL info slots\n");
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  100  	mutex_unlock(&reloc_mutex);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  101  	return -ENOMEM;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  102  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  103  found_unused:
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  104  	memcpy_toio(entry, image, PIL_RELOC_NAME_LEN);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  105  found_existing:
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  106  	writel(base, entry + offsetof(struct pil_reloc_entry, base));
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  107  	writel(size, entry + offsetof(struct pil_reloc_entry, size));
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  108  	mutex_unlock(&reloc_mutex);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  109  
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  110  	return 0;
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  111  }
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  112  EXPORT_SYMBOL_GPL(qcom_pil_info_store);
41d96cc2fee2c1 Bjorn Andersson 2020-05-26  113  

:::::: The code at line 69 was first introduced by commit
:::::: 41d96cc2fee2c1143685357ad2929be0a7cf5d0f remoteproc: qcom: Introduce helper to store pil info in IMEM

:::::: TO: Bjorn Andersson <bjorn.andersson@linaro.org>
:::::: CC: 0day robot <lkp@intel.com>

---
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: 72793 bytes --]

  parent reply	other threads:[~2020-05-29  3:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27  5:48 [PATCH v6 0/5] remoteproc: qcom: PIL info support Bjorn Andersson
2020-05-27  5:48 ` [PATCH v6 1/5] dt-bindings: remoteproc: Add Qualcomm PIL info binding Bjorn Andersson
2020-05-27  5:48 ` [PATCH v6 2/5] remoteproc: qcom: Introduce helper to store pil info in IMEM Bjorn Andersson
2020-05-27  6:29   ` Stephen Boyd
2020-05-27  5:48 ` [PATCH v6 3/5] remoteproc: qcom: Update PIL relocation info on load Bjorn Andersson
2020-05-27  6:31   ` Stephen Boyd
2020-05-29  3:06   ` kbuild test robot [this message]
2020-05-27  5:48 ` [PATCH v6 4/5] arm64: dts: qcom: qcs404: Add IMEM and PIL info region Bjorn Andersson
2020-05-27  5:48 ` [PATCH v6 5/5] arm64: dts: qcom: sdm845: " Bjorn Andersson

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=202005291022.NppJkElw%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=agross@kernel.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=ohad@wizery.com \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@kernel.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;
as well as URLs for NNTP newsgroup(s).