From: kernel test robot <lkp@intel.com>
To: John Ousterhout <ouster@cs.stanford.edu>, netdev@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
John Ousterhout <ouster@cs.stanford.edu>
Subject: Re: [PATCH net-next v3 12/12] net: homa: create Makefile and Kconfig
Date: Wed, 11 Dec 2024 08:32:06 +0800 [thread overview]
Message-ID: <202412110709.Kdjua3Pc-lkp@intel.com> (raw)
In-Reply-To: <20241209175131.3839-14-ouster@cs.stanford.edu>
Hi John,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/John-Ousterhout/inet-homa-define-user-visible-API-for-Homa/20241210-055415
base: net-next/main
patch link: https://lore.kernel.org/r/20241209175131.3839-14-ouster%40cs.stanford.edu
patch subject: [PATCH net-next v3 12/12] net: homa: create Makefile and Kconfig
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20241211/202412110709.Kdjua3Pc-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241211/202412110709.Kdjua3Pc-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412110709.Kdjua3Pc-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from net/homa/homa_outgoing.c:7:
In file included from net/homa/homa_impl.h:12:
In file included from include/linux/audit.h:13:
In file included from include/linux/ptrace.h:10:
In file included from include/linux/pid_namespace.h:7:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> net/homa/homa_outgoing.c:809:6: warning: variable 'checks' set but not used [-Wunused-but-set-variable]
809 | int checks = 0;
| ^
5 warnings generated.
--
In file included from net/homa/homa_sock.c:5:
In file included from net/homa/homa_impl.h:12:
In file included from include/linux/audit.h:13:
In file included from include/linux/ptrace.h:10:
In file included from include/linux/pid_namespace.h:7:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> net/homa/homa_sock.c:224:6: warning: variable 'i' set but not used [-Wunused-but-set-variable]
224 | int i;
| ^
5 warnings generated.
--
In file included from net/homa/homa_timer.c:7:
In file included from net/homa/homa_impl.h:12:
In file included from include/linux/audit.h:13:
In file included from include/linux/ptrace.h:10:
In file included from include/linux/pid_namespace.h:7:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> net/homa/homa_timer.c:106:6: warning: variable 'total_rpcs' set but not used [-Wunused-but-set-variable]
106 | int total_rpcs = 0;
| ^
5 warnings generated.
vim +/checks +809 net/homa/homa_outgoing.c
537f41147b3131 John Ousterhout 2024-12-09 796
537f41147b3131 John Ousterhout 2024-12-09 797 /**
537f41147b3131 John Ousterhout 2024-12-09 798 * homa_add_to_throttled() - Make sure that an RPC is on the throttled list
537f41147b3131 John Ousterhout 2024-12-09 799 * and wake up the pacer thread if necessary.
537f41147b3131 John Ousterhout 2024-12-09 800 * @rpc: RPC with outbound packets that have been granted but can't be
537f41147b3131 John Ousterhout 2024-12-09 801 * sent because of NIC queue restrictions. Must be locked by caller.
537f41147b3131 John Ousterhout 2024-12-09 802 */
537f41147b3131 John Ousterhout 2024-12-09 803 void homa_add_to_throttled(struct homa_rpc *rpc)
537f41147b3131 John Ousterhout 2024-12-09 804 __must_hold(&rpc->bucket->lock)
537f41147b3131 John Ousterhout 2024-12-09 805 {
537f41147b3131 John Ousterhout 2024-12-09 806 struct homa *homa = rpc->hsk->homa;
537f41147b3131 John Ousterhout 2024-12-09 807 struct homa_rpc *candidate;
537f41147b3131 John Ousterhout 2024-12-09 808 int bytes_left;
537f41147b3131 John Ousterhout 2024-12-09 @809 int checks = 0;
537f41147b3131 John Ousterhout 2024-12-09 810 __u64 now;
537f41147b3131 John Ousterhout 2024-12-09 811
537f41147b3131 John Ousterhout 2024-12-09 812 if (!list_empty(&rpc->throttled_links))
537f41147b3131 John Ousterhout 2024-12-09 813 return;
537f41147b3131 John Ousterhout 2024-12-09 814 now = sched_clock();
537f41147b3131 John Ousterhout 2024-12-09 815 homa->throttle_add = now;
537f41147b3131 John Ousterhout 2024-12-09 816 bytes_left = rpc->msgout.length - rpc->msgout.next_xmit_offset;
537f41147b3131 John Ousterhout 2024-12-09 817 homa_throttle_lock(homa);
537f41147b3131 John Ousterhout 2024-12-09 818 list_for_each_entry_rcu(candidate, &homa->throttled_rpcs,
537f41147b3131 John Ousterhout 2024-12-09 819 throttled_links) {
537f41147b3131 John Ousterhout 2024-12-09 820 int bytes_left_cand;
537f41147b3131 John Ousterhout 2024-12-09 821
537f41147b3131 John Ousterhout 2024-12-09 822 checks++;
537f41147b3131 John Ousterhout 2024-12-09 823
537f41147b3131 John Ousterhout 2024-12-09 824 /* Watch out: the pacer might have just transmitted the last
537f41147b3131 John Ousterhout 2024-12-09 825 * packet from candidate.
537f41147b3131 John Ousterhout 2024-12-09 826 */
537f41147b3131 John Ousterhout 2024-12-09 827 bytes_left_cand = candidate->msgout.length -
537f41147b3131 John Ousterhout 2024-12-09 828 candidate->msgout.next_xmit_offset;
537f41147b3131 John Ousterhout 2024-12-09 829 if (bytes_left_cand > bytes_left) {
537f41147b3131 John Ousterhout 2024-12-09 830 list_add_tail_rcu(&rpc->throttled_links,
537f41147b3131 John Ousterhout 2024-12-09 831 &candidate->throttled_links);
537f41147b3131 John Ousterhout 2024-12-09 832 goto done;
537f41147b3131 John Ousterhout 2024-12-09 833 }
537f41147b3131 John Ousterhout 2024-12-09 834 }
537f41147b3131 John Ousterhout 2024-12-09 835 list_add_tail_rcu(&rpc->throttled_links, &homa->throttled_rpcs);
537f41147b3131 John Ousterhout 2024-12-09 836 done:
537f41147b3131 John Ousterhout 2024-12-09 837 homa_throttle_unlock(homa);
537f41147b3131 John Ousterhout 2024-12-09 838 wake_up_process(homa->pacer_kthread);
537f41147b3131 John Ousterhout 2024-12-09 839 }
537f41147b3131 John Ousterhout 2024-12-09 840
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-11 0:32 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 17:51 [PATCH net-next v3 00/12] Begin upstreaming Homa transport protocol John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 01/12] inet: homa: define user-visible API for Homa John Ousterhout
2024-12-09 17:51 ` [PATCH net-next 01/12] net: " John Ousterhout
2024-12-09 17:54 ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 02/12] net: homa: define Homa packet formats John Ousterhout
2024-12-12 12:29 ` Edward Cree
2024-12-13 18:32 ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 03/12] net: homa: create shared Homa header files John Ousterhout
2024-12-17 6:36 ` Edward Cree
2024-12-18 5:46 ` John Ousterhout
2024-12-18 12:25 ` Edward Cree
2024-12-19 17:50 ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 04/12] net: homa: create homa_pool.h and homa_pool.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 05/12] net: homa: create homa_rpc.h and homa_rpc.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 06/12] net: homa: create homa_peer.h and homa_peer.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 07/12] net: homa: create homa_sock.h and homa_sock.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 08/12] net: homa: create homa_incoming.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 09/12] net: homa: create homa_outgoing.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 10/12] net: homa: create homa_timer.c John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 11/12] net: homa: create homa_plumbing.c homa_utils.c John Ousterhout
2024-12-10 6:08 ` D. Wythe
2024-12-11 1:59 ` John Ousterhout
2024-12-11 5:06 ` D. Wythe
2024-12-11 22:59 ` John Ousterhout
2024-12-11 6:39 ` D. Wythe
2024-12-11 23:01 ` John Ousterhout
2024-12-09 17:51 ` [PATCH net-next v3 12/12] net: homa: create Makefile and Kconfig John Ousterhout
2024-12-11 0:32 ` kernel test robot [this message]
2024-12-11 17:29 ` John Ousterhout
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=202412110709.Kdjua3Pc-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ouster@cs.stanford.edu \
/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.