[RFC PATCH] vt: sel_cons can be static
by kbuild test robot
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
selection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/vt/selection.c b/drivers/tty/vt/selection.c
index 7556139cd0da0..eb2ae51ca455b 100644
--- a/drivers/tty/vt/selection.c
+++ b/drivers/tty/vt/selection.c
@@ -40,7 +40,7 @@ extern void poke_blanked_console(void);
/* FIXME: all this needs locking */
/* Variables for selection control. */
/* Use a dynamic buffer, instead of static (Dec 1994) */
-struct vc_data *sel_cons; /* must not be deallocated */
+static struct vc_data *sel_cons; /* must not be deallocated */
static int use_unicode;
static volatile int sel_start = -1; /* cleared by clear_selection */
static int sel_end;
2 years, 2 months
[mlankhorst:locking-rework 24/25] include/linux/dma-resv.h:80:28: error: implicit declaration of function 'lockdep_is_held'; did you mean 'lockdep_assert_held'?
by kbuild test robot
tree: git://people.freedesktop.org/~mlankhorst/linux locking-rework
head: 92e2add72bfc4e8503cd1c1afdbc7a551e2b7457
commit: baa4f2adad1832269129ea8293534827d82b300d [24/25] drm/i915: Ensure we hold the pin mutex
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout baa4f2adad1832269129ea8293534827d82b300d
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/bug.h:83:0,
from include/linux/bug.h:5,
from include/linux/cpumask.h:14,
from arch/x86/include/asm/cpumask.h:5,
from arch/x86/include/asm/msr.h:11,
from arch/x86/include/asm/processor.h:22,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from drivers/gpu/drm/i915/i915_drv.c:30:
drivers/gpu/drm/i915/i915_vma.h: In function 'i915_vma_pin':
>> include/linux/dma-resv.h:80:28: error: implicit declaration of function 'lockdep_is_held'; did you mean 'lockdep_assert_held'? [-Werror=implicit-function-declaration]
#define dma_resv_held(obj) lockdep_is_held(&(obj)->lock.base)
^
include/asm-generic/bug.h:151:27: note: in definition of macro 'WARN_ONCE'
int __ret_warn_once = !!(condition); \
^~~~~~~~~
drivers/gpu/drm/i915/i915_vma.h:245:2: note: in expansion of macro 'WARN_ON_ONCE'
WARN_ON_ONCE(vma->resv && dma_resv_held(vma->resv));
^~~~~~~~~~~~
drivers/gpu/drm/i915/i915_vma.h:245:28: note: in expansion of macro 'dma_resv_held'
WARN_ON_ONCE(vma->resv && dma_resv_held(vma->resv));
^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +80 include/linux/dma-resv.h
786d7257e537da include/linux/reservation.h Maarten Lankhorst 2013-06-27 79
52791eeec1d9f4 include/linux/dma-resv.h Christian König 2019-08-11 @80 #define dma_resv_held(obj) lockdep_is_held(&(obj)->lock.base)
52791eeec1d9f4 include/linux/dma-resv.h Christian König 2019-08-11 81 #define dma_resv_assert_held(obj) lockdep_assert_held(&(obj)->lock.base)
04a5faa8cbe5a8 include/linux/reservation.h Maarten Lankhorst 2014-07-01 82
:::::: The code at line 80 was first introduced by commit
:::::: 52791eeec1d9f4a7e7fe08aaba0b1553149d93bc dma-buf: rename reservation_object to dma_resv
:::::: TO: Christian König <christian.koenig(a)amd.com>
:::::: CC: Christian König <christian.koenig(a)amd.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH] cifs: smbd: Update receive credits before sending and deal with credits roll back on failure before sending
by kbuild test robot
Hi,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on cifs/for-next]
[also build test WARNING on v5.6 next-20200331]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/longli-linuxonhyperv-com/cifs-sm...
base: git://git.samba.org/sfrench/cifs-2.6.git for-next
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-187-gbff9b106-dirty
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
>> fs/cifs/smbdirect.c:856:26: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected int i @@ got restricted __le16 [usertyint i @@
>> fs/cifs/smbdirect.c:856:26: sparse: expected int i
>> fs/cifs/smbdirect.c:856:26: sparse: got restricted __le16 [usertype] credits_granted
>> fs/cifs/smbdirect.c:905:35: sparse: sparse: invalid assignment: +=
>> fs/cifs/smbdirect.c:905:35: sparse: left side has type int
>> fs/cifs/smbdirect.c:905:35: sparse: right side has type restricted __le16
fs/cifs/smbdirect.c:907:26: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected int i @@ got restricted __le16 [usertyint i @@
fs/cifs/smbdirect.c:907:26: sparse: expected int i
fs/cifs/smbdirect.c:907:26: sparse: got restricted __le16 [usertype] credits_granted
# https://github.com/0day-ci/linux/commit/e5b2c129dd7cb9db51cd025f988ff5bc2...
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout e5b2c129dd7cb9db51cd025f988ff5bc2b0990a9
vim +856 fs/cifs/smbdirect.c
f198186aa9bbd6 Long Li 2017-11-04 806
f198186aa9bbd6 Long Li 2017-11-04 807 /*
f198186aa9bbd6 Long Li 2017-11-04 808 * Build and prepare the SMBD packet header
f198186aa9bbd6 Long Li 2017-11-04 809 * This function waits for avaialbe send credits and build a SMBD packet
f198186aa9bbd6 Long Li 2017-11-04 810 * header. The caller then optional append payload to the packet after
f198186aa9bbd6 Long Li 2017-11-04 811 * the header
f198186aa9bbd6 Long Li 2017-11-04 812 * intput values
f198186aa9bbd6 Long Li 2017-11-04 813 * size: the size of the payload
f198186aa9bbd6 Long Li 2017-11-04 814 * remaining_data_length: remaining data to send if this is part of a
f198186aa9bbd6 Long Li 2017-11-04 815 * fragmented packet
f198186aa9bbd6 Long Li 2017-11-04 816 * output values
f198186aa9bbd6 Long Li 2017-11-04 817 * request_out: the request allocated from this function
f198186aa9bbd6 Long Li 2017-11-04 818 * return values: 0 on success, otherwise actual error code returned
f198186aa9bbd6 Long Li 2017-11-04 819 */
f198186aa9bbd6 Long Li 2017-11-04 820 static int smbd_create_header(struct smbd_connection *info,
f198186aa9bbd6 Long Li 2017-11-04 821 int size, int remaining_data_length,
f198186aa9bbd6 Long Li 2017-11-04 822 struct smbd_request **request_out)
f198186aa9bbd6 Long Li 2017-11-04 823 {
f198186aa9bbd6 Long Li 2017-11-04 824 struct smbd_request *request;
f198186aa9bbd6 Long Li 2017-11-04 825 struct smbd_data_transfer *packet;
f198186aa9bbd6 Long Li 2017-11-04 826 int header_length;
f198186aa9bbd6 Long Li 2017-11-04 827 int rc;
f198186aa9bbd6 Long Li 2017-11-04 828
f198186aa9bbd6 Long Li 2017-11-04 829 /* Wait for send credits. A SMBD packet needs one credit */
f198186aa9bbd6 Long Li 2017-11-04 830 rc = wait_event_interruptible(info->wait_send_queue,
f198186aa9bbd6 Long Li 2017-11-04 831 atomic_read(&info->send_credits) > 0 ||
f198186aa9bbd6 Long Li 2017-11-04 832 info->transport_status != SMBD_CONNECTED);
f198186aa9bbd6 Long Li 2017-11-04 833 if (rc)
f198186aa9bbd6 Long Li 2017-11-04 834 return rc;
f198186aa9bbd6 Long Li 2017-11-04 835
f198186aa9bbd6 Long Li 2017-11-04 836 if (info->transport_status != SMBD_CONNECTED) {
f198186aa9bbd6 Long Li 2017-11-04 837 log_outgoing(ERR, "disconnected not sending\n");
62fdf6707ebd46 Long Li 2019-04-05 838 return -EAGAIN;
f198186aa9bbd6 Long Li 2017-11-04 839 }
f198186aa9bbd6 Long Li 2017-11-04 840 atomic_dec(&info->send_credits);
f198186aa9bbd6 Long Li 2017-11-04 841
f198186aa9bbd6 Long Li 2017-11-04 842 request = mempool_alloc(info->request_mempool, GFP_KERNEL);
f198186aa9bbd6 Long Li 2017-11-04 843 if (!request) {
f198186aa9bbd6 Long Li 2017-11-04 844 rc = -ENOMEM;
e5b2c129dd7cb9 Long Li 2020-03-31 845 goto err_alloc;
f198186aa9bbd6 Long Li 2017-11-04 846 }
f198186aa9bbd6 Long Li 2017-11-04 847
f198186aa9bbd6 Long Li 2017-11-04 848 request->info = info;
f198186aa9bbd6 Long Li 2017-11-04 849
f198186aa9bbd6 Long Li 2017-11-04 850 /* Fill in the packet header */
f198186aa9bbd6 Long Li 2017-11-04 851 packet = smbd_request_payload(request);
f198186aa9bbd6 Long Li 2017-11-04 852 packet->credits_requested = cpu_to_le16(info->send_credit_target);
f198186aa9bbd6 Long Li 2017-11-04 853 packet->credits_granted =
f198186aa9bbd6 Long Li 2017-11-04 854 cpu_to_le16(manage_credits_prior_sending(info));
f198186aa9bbd6 Long Li 2017-11-04 855 info->send_immediate = false;
e5b2c129dd7cb9 Long Li 2020-03-31 @856 atomic_add(packet->credits_granted, &info->receive_credits);
f198186aa9bbd6 Long Li 2017-11-04 857
f198186aa9bbd6 Long Li 2017-11-04 858 packet->flags = 0;
f198186aa9bbd6 Long Li 2017-11-04 859 if (manage_keep_alive_before_sending(info))
f198186aa9bbd6 Long Li 2017-11-04 860 packet->flags |= cpu_to_le16(SMB_DIRECT_RESPONSE_REQUESTED);
f198186aa9bbd6 Long Li 2017-11-04 861
f198186aa9bbd6 Long Li 2017-11-04 862 packet->reserved = 0;
f198186aa9bbd6 Long Li 2017-11-04 863 if (!size)
f198186aa9bbd6 Long Li 2017-11-04 864 packet->data_offset = 0;
f198186aa9bbd6 Long Li 2017-11-04 865 else
f198186aa9bbd6 Long Li 2017-11-04 866 packet->data_offset = cpu_to_le32(24);
f198186aa9bbd6 Long Li 2017-11-04 867 packet->data_length = cpu_to_le32(size);
f198186aa9bbd6 Long Li 2017-11-04 868 packet->remaining_data_length = cpu_to_le32(remaining_data_length);
f198186aa9bbd6 Long Li 2017-11-04 869 packet->padding = 0;
f198186aa9bbd6 Long Li 2017-11-04 870
f198186aa9bbd6 Long Li 2017-11-04 871 log_outgoing(INFO, "credits_requested=%d credits_granted=%d "
f198186aa9bbd6 Long Li 2017-11-04 872 "data_offset=%d data_length=%d remaining_data_length=%d\n",
f198186aa9bbd6 Long Li 2017-11-04 873 le16_to_cpu(packet->credits_requested),
f198186aa9bbd6 Long Li 2017-11-04 874 le16_to_cpu(packet->credits_granted),
f198186aa9bbd6 Long Li 2017-11-04 875 le32_to_cpu(packet->data_offset),
f198186aa9bbd6 Long Li 2017-11-04 876 le32_to_cpu(packet->data_length),
f198186aa9bbd6 Long Li 2017-11-04 877 le32_to_cpu(packet->remaining_data_length));
f198186aa9bbd6 Long Li 2017-11-04 878
f198186aa9bbd6 Long Li 2017-11-04 879 /* Map the packet to DMA */
f198186aa9bbd6 Long Li 2017-11-04 880 header_length = sizeof(struct smbd_data_transfer);
f198186aa9bbd6 Long Li 2017-11-04 881 /* If this is a packet without payload, don't send padding */
f198186aa9bbd6 Long Li 2017-11-04 882 if (!size)
f198186aa9bbd6 Long Li 2017-11-04 883 header_length = offsetof(struct smbd_data_transfer, padding);
f198186aa9bbd6 Long Li 2017-11-04 884
f198186aa9bbd6 Long Li 2017-11-04 885 request->num_sge = 1;
f198186aa9bbd6 Long Li 2017-11-04 886 request->sge[0].addr = ib_dma_map_single(info->id->device,
f198186aa9bbd6 Long Li 2017-11-04 887 (void *)packet,
f198186aa9bbd6 Long Li 2017-11-04 888 header_length,
7f46d23e1b14f0 Long Li 2019-05-13 889 DMA_TO_DEVICE);
f198186aa9bbd6 Long Li 2017-11-04 890 if (ib_dma_mapping_error(info->id->device, request->sge[0].addr)) {
f198186aa9bbd6 Long Li 2017-11-04 891 mempool_free(request, info->request_mempool);
f198186aa9bbd6 Long Li 2017-11-04 892 rc = -EIO;
e5b2c129dd7cb9 Long Li 2020-03-31 893 goto err_dma;
f198186aa9bbd6 Long Li 2017-11-04 894 }
f198186aa9bbd6 Long Li 2017-11-04 895
f198186aa9bbd6 Long Li 2017-11-04 896 request->sge[0].length = header_length;
f198186aa9bbd6 Long Li 2017-11-04 897 request->sge[0].lkey = info->pd->local_dma_lkey;
f198186aa9bbd6 Long Li 2017-11-04 898
f198186aa9bbd6 Long Li 2017-11-04 899 *request_out = request;
f198186aa9bbd6 Long Li 2017-11-04 900 return 0;
f198186aa9bbd6 Long Li 2017-11-04 901
e5b2c129dd7cb9 Long Li 2020-03-31 902 err_dma:
e5b2c129dd7cb9 Long Li 2020-03-31 903 /* roll back receive credits */
e5b2c129dd7cb9 Long Li 2020-03-31 904 spin_lock(&info->lock_new_credits_offered);
e5b2c129dd7cb9 Long Li 2020-03-31 @905 info->new_credits_offered += packet->credits_granted;
e5b2c129dd7cb9 Long Li 2020-03-31 906 spin_unlock(&info->lock_new_credits_offered);
e5b2c129dd7cb9 Long Li 2020-03-31 907 atomic_sub(packet->credits_granted, &info->receive_credits);
e5b2c129dd7cb9 Long Li 2020-03-31 908
e5b2c129dd7cb9 Long Li 2020-03-31 909 err_alloc:
e5b2c129dd7cb9 Long Li 2020-03-31 910 /* roll back send credits */
f198186aa9bbd6 Long Li 2017-11-04 911 atomic_inc(&info->send_credits);
e5b2c129dd7cb9 Long Li 2020-03-31 912
f198186aa9bbd6 Long Li 2017-11-04 913 return rc;
f198186aa9bbd6 Long Li 2017-11-04 914 }
f198186aa9bbd6 Long Li 2017-11-04 915
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[zen-kernel-zen-kernel:5.5/wireguard 2/2] drivers/net/wireguard/queueing.h:104:2: error: implicit declaration of function 'skb_reset_redirect'; did you mean 'skb_do_redirect'?
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.5/wireguard
head: 6d9e81c5bacffa30e12c12234a03e58f9606e508
commit: 6d9e81c5bacffa30e12c12234a03e58f9606e508 [2/2] Update WireGuard for v5.5 - 2020-04-02
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 6d9e81c5bacffa30e12c12234a03e58f9606e508
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/wireguard/main.c:9:0:
drivers/net/wireguard/queueing.h: In function 'wg_reset_packet':
>> drivers/net/wireguard/queueing.h:104:2: error: implicit declaration of function 'skb_reset_redirect'; did you mean 'skb_do_redirect'? [-Werror=implicit-function-declaration]
skb_reset_redirect(skb);
^~~~~~~~~~~~~~~~~~
skb_do_redirect
cc1: some warnings being treated as errors
vim +104 drivers/net/wireguard/queueing.h
89
90 static inline void wg_reset_packet(struct sk_buff *skb)
91 {
92 skb_scrub_packet(skb, true);
93 memset(&skb->headers_start, 0,
94 offsetof(struct sk_buff, headers_end) -
95 offsetof(struct sk_buff, headers_start));
96 skb->queue_mapping = 0;
97 skb->nohdr = 0;
98 skb->peeked = 0;
99 skb->mac_len = 0;
100 skb->dev = NULL;
101 #ifdef CONFIG_NET_SCHED
102 skb->tc_index = 0;
103 #endif
> 104 skb_reset_redirect(skb);
105 skb->hdr_len = skb_headroom(skb);
106 skb_reset_mac_header(skb);
107 skb_reset_network_header(skb);
108 skb_reset_transport_header(skb);
109 skb_probe_transport_header(skb);
110 skb_reset_inner_headers(skb);
111 }
112
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [Intel-gfx] [PATCH] drm/i915/gt: Add one more rcu_barrier() after draining the ppGTT freelist
by kbuild test robot
Hi Chris,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip v5.6 next-20200402]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-gt-Add-one...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gt/intel_ggtt.c: In function 'ggtt_cleanup_hw':
>> drivers/gpu/drm/i915/gt/intel_ggtt.c:671:11: error: void value not ignored as it ought to be
} while (flush_workqueue(ggtt->vm.i915->wq));
^~~~~~~~~~~~~~~
vim +671 drivers/gpu/drm/i915/gt/intel_ggtt.c
662
663 static void ggtt_cleanup_hw(struct i915_ggtt *ggtt)
664 {
665 struct i915_vma *vma, *vn;
666
667 atomic_set(&ggtt->vm.open, 0);
668
669 do { /* flush the RCU'ed__i915_vm_release */
670 rcu_barrier();
> 671 } while (flush_workqueue(ggtt->vm.i915->wq));
672
673 mutex_lock(&ggtt->vm.mutex);
674
675 list_for_each_entry_safe(vma, vn, &ggtt->vm.bound_list, vm_link)
676 WARN_ON(__i915_vma_unbind(vma));
677
678 if (drm_mm_node_allocated(&ggtt->error_capture))
679 drm_mm_remove_node(&ggtt->error_capture);
680 mutex_destroy(&ggtt->error_mutex);
681
682 ggtt_release_guc_top(ggtt);
683 intel_vgt_deballoon(ggtt);
684
685 ggtt->vm.cleanup(&ggtt->vm);
686
687 mutex_unlock(&ggtt->vm.mutex);
688 i915_address_space_fini(&ggtt->vm);
689
690 arch_phys_wc_del(ggtt->mtrr);
691
692 if (ggtt->iomap.size)
693 io_mapping_fini(&ggtt->iomap);
694 }
695
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[arm:zii 19/90] drivers/net/dsa/ocelot/felix.c:611:25: error: initialization from incompatible pointer type
by kbuild test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: 44ecc8bc50178042162a540be580123e600f2d87
commit: 6f9538c663d4d54ef73d8c6b78f24e3f4eb144ac [19/90] net: dsa: propagate resolved link config via mac_link_up()
config: i386-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 6f9538c663d4d54ef73d8c6b78f24e3f4eb144ac
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/dsa/ocelot/felix.c:611:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.phylink_mac_link_up = felix_phylink_mac_link_up,
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/ocelot/felix.c:611:25: note: (near initialization for 'felix_switch_ops.phylink_mac_link_up')
cc1: some warnings being treated as errors
--
>> drivers/net/dsa/qca/ar9331.c:481:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.phylink_mac_link_up = ar9331_sw_phylink_mac_link_up,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/qca/ar9331.c:481:25: note: (near initialization for 'ar9331_sw_ops.phylink_mac_link_up')
cc1: some warnings being treated as errors
vim +611 drivers/net/dsa/ocelot/felix.c
c0bcf537667cf8 Yangbo Lu 2019-11-20 596
56051948773eeb Vladimir Oltean 2019-11-14 597 static const struct dsa_switch_ops felix_switch_ops = {
56051948773eeb Vladimir Oltean 2019-11-14 598 .get_tag_protocol = felix_get_tag_protocol,
56051948773eeb Vladimir Oltean 2019-11-14 599 .setup = felix_setup,
56051948773eeb Vladimir Oltean 2019-11-14 600 .teardown = felix_teardown,
56051948773eeb Vladimir Oltean 2019-11-14 601 .set_ageing_time = felix_set_ageing_time,
56051948773eeb Vladimir Oltean 2019-11-14 602 .get_strings = felix_get_strings,
56051948773eeb Vladimir Oltean 2019-11-14 603 .get_ethtool_stats = felix_get_ethtool_stats,
56051948773eeb Vladimir Oltean 2019-11-14 604 .get_sset_count = felix_get_sset_count,
56051948773eeb Vladimir Oltean 2019-11-14 605 .get_ts_info = felix_get_ts_info,
bdeced75b13f8a Vladimir Oltean 2020-01-06 606 .phylink_validate = felix_phylink_validate,
bdeced75b13f8a Vladimir Oltean 2020-01-06 607 .phylink_mac_link_state = felix_phylink_mac_pcs_get_state,
bdeced75b13f8a Vladimir Oltean 2020-01-06 608 .phylink_mac_config = felix_phylink_mac_config,
bdeced75b13f8a Vladimir Oltean 2020-01-06 609 .phylink_mac_an_restart = felix_phylink_mac_an_restart,
bdeced75b13f8a Vladimir Oltean 2020-01-06 610 .phylink_mac_link_down = felix_phylink_mac_link_down,
bdeced75b13f8a Vladimir Oltean 2020-01-06 @611 .phylink_mac_link_up = felix_phylink_mac_link_up,
56051948773eeb Vladimir Oltean 2019-11-14 612 .port_enable = felix_port_enable,
56051948773eeb Vladimir Oltean 2019-11-14 613 .port_disable = felix_port_disable,
56051948773eeb Vladimir Oltean 2019-11-14 614 .port_fdb_dump = felix_fdb_dump,
56051948773eeb Vladimir Oltean 2019-11-14 615 .port_fdb_add = felix_fdb_add,
56051948773eeb Vladimir Oltean 2019-11-14 616 .port_fdb_del = felix_fdb_del,
56051948773eeb Vladimir Oltean 2019-11-14 617 .port_bridge_join = felix_bridge_join,
56051948773eeb Vladimir Oltean 2019-11-14 618 .port_bridge_leave = felix_bridge_leave,
56051948773eeb Vladimir Oltean 2019-11-14 619 .port_stp_state_set = felix_bridge_stp_state_set,
56051948773eeb Vladimir Oltean 2019-11-14 620 .port_vlan_prepare = felix_vlan_prepare,
56051948773eeb Vladimir Oltean 2019-11-14 621 .port_vlan_filtering = felix_vlan_filtering,
56051948773eeb Vladimir Oltean 2019-11-14 622 .port_vlan_add = felix_vlan_add,
56051948773eeb Vladimir Oltean 2019-11-14 623 .port_vlan_del = felix_vlan_del,
c0bcf537667cf8 Yangbo Lu 2019-11-20 624 .port_hwtstamp_get = felix_hwtstamp_get,
c0bcf537667cf8 Yangbo Lu 2019-11-20 625 .port_hwtstamp_set = felix_hwtstamp_set,
c0bcf537667cf8 Yangbo Lu 2019-11-20 626 .port_rxtstamp = felix_rxtstamp,
c0bcf537667cf8 Yangbo Lu 2019-11-20 627 .port_txtstamp = felix_txtstamp,
56051948773eeb Vladimir Oltean 2019-11-14 628 };
56051948773eeb Vladimir Oltean 2019-11-14 629
:::::: The code at line 611 was first introduced by commit
:::::: bdeced75b13f8a0fc8e32b70e517a8dbb7d51738 net: dsa: felix: Add PCS operations for PHYLINK
:::::: TO: Vladimir Oltean <vladimir.oltean(a)nxp.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[android-goldfish:android-3.18 109/111] net/batman-adv/debugfs.c:507:56: warning: passing argument 4 of 'debugfs_rename' discards 'const' qualifier from pointer target type
by kbuild test robot
tree: https://android.googlesource.com/kernel/goldfish android-3.18
head: 96ca6e74104f4a4fd680808cdcf13f5a431a714f
commit: 9330a80441f617103f18385993619f05fa948b71 [109/111] batman-adv: Fix debugfs path for renamed hardif
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 5.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 9330a80441f617103f18385993619f05fa948b71
# save the attached .config to linux build tree
GCC_VERSION=5.5.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
net/batman-adv/debugfs.c: In function 'batadv_debugfs_rename_hardif':
>> net/batman-adv/debugfs.c:507:56: warning: passing argument 4 of 'debugfs_rename' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
d = debugfs_rename(dir->d_parent, dir, dir->d_parent, name);
^
In file included from net/batman-adv/debugfs.c:21:0:
include/linux/debugfs.h:145:30: note: expected 'char *' but argument is of type 'const char *'
static inline struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry,
^
vim +507 net/batman-adv/debugfs.c
492
493 /**
494 * batadv_debugfs_rename_hardif() - Fix debugfs path for renamed hardif
495 * @hard_iface: hard interface which was renamed
496 */
497 void batadv_debugfs_rename_hardif(struct batadv_hard_iface *hard_iface)
498 {
499 const char *name = hard_iface->net_dev->name;
500 struct dentry *dir;
501 struct dentry *d;
502
503 dir = hard_iface->debug_dir;
504 if (!dir)
505 return;
506
> 507 d = debugfs_rename(dir->d_parent, dir, dir->d_parent, name);
508 if (!d)
509 pr_err("Can't rename debugfs dir to %s\n", name);
510 }
511
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[lkp] [+1209 bytes kernel size regression] [i386-tinyconfig] [17e5888e4e] x86: Select HARDIRQS_SW_RESEND on x86
by kbuild test robot
FYI, we noticed a +1209 bytes kernel size regression due to commit:
commit: 17e5888e4e180b45af7bafe7f3a86440d42717f3 (x86: Select HARDIRQS_SW_RESEND on x86)
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
Details as below (size data is obtained by `nm --size-sort vmlinux`):
87f2d1c6: genirq/irqdomain: Check pointer in irq_domain_alloc_irqs_hierarchy()
17e5888e: x86: Select HARDIRQS_SW_RESEND on x86
+----------------------------+----------+----------+-------+
| symbol | 87f2d1c6 | 17e5888e | delta |
+----------------------------+----------+----------+-------+
| nm.b.irqs_resend | 0 | 1028 | 1028 |
| bzImage | 440336 | 440496 | 160 |
| nm.t.resend_irqs | 0 | 64 | 64 |
| nm.T.check_irq_resend | 84 | 139 | 55 |
| nm.T.irq_set_parent | 0 | 48 | 48 |
| nm.d.resend_tasklet | 0 | 20 | 20 |
| nm.t.irq_put_desc_unlock | 0 | 7 | 7 |
| nm.R.linux_banner | 116 | 118 | 2 |
| nm.T.disable_percpu_irq | 44 | 42 | -2 |
| nm.T.teardown_percpu_nmi | 48 | 46 | -2 |
| nm.T.can_request_irq | 73 | 71 | -2 |
| nm.T.prepare_percpu_nmi | 77 | 75 | -2 |
| nm.T.irq_set_vcpu_affinity | 78 | 76 | -2 |
| nm.T.enable_percpu_irq | 80 | 78 | -2 |
| nm.T.irq_percpu_is_enabled | 61 | 58 | -3 |
+----------------------------+----------+----------+-------+
Thanks,
Kbuild test robot
2 years, 2 months
[vhost:vhost 22/22] drivers/vdpa/vdpa_sim/vdpa_sim.c:94:8: error: implicit declaration of function 'vringh_init_iotlb'; did you mean 'vringh_init_kern'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head: 076cb4adba3e2d7d3c25b72a1390b24ebfc58161
commit: 076cb4adba3e2d7d3c25b72a1390b24ebfc58161 [22/22] virtio/test: fix up after IOTLB changes
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 076cb4adba3e2d7d3c25b72a1390b24ebfc58161
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/vdpa/vdpa_sim/vdpa_sim.c: In function 'vdpasim_queue_ready':
>> drivers/vdpa/vdpa_sim/vdpa_sim.c:94:8: error: implicit declaration of function 'vringh_init_iotlb'; did you mean 'vringh_init_kern'? [-Werror=implicit-function-declaration]
94 | ret = vringh_init_iotlb(&vq->vring, vdpasim_features,
| ^~~~~~~~~~~~~~~~~
| vringh_init_kern
drivers/vdpa/vdpa_sim/vdpa_sim.c: In function 'vdpasim_work':
>> drivers/vdpa/vdpa_sim/vdpa_sim.c:149:9: error: implicit declaration of function 'vringh_getdesc_iotlb'; did you mean 'vringh_getdesc_kern'? [-Werror=implicit-function-declaration]
149 | err = vringh_getdesc_iotlb(&txq->vring, &txq->iov, NULL,
| ^~~~~~~~~~~~~~~~~~~~
| vringh_getdesc_kern
>> drivers/vdpa/vdpa_sim/vdpa_sim.c:157:4: error: implicit declaration of function 'vringh_complete_iotlb'; did you mean 'vringh_complete_kern'? [-Werror=implicit-function-declaration]
157 | vringh_complete_iotlb(&txq->vring, txq->head, 0);
| ^~~~~~~~~~~~~~~~~~~~~
| vringh_complete_kern
>> drivers/vdpa/vdpa_sim/vdpa_sim.c:162:11: error: implicit declaration of function 'vringh_iov_pull_iotlb'; did you mean 'vringh_iov_pull_kern'? [-Werror=implicit-function-declaration]
162 | read = vringh_iov_pull_iotlb(&txq->vring, &txq->iov,
| ^~~~~~~~~~~~~~~~~~~~~
| vringh_iov_pull_kern
>> drivers/vdpa/vdpa_sim/vdpa_sim.c:168:12: error: implicit declaration of function 'vringh_iov_push_iotlb'; did you mean 'vringh_iov_push_kern'? [-Werror=implicit-function-declaration]
168 | write = vringh_iov_push_iotlb(&rxq->vring, &rxq->iov,
| ^~~~~~~~~~~~~~~~~~~~~
| vringh_iov_push_kern
drivers/vdpa/vdpa_sim/vdpa_sim.c: In function 'vdpasim_create':
>> drivers/vdpa/vdpa_sim/vdpa_sim.c:339:2: error: implicit declaration of function 'vringh_set_iotlb' [-Werror=implicit-function-declaration]
339 | vringh_set_iotlb(&vdpasim->vqs[0].vring, vdpasim->iommu);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +94 drivers/vdpa/vdpa_sim/vdpa_sim.c
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 88
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 89 static void vdpasim_queue_ready(struct vdpasim *vdpasim, unsigned int idx)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 90 {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 91 struct vdpasim_virtqueue *vq = &vdpasim->vqs[idx];
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 92 int ret;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 93
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 @94 ret = vringh_init_iotlb(&vq->vring, vdpasim_features,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 95 VDPASIM_QUEUE_MAX, false,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 96 (struct vring_desc *)(uintptr_t)vq->desc_addr,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 97 (struct vring_avail *)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 98 (uintptr_t)vq->driver_addr,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 99 (struct vring_used *)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 100 (uintptr_t)vq->device_addr);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 101 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 102
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 103 static void vdpasim_vq_reset(struct vdpasim_virtqueue *vq)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 104 {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 105 vq->ready = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 106 vq->desc_addr = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 107 vq->driver_addr = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 108 vq->device_addr = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 109 vq->cb = NULL;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 110 vq->private = NULL;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 111 vringh_init_iotlb(&vq->vring, vdpasim_features, VDPASIM_QUEUE_MAX,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 112 false, NULL, NULL, NULL);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 113 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 114
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 115 static void vdpasim_reset(struct vdpasim *vdpasim)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 116 {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 117 int i;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 118
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 119 for (i = 0; i < VDPASIM_VQ_NUM; i++)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 120 vdpasim_vq_reset(&vdpasim->vqs[i]);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 121
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 122 vhost_iotlb_reset(vdpasim->iommu);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 123
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 124 vdpasim->features = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 125 vdpasim->status = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 126 ++vdpasim->generation;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 127 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 128
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 129 static void vdpasim_work(struct work_struct *work)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 130 {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 131 struct vdpasim *vdpasim = container_of(work, struct
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 132 vdpasim, work);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 133 struct vdpasim_virtqueue *txq = &vdpasim->vqs[1];
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 134 struct vdpasim_virtqueue *rxq = &vdpasim->vqs[0];
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 135 size_t read, write, total_write;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 136 int err;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 137 int pkts = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 138
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 139 spin_lock(&vdpasim->lock);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 140
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 141 if (!(vdpasim->status & VIRTIO_CONFIG_S_DRIVER_OK))
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 142 goto out;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 143
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 144 if (!txq->ready || !rxq->ready)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 145 goto out;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 146
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 147 while (true) {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 148 total_write = 0;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 @149 err = vringh_getdesc_iotlb(&txq->vring, &txq->iov, NULL,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 150 &txq->head, GFP_ATOMIC);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 151 if (err <= 0)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 152 break;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 153
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 154 err = vringh_getdesc_iotlb(&rxq->vring, NULL, &rxq->iov,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 155 &rxq->head, GFP_ATOMIC);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 156 if (err <= 0) {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 @157 vringh_complete_iotlb(&txq->vring, txq->head, 0);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 158 break;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 159 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 160
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 161 while (true) {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 @162 read = vringh_iov_pull_iotlb(&txq->vring, &txq->iov,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 163 vdpasim->buffer,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 164 PAGE_SIZE);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 165 if (read <= 0)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 166 break;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 167
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 @168 write = vringh_iov_push_iotlb(&rxq->vring, &rxq->iov,
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 169 vdpasim->buffer, read);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 170 if (write <= 0)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 171 break;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 172
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 173 total_write += write;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 174 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 175
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 176 /* Make sure data is wrote before advancing index */
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 177 smp_wmb();
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 178
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 179 vringh_complete_iotlb(&txq->vring, txq->head, 0);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 180 vringh_complete_iotlb(&rxq->vring, rxq->head, total_write);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 181
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 182 /* Make sure used is visible before rasing the interrupt. */
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 183 smp_wmb();
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 184
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 185 local_bh_disable();
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 186 if (txq->cb)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 187 txq->cb(txq->private);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 188 if (rxq->cb)
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 189 rxq->cb(rxq->private);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 190 local_bh_enable();
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 191
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 192 if (++pkts > 4) {
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 193 schedule_work(&vdpasim->work);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 194 goto out;
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 195 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 196 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 197
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 198 out:
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 199 spin_unlock(&vdpasim->lock);
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 200 }
a35630af6f3198 drivers/virtio/vdpa/vdpa_sim/vdpa_sim.c Jason Wang 2020-03-26 201
:::::: The code at line 94 was first introduced by commit
:::::: a35630af6f31989c517b45c19dc7f9c64bf59a8c vdpasim: vDPA device simulator
:::::: TO: Jason Wang <jasowang(a)redhat.com>
:::::: CC: Michael S. Tsirkin <mst(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months