From: kernel test robot <lkp@intel.com>
To: Witold Sadowski <wsadowski@marvell.com>,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
devicetree@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
broonie@kernel.org, robh@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
pthombar@cadence.com, Witold Sadowski <wsadowski@marvell.com>
Subject: Re: [PATCH v7 2/4] spi: cadence: Add Marvell xSPI IP overlay changes
Date: Fri, 31 May 2024 03:38:39 +0800 [thread overview]
Message-ID: <202405310322.RIyE2GGE-lkp@intel.com> (raw)
In-Reply-To: <20240529220026.1644986-3-wsadowski@marvell.com>
Hi Witold,
kernel test robot noticed the following build errors:
[auto build test ERROR on broonie-spi/for-next]
[also build test ERROR on linus/master v6.10-rc1 next-20240529]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Witold-Sadowski/spi-dt-bindings-cadence-Add-Marvell-overlay-bindings-documentation-for-Cadence-XSPI/20240530-060250
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
patch link: https://lore.kernel.org/r/20240529220026.1644986-3-wsadowski%40marvell.com
patch subject: [PATCH v7 2/4] spi: cadence: Add Marvell xSPI IP overlay changes
config: arm-randconfig-004-20240531 (https://download.01.org/0day-ci/archive/20240531/202405310322.RIyE2GGE-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240531/202405310322.RIyE2GGE-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405310322.RIyE2GGE-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/spi/spi-cadence-xspi.c:496:15: error: call to undeclared function 'readq'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
*buf64++ = readq(addr);
^
drivers/spi/spi-cadence-xspi.c:499:10: error: call to undeclared function 'readq'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
tmp = readq(addr);
^
drivers/spi/spi-cadence-xspi.c:505:9: error: call to undeclared function 'readq'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
tmp = readq(addr);
^
>> drivers/spi/spi-cadence-xspi.c:520:4: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
writeq(*buf64++, addr);
^
drivers/spi/spi-cadence-xspi.c:524:4: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
writeq(tmp, addr);
^
drivers/spi/spi-cadence-xspi.c:530:3: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
writeq(tmp, addr);
^
6 errors generated.
vim +/readq +496 drivers/spi/spi-cadence-xspi.c
485
486 static void mrvl_ioreadq(void __iomem *addr, void *buf, int len)
487 {
488 int i = 0;
489 int rcount = len / 8;
490 int rcount_nf = len % 8;
491 uint64_t tmp;
492 uint64_t *buf64 = (uint64_t *)buf;
493
494 if (((uint64_t)buf % 8) == 0) {
495 for (i = 0; i < rcount; i++)
> 496 *buf64++ = readq(addr);
497 } else {
498 for (i = 0; i < rcount; i++) {
499 tmp = readq(addr);
500 memcpy(buf+(i*8), &tmp, 8);
501 }
502 }
503
504 if (rcount_nf != 0) {
505 tmp = readq(addr);
506 memcpy(buf+(i*8), &tmp, rcount_nf);
507 }
508 }
509
510 static void mrvl_iowriteq(void __iomem *addr, const void *buf, int len)
511 {
512 int i = 0;
513 int rcount = len / 8;
514 int rcount_nf = len % 8;
515 uint64_t tmp;
516 uint64_t *buf64 = (uint64_t *)buf;
517
518 if (((uint64_t)buf % 8) == 0) {
519 for (i = 0; i < rcount; i++)
> 520 writeq(*buf64++, addr);
521 } else {
522 for (i = 0; i < rcount; i++) {
523 memcpy(&tmp, buf+(i*8), 8);
524 writeq(tmp, addr);
525 }
526 }
527
528 if (rcount_nf != 0) {
529 memcpy(&tmp, buf+(i*8), rcount_nf);
530 writeq(tmp, addr);
531 }
532 }
533
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-05-30 19:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-29 22:00 [PATCH v7 0/4] Marvell HW overlay support for Cadence xSPI Witold Sadowski
2024-05-29 22:00 ` [PATCH v7 1/4] spi: dt-bindings: cadence: Add Marvell overlay bindings documentation for Cadence XSPI Witold Sadowski
2024-05-31 1:47 ` Rob Herring
2024-06-07 15:12 ` [EXTERNAL] " Witold Sadowski
2024-05-31 8:16 ` Krzysztof Kozlowski
2024-05-29 22:00 ` [PATCH v7 2/4] spi: cadence: Add Marvell xSPI IP overlay changes Witold Sadowski
2024-05-30 19:38 ` kernel test robot [this message]
2024-06-04 9:18 ` Dan Carpenter
2024-06-07 15:14 ` [EXTERNAL] " Witold Sadowski
2024-05-29 22:00 ` [PATCH v7 3/4] spi: cadence: Allow to read basic xSPI configuration from ACPI Witold Sadowski
2024-05-29 22:00 ` [PATCH v7 4/4] spi: cadence: Add MRVL overlay xfer operation support Witold Sadowski
2024-06-04 9:21 ` Dan Carpenter
2024-06-07 15:15 ` [EXTERNAL] " Witold Sadowski
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=202405310322.RIyE2GGE-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pthombar@cadence.com \
--cc=robh@kernel.org \
--cc=wsadowski@marvell.com \
/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).