From: kbuild test robot <lkp@intel.com>
To: Rishabh Bhatnagar <rishabhb@codeaurora.org>,
linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: kbuild-all@lists.01.org, bjorn.andersson@linaro.org,
ohad@wizery.com, mathieu.poirier@linaro.org,
tsoni@codeaurora.org, psodagud@codeaurora.org,
sidgup@codeaurora.org,
Rishabh Bhatnagar <rishabhb@codeaurora.org>
Subject: Re: [PATCH 2/3] remoteproc: Add inline coredump functionality
Date: Mon, 20 Apr 2020 14:01:27 +0800 [thread overview]
Message-ID: <202004201346.YlfHWK5a%lkp@intel.com> (raw)
Message-ID: <20200420060127.xRtnD0qxRws34gWtnD-FwrfJsOtzu_tbhotruuZKsb8@z> (raw)
In-Reply-To: <1587062312-4939-2-git-send-email-rishabhb@codeaurora.org>
[-- Attachment #1: Type: text/plain, Size: 3637 bytes --]
Hi Rishabh,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on v5.6]
[cannot apply to linus/master linux/master remoteproc/for-next rpmsg/for-next v5.7-rc1 next-20200416]
[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/Rishabh-Bhatnagar/remoteproc-Make-coredump-functionality-configurable/20200417-042251
base: 7111951b8d4973bda27ff663f2cf18b663d15b48
config: arm-omap2plus_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
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 GCC_VERSION=9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/remoteproc/remoteproc_coredump.c: In function 'rproc_read_dump':
>> drivers/remoteproc/remoteproc_coredump.c:68:32: error: passing argument 3 of 'resolve_addr' from incompatible pointer type [-Werror=incompatible-pointer-types]
68 | &rproc->dump_segments, &data_left);
| ^~~~~~~~~~
| |
| size_t * {aka unsigned int *}
drivers/remoteproc/remoteproc_coredump.c:24:23: note: expected 'long unsigned int *' but argument is of type 'size_t *' {aka 'unsigned int *'}
24 | unsigned long *data_left)
| ~~~~~~~~~~~~~~~^~~~~~~~~
cc1: some warnings being treated as errors
vim +/resolve_addr +68 drivers/remoteproc/remoteproc_coredump.c
44
45 static ssize_t rproc_read_dump(char *buffer, loff_t offset, size_t count,
46 void *data, size_t header_size)
47 {
48 void *device_mem;
49 size_t data_left, copy_size, bytes_left = count;
50 unsigned long addr;
51 struct rproc_coredump_state *dump_state = data;
52 struct rproc *rproc = dump_state->rproc;
53 void *elfcore = dump_state->header;
54
55 /* Copy the header first */
56 if (offset < header_size) {
57 copy_size = header_size - offset;
58 copy_size = min(copy_size, bytes_left);
59
60 memcpy(buffer, elfcore + offset, copy_size);
61 offset += copy_size;
62 bytes_left -= copy_size;
63 buffer += copy_size;
64 }
65
66 while (bytes_left) {
67 addr = resolve_addr(offset - header_size,
> 68 &rproc->dump_segments, &data_left);
69 /* EOF check */
70 if (data_left == 0) {
71 pr_info("Ramdump complete %lld bytes read", offset);
72 break;
73 }
74
75 copy_size = min_t(size_t, bytes_left, data_left);
76
77 device_mem = rproc->ops->da_to_va(rproc, addr, copy_size);
78 if (!device_mem) {
79 pr_err("Address:%lx with size %zd out of remoteproc carveout\n",
80 addr, copy_size);
81 return -ENOMEM;
82 }
83 memcpy(buffer, device_mem, copy_size);
84
85 offset += copy_size;
86 buffer += copy_size;
87 bytes_left -= copy_size;
88 }
89
90 return count - bytes_left;
91 }
92
---
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: 37511 bytes --]
next prev parent reply other threads:[~2020-04-20 6:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-16 18:38 [PATCH 1/3] remoteproc: Make coredump functionality configurable Rishabh Bhatnagar
2020-04-16 18:38 ` Rishabh Bhatnagar
2020-04-16 18:38 ` [PATCH 2/3] remoteproc: Add inline coredump functionality Rishabh Bhatnagar
2020-04-16 18:38 ` Rishabh Bhatnagar
2020-04-17 7:52 ` Loic PALLARDY
2020-04-17 7:52 ` Loic PALLARDY
2020-04-17 17:11 ` Bjorn Andersson
2020-04-17 17:11 ` Bjorn Andersson
2020-04-20 6:01 ` kbuild test robot [this message]
2020-04-20 6:01 ` kbuild test robot
2020-04-23 20:38 ` Mathieu Poirier
2020-05-07 20:21 ` Bjorn Andersson
2020-05-12 0:11 ` rishabhb
2020-05-12 0:30 ` Bjorn Andersson
2020-05-12 0:41 ` rishabhb
2020-05-12 5:13 ` Bjorn Andersson
2020-05-13 18:05 ` Mathieu Poirier
2020-05-14 18:07 ` rishabhb
2020-04-16 18:38 ` [PATCH 3/3] remoteproc: Add coredump sysfs attribute Rishabh Bhatnagar
2020-04-16 18:38 ` Rishabh Bhatnagar
2020-04-17 7:54 ` Loic PALLARDY
2020-04-17 7:54 ` Loic PALLARDY
2020-04-17 17:48 ` rishabhb
2020-04-17 17:48 ` rishabhb
2020-04-23 20:47 ` Mathieu Poirier
2020-04-23 18:07 ` [PATCH 1/3] remoteproc: Make coredump functionality configurable Mathieu Poirier
2020-05-07 19:33 ` 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=202004201346.YlfHWK5a%lkp@intel.com \
--to=lkp@intel.com \
--cc=bjorn.andersson@linaro.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=ohad@wizery.com \
--cc=psodagud@codeaurora.org \
--cc=rishabhb@codeaurora.org \
--cc=sidgup@codeaurora.org \
--cc=tsoni@codeaurora.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).