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