From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v12 05/13] vdpa: Add reset callback in vdpa_config_ops
Date: Tue, 31 Aug 2021 02:15:45 +0800 [thread overview]
Message-ID: <202108310236.wo2cFWnc-lkp@intel.com> (raw)
In-Reply-To: <20210830141737.181-6-xieyongji@bytedance.com>
[-- Attachment #1: Type: text/plain, Size: 4427 bytes --]
Hi Xie,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on vhost/linux-next]
[cannot apply to iommu/next lwn/docs-next linus/master v5.14 next-20210830]
[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/Xie-Yongji/Introduce-VDUSE-vDPA-Device-in-Userspace/20210830-222539
base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/6e5e4d1644120efbf84d53cdf478d49e59643259
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xie-Yongji/Introduce-VDUSE-vDPA-Device-in-Userspace/20210830-222539
git checkout 6e5e4d1644120efbf84d53cdf478d49e59643259
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/vdpa/ifcvf/ifcvf_main.c: In function 'ifcvf_vdpa_reset':
>> drivers/vdpa/ifcvf/ifcvf_main.c:257:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
257 | if (status_old & VIRTIO_CONFIG_S_DRIVER_OK)
| ^~
drivers/vdpa/ifcvf/ifcvf_main.c:259:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
259 | ifcvf_free_irq(adapter, vf->nr_vring);
| ^~~~~~~~~~~~~~
drivers/vdpa/ifcvf/ifcvf_main.c: At top level:
>> drivers/vdpa/ifcvf/ifcvf_main.c:262:9: warning: data definition has no type or storage class
262 | ifcvf_reset_vring(adapter);
| ^~~~~~~~~~~~~~~~~
drivers/vdpa/ifcvf/ifcvf_main.c:262:9: error: type defaults to 'int' in declaration of 'ifcvf_reset_vring' [-Werror=implicit-int]
>> drivers/vdpa/ifcvf/ifcvf_main.c:262:9: warning: parameter names (without types) in function declaration
drivers/vdpa/ifcvf/ifcvf_main.c:262:9: error: conflicting types for 'ifcvf_reset_vring'; have 'int()'
drivers/vdpa/ifcvf/ifcvf_main.c:142:13: note: previous definition of 'ifcvf_reset_vring' with type 'void(struct ifcvf_adapter *)'
142 | static void ifcvf_reset_vring(struct ifcvf_adapter *adapter)
| ^~~~~~~~~~~~~~~~~
drivers/vdpa/ifcvf/ifcvf_main.c:264:9: error: expected identifier or '(' before 'return'
264 | return 0;
| ^~~~~~
drivers/vdpa/ifcvf/ifcvf_main.c:265:1: error: expected identifier or '(' before '}' token
265 | }
| ^
drivers/vdpa/ifcvf/ifcvf_main.c: In function 'ifcvf_vdpa_reset':
drivers/vdpa/ifcvf/ifcvf_main.c:260:9: error: control reaches end of non-void function [-Werror=return-type]
260 | }
| ^
At top level:
drivers/vdpa/ifcvf/ifcvf_main.c:142:13: warning: 'ifcvf_reset_vring' defined but not used [-Wunused-function]
142 | static void ifcvf_reset_vring(struct ifcvf_adapter *adapter)
| ^~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/if +257 drivers/vdpa/ifcvf/ifcvf_main.c
243
244 static int ifcvf_vdpa_reset(struct vdpa_device *vdpa_dev)
245 {
246 struct ifcvf_adapter *adapter;
247 struct ifcvf_hw *vf;
248 u8 status_old;
249
250 vf = vdpa_to_vf(vdpa_dev);
251 adapter = vdpa_to_adapter(vdpa_dev);
252 status_old = ifcvf_get_status(vf);
253
254 if (status_old == 0)
255 return 0;
256
> 257 if (status_old & VIRTIO_CONFIG_S_DRIVER_OK)
258 ifcvf_stop_datapath(adapter);
259 ifcvf_free_irq(adapter, vf->nr_vring);
260 }
261
> 262 ifcvf_reset_vring(adapter);
263
264 return 0;
265 }
266
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 68444 bytes --]
next prev parent reply other threads:[~2021-08-30 18:15 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 14:17 [PATCH v12 00/13] Introduce VDUSE - vDPA Device in Userspace Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 01/13] iova: Export alloc_iova_fast() and free_iova_fast() Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 02/13] eventfd: Export eventfd_wake_count to modules Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 03/13] file: Export receive_fd() " Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 04/13] vdpa: Fix some coding style issues Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 05/13] vdpa: Add reset callback in vdpa_config_ops Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 18:15 ` kernel test robot [this message]
2021-08-30 22:43 ` kernel test robot
2021-08-30 22:43 ` kernel test robot
2021-08-31 1:27 ` kernel test robot
2021-09-06 5:54 ` Michael S. Tsirkin
2021-09-06 5:54 ` Michael S. Tsirkin
2021-09-06 5:54 ` Michael S. Tsirkin
2021-08-30 14:17 ` [PATCH v12 06/13] vhost-vdpa: Handle the failure of vdpa_reset() Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 07/13] vhost-iotlb: Add an opaque pointer for vhost IOTLB Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 08/13] vdpa: Add an opaque pointer for vdpa_config_ops.dma_map() Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 09/13] vdpa: factor out vhost_vdpa_pa_map() and vhost_vdpa_pa_unmap() Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 10/13] vdpa: Support transferring virtual addressing during DMA mapping Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 11/13] vduse: Implement an MMU-based software IOTLB Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 12/13] vduse: Introduce VDUSE - vDPA Device in Userspace Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2021-08-30 14:17 ` [PATCH v12 13/13] Documentation: Add documentation for VDUSE Xie Yongji
2021-08-30 14:17 ` Xie Yongji
2022-01-10 12:56 ` [PATCH v12 00/13] Introduce VDUSE - vDPA Device in Userspace Michael S. Tsirkin
2022-01-10 12:56 ` Michael S. Tsirkin
2022-01-10 12:56 ` Michael S. Tsirkin
2022-01-10 13:54 ` Yongji Xie
2022-01-10 13:54 ` Yongji Xie
2022-01-10 15:09 ` Michael S. Tsirkin
2022-01-10 15:09 ` Michael S. Tsirkin
2022-01-10 15:09 ` Michael S. Tsirkin
2022-01-10 15:24 ` Yongji Xie
2022-01-10 15:24 ` Yongji Xie
2022-01-10 15:44 ` Michael S. Tsirkin
2022-01-10 15:44 ` Michael S. Tsirkin
2022-01-10 15:44 ` Michael S. Tsirkin
2022-01-11 3:31 ` Yongji Xie
2022-01-11 3:31 ` Yongji Xie
2022-01-11 11:54 ` Michael S. Tsirkin
2022-01-11 11:54 ` Michael S. Tsirkin
2022-01-11 11:54 ` Michael S. Tsirkin
2022-01-11 12:57 ` Yongji Xie
2022-01-11 12:57 ` Yongji Xie
2022-01-11 13:04 ` Michael S. Tsirkin
2022-01-11 13:04 ` Michael S. Tsirkin
2022-01-11 13:04 ` Michael S. Tsirkin
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=202108310236.wo2cFWnc-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.