From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F483C77B7A for ; Fri, 2 Jun 2023 18:14:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236933AbjFBSOB (ORCPT ); Fri, 2 Jun 2023 14:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232628AbjFBSN5 (ORCPT ); Fri, 2 Jun 2023 14:13:57 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F1D196; Fri, 2 Jun 2023 11:13:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685729636; x=1717265636; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yIozrWDl/5hQ5vXZiPITasCQOwSsn+udVyA99ySkQ4Q=; b=LMlhyRSGPVgdVQqJ/a0iR3F2ol5niq/zLCbDcE8VrFHR75vZ63iEtocu pyCvxT020i0dAdsm7DqWDwkvLR3PpMYz+jfNKrlsBgupuCFmYEfp+XCUp QdhnDEP9lgyw88WP6zQa/F7C2ySxJGadqSk5gS0cbKX7uueb0G4/7EbEl hjXIb/S9dtqwIZZH1jKJSbq51D0bSozWKWjLmYlnvY5cA4FWcgmJasJTC 2aORBl22e9D+zRmHay4OIfs9rM9A4hAvPesru+ZI9AWwAQhjR6IKoDMT6 2ZROjRRCod2uhctE1XO8H+bOogKtN04kXXX7ZWgeiJX1LwiX+pFl9CDko w==; X-IronPort-AV: E=McAfee;i="6600,9927,10729"; a="354782633" X-IronPort-AV: E=Sophos;i="6.00,213,1681196400"; d="scan'208";a="354782633" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2023 11:13:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10729"; a="702034801" X-IronPort-AV: E=Sophos;i="6.00,213,1681196400"; d="scan'208";a="702034801" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 02 Jun 2023 11:13:53 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q59Hc-0000oX-1d; Fri, 02 Jun 2023 18:13:52 +0000 Date: Sat, 3 Jun 2023 02:13:07 +0800 From: kernel test robot To: Shunsuke Mie , "Michael S. Tsirkin" , Jason Wang , Rusty Russell Cc: oe-kbuild-all@lists.linux.dev, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Shunsuke Mie Subject: Re: [PATCH v4 1/1] vringh: IOMEM support Message-ID: <202306030216.bpWr6XV0-lkp@intel.com> References: <20230602055211.309960-2-mie@igel.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230602055211.309960-2-mie@igel.co.jp> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shunsuke, kernel test robot noticed the following build errors: [auto build test ERROR on mst-vhost/linux-next] [also build test ERROR on linus/master horms-ipvs/master v6.4-rc4 next-20230602] [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/Shunsuke-Mie/vringh-IOMEM-support/20230602-135351 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next patch link: https://lore.kernel.org/r/20230602055211.309960-2-mie%40igel.co.jp patch subject: [PATCH v4 1/1] vringh: IOMEM support config: i386-randconfig-i003-20230531 (https://download.01.org/0day-ci/archive/20230603/202306030216.bpWr6XV0-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/de2a1f5220c32e953400f225aba6bd294a8d41b8 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Shunsuke-Mie/vringh-IOMEM-support/20230602-135351 git checkout de2a1f5220c32e953400f225aba6bd294a8d41b8 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 olddefconfig make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306030216.bpWr6XV0-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/vhost/vringh.c: In function 'getu16_iomem': >> drivers/vhost/vringh.c:1610:37: error: implicit declaration of function 'ioread16' [-Werror=implicit-function-declaration] 1610 | *val = vringh16_to_cpu(vrh, ioread16(p)); | ^~~~~~~~ drivers/vhost/vringh.c: In function 'putu16_iomem': >> drivers/vhost/vringh.c:1616:9: error: implicit declaration of function 'iowrite16' [-Werror=implicit-function-declaration] 1616 | iowrite16(cpu_to_vringh16(vrh, val), p); | ^~~~~~~~~ drivers/vhost/vringh.c: In function 'copydesc_iomem': >> drivers/vhost/vringh.c:1623:9: error: implicit declaration of function 'memcpy_fromio'; did you mean 'memcpy_from_bvec'? [-Werror=implicit-function-declaration] 1623 | memcpy_fromio(dst, src, len); | ^~~~~~~~~~~~~ | memcpy_from_bvec drivers/vhost/vringh.c: In function 'putused_iomem': >> drivers/vhost/vringh.c:1630:9: error: implicit declaration of function 'memcpy_toio' [-Werror=implicit-function-declaration] 1630 | memcpy_toio(dst, src, num * sizeof(*dst)); | ^~~~~~~~~~~ drivers/vhost/vringh.c: At top level: drivers/vhost/vringh.c:1661:5: warning: no previous prototype for 'vringh_init_iomem' [-Wmissing-prototypes] 1661 | int vringh_init_iomem(struct vringh *vrh, u64 features, unsigned int num, | ^~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1683:5: warning: no previous prototype for 'vringh_getdesc_iomem' [-Wmissing-prototypes] 1683 | int vringh_getdesc_iomem(struct vringh *vrh, struct vringh_kiov *riov, | ^~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1714:9: warning: no previous prototype for 'vringh_iov_pull_iomem' [-Wmissing-prototypes] 1714 | ssize_t vringh_iov_pull_iomem(struct vringh *vrh, struct vringh_kiov *riov, | ^~~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1729:9: warning: no previous prototype for 'vringh_iov_push_iomem' [-Wmissing-prototypes] 1729 | ssize_t vringh_iov_push_iomem(struct vringh *vrh, struct vringh_kiov *wiov, | ^~~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1744:6: warning: no previous prototype for 'vringh_abandon_iomem' [-Wmissing-prototypes] 1744 | void vringh_abandon_iomem(struct vringh *vrh, unsigned int num) | ^~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1759:5: warning: no previous prototype for 'vringh_complete_iomem' [-Wmissing-prototypes] 1759 | int vringh_complete_iomem(struct vringh *vrh, u16 head, u32 len) | ^~~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1777:6: warning: no previous prototype for 'vringh_notify_enable_iomem' [-Wmissing-prototypes] 1777 | bool vringh_notify_enable_iomem(struct vringh *vrh) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1790:6: warning: no previous prototype for 'vringh_notify_disable_iomem' [-Wmissing-prototypes] 1790 | void vringh_notify_disable_iomem(struct vringh *vrh) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/vhost/vringh.c:1802:5: warning: no previous prototype for 'vringh_need_notify_iomem' [-Wmissing-prototypes] 1802 | int vringh_need_notify_iomem(struct vringh *vrh) | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/ioread16 +1610 drivers/vhost/vringh.c 1606 1607 static inline int getu16_iomem(const struct vringh *vrh, u16 *val, 1608 const __virtio16 *p) 1609 { > 1610 *val = vringh16_to_cpu(vrh, ioread16(p)); 1611 return 0; 1612 } 1613 1614 static inline int putu16_iomem(const struct vringh *vrh, __virtio16 *p, u16 val) 1615 { > 1616 iowrite16(cpu_to_vringh16(vrh, val), p); 1617 return 0; 1618 } 1619 1620 static inline int copydesc_iomem(const struct vringh *vrh, void *dst, 1621 const void *src, size_t len) 1622 { > 1623 memcpy_fromio(dst, src, len); 1624 return 0; 1625 } 1626 1627 static int putused_iomem(const struct vringh *vrh, struct vring_used_elem *dst, 1628 const struct vring_used_elem *src, unsigned int num) 1629 { > 1630 memcpy_toio(dst, src, num * sizeof(*dst)); 1631 return 0; 1632 } 1633 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki