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 BD6BBC4332F for ; Thu, 25 Nov 2021 11:27:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235477AbhKYLa7 (ORCPT ); Thu, 25 Nov 2021 06:30:59 -0500 Received: from mga12.intel.com ([192.55.52.136]:23263 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233620AbhKYL2u (ORCPT ); Thu, 25 Nov 2021 06:28:50 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10178"; a="215523567" X-IronPort-AV: E=Sophos;i="5.87,263,1631602800"; d="scan'208";a="215523567" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2021 03:25:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,263,1631602800"; d="scan'208";a="607540446" Received: from lkp-server02.sh.intel.com (HELO 9e1e9f9b3bcb) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 25 Nov 2021 03:25:34 -0800 Received: from kbuild by 9e1e9f9b3bcb with local (Exim 4.92) (envelope-from ) id 1mqCsf-0006HN-KU; Thu, 25 Nov 2021 11:25:33 +0000 Date: Thu, 25 Nov 2021 19:25:08 +0800 From: kernel test robot To: Jason Wang , mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org Subject: Re: [PATCH] virtio-mmio: harden interrupt Message-ID: <202111251934.ybhaqyh7-lkp@intel.com> References: <20211125063034.12347-1-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211125063034.12347-1-jasowang@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.16-rc2 next-20211125] [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] url: https://github.com/0day-ci/linux/commits/Jason-Wang/virtio-mmio-harden-interrupt/20211125-143334 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5f53fa508db098c9d372423a6dac31c8a5679cdf config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20211125/202111251934.ybhaqyh7-lkp@intel.com/config) compiler: m68k-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/0day-ci/linux/commit/e19a8a1a95bd891090863b2d6828b8dc55d3633f git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jason-Wang/virtio-mmio-harden-interrupt/20211125-143334 git checkout e19a8a1a95bd891090863b2d6828b8dc55d3633f # save the config file to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/virtio/virtio_mmio.c:105:6: warning: no previous prototype for 'vm_disable_cbs' [-Wmissing-prototypes] 105 | void vm_disable_cbs(struct virtio_device *vdev) | ^~~~~~~~~~~~~~ >> drivers/virtio/virtio_mmio.c:121:6: warning: no previous prototype for 'vm_enable_cbs' [-Wmissing-prototypes] 121 | void vm_enable_cbs(struct virtio_device *vdev) | ^~~~~~~~~~~~~ vim +/vm_disable_cbs +105 drivers/virtio/virtio_mmio.c 103 104 /* disable irq handlers */ > 105 void vm_disable_cbs(struct virtio_device *vdev) 106 { 107 struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); 108 int irq = platform_get_irq(vm_dev->pdev, 0); 109 110 /* 111 * The below synchronize() guarantees that any 112 * interrupt for this line arriving after 113 * synchronize_irq() has completed is guaranteed to see 114 * intx_soft_enabled == false. 115 */ 116 WRITE_ONCE(vm_dev->intr_soft_enabled, false); 117 synchronize_irq(irq); 118 } 119 120 /* enable irq handlers */ > 121 void vm_enable_cbs(struct virtio_device *vdev) 122 { 123 struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); 124 int irq = platform_get_irq(vm_dev->pdev, 0); 125 126 disable_irq(irq); 127 /* 128 * The above disable_irq() provides TSO ordering and 129 * as such promotes the below store to store-release. 130 */ 131 WRITE_ONCE(vm_dev->intr_soft_enabled, true); 132 enable_irq(irq); 133 return; 134 } 135 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org