LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sven Peter <sven@svenpeter.dev>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [asahilinux:nvme/new 4/9] drivers/mailbox/apple-asc-mailbox.c:79:9: error: implicit declaration of function 'writeq_relaxed'; did you mean 'writel_relaxed'?
Date: Sun, 22 Aug 2021 06:37:57 +0800	[thread overview]
Message-ID: <202108220650.v5UsrQrk-lkp@intel.com> (raw)

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

tree:   https://github.com/AsahiLinux/linux nvme/new
head:   b97dea3822f87d95ed741680a55b0e6b13755194
commit: 306a1be5e6d8932858256eb9230b33155313abad [4/9] mailbox: add driver for Apple ASC mailboxes
config: microblaze-randconfig-r005-20210822 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.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
        # https://github.com/AsahiLinux/linux/commit/306a1be5e6d8932858256eb9230b33155313abad
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux nvme/new
        git checkout 306a1be5e6d8932858256eb9230b33155313abad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=microblaze 

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/mailbox/apple-asc-mailbox.c: In function 'apple_mbox_hw_send':
>> drivers/mailbox/apple-asc-mailbox.c:79:9: error: implicit declaration of function 'writeq_relaxed'; did you mean 'writel_relaxed'? [-Werror=implicit-function-declaration]
      79 |         writeq_relaxed(msg->msg0, apple_mbox->regs + APPLE_ASC_MBOX_A2I_SEND0);
         |         ^~~~~~~~~~~~~~
         |         writel_relaxed
>> drivers/mailbox/apple-asc-mailbox.c:85:9: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
      85 |         writeq(FIELD_PREP(APPLE_ASC_MBOX_MSG1_MSG, msg->msg1),
         |         ^~~~~~
         |         writel
>> drivers/mailbox/apple-asc-mailbox.c:85:16: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
      85 |         writeq(FIELD_PREP(APPLE_ASC_MBOX_MSG1_MSG, msg->msg1),
         |                ^~~~~~~~~~
   drivers/mailbox/apple-asc-mailbox.c: In function 'apple_mbox_hw_recv':
>> drivers/mailbox/apple-asc-mailbox.c:101:21: error: implicit declaration of function 'readq_relaxed'; did you mean 'readl_relaxed'? [-Werror=implicit-function-declaration]
     101 |         msg->msg0 = readq_relaxed(apple_mbox->regs + APPLE_ASC_MBOX_I2A_RECV0);
         |                     ^~~~~~~~~~~~~
         |                     readl_relaxed
>> drivers/mailbox/apple-asc-mailbox.c:108:17: error: implicit declaration of function 'FIELD_GET'; did you mean 'FOLL_GET'? [-Werror=implicit-function-declaration]
     108 |                 FIELD_GET(APPLE_ASC_MBOX_MSG1_MSG,
         |                 ^~~~~~~~~
         |                 FOLL_GET
>> drivers/mailbox/apple-asc-mailbox.c:109:27: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
     109 |                           readq(apple_mbox->regs + APPLE_ASC_MBOX_I2A_RECV1));
         |                           ^~~~~
         |                           readl
   cc1: some warnings being treated as errors


vim +79 drivers/mailbox/apple-asc-mailbox.c

    74	
    75	static void apple_mbox_hw_send(struct apple_mbox *apple_mbox,
    76				       struct apple_mbox_msg *msg)
    77	{
    78		WARN_ON(!apple_mbox_hw_can_send(apple_mbox));
  > 79		writeq_relaxed(msg->msg0, apple_mbox->regs + APPLE_ASC_MBOX_A2I_SEND0);
    80	
    81		/*
    82		 * we need a DMA barrier here since this message might be related to
    83		 * data stored in a shared memory buffer.
    84		 */
  > 85		writeq(FIELD_PREP(APPLE_ASC_MBOX_MSG1_MSG, msg->msg1),
    86		       apple_mbox->regs + APPLE_ASC_MBOX_A2I_SEND1);
    87	}
    88	
    89	static bool apple_mbox_hw_can_recv(struct apple_mbox *apple_mbox)
    90	{
    91		u32 mbox_ctrl =
    92			readl_relaxed(apple_mbox->regs + APPLE_ASC_MBOX_I2A_CONTROL);
    93	
    94		return !(mbox_ctrl & APPLE_ASC_MBOX_CONTROL_EMPTY);
    95	}
    96	
    97	static void apple_mbox_hw_recv(struct apple_mbox *apple_mbox,
    98				       struct apple_mbox_msg *msg)
    99	{
   100		WARN_ON(!apple_mbox_hw_can_recv(apple_mbox));
 > 101		msg->msg0 = readq_relaxed(apple_mbox->regs + APPLE_ASC_MBOX_I2A_RECV0);
   102	
   103		/*
   104		 * we need a DMA barrier here since this message might be related to
   105		 * data stored in a shared memory buffer.
   106		 */
   107		msg->msg1 =
 > 108			FIELD_GET(APPLE_ASC_MBOX_MSG1_MSG,
 > 109				  readq(apple_mbox->regs + APPLE_ASC_MBOX_I2A_RECV1));
   110	}
   111	

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

                 reply	other threads:[~2021-08-21 22:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202108220650.v5UsrQrk-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sven@svenpeter.dev \
    --subject='Re: [asahilinux:nvme/new 4/9] drivers/mailbox/apple-asc-mailbox.c:79:9: error: implicit declaration of function '\''writeq_relaxed'\''; did you mean '\''writel_relaxed'\''?' \
    /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

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).