From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36D6F168 for ; Wed, 29 Dec 2021 09:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640770800; x=1672306800; h=date:from:to:cc:subject:message-id:mime-version; bh=6xZU5eIdqN5KP7A6JYZCmhfipb2iUL+Xcv3SzmdLsgE=; b=L5SZtWoKf2WrZHru03che7w5yEKQSKL4jhX2dH9BvABOxJmz2ASDlw6e L+KgRCzW8Cu/5uHWmFbERppgJTACTvbdz+eE/JULhekwIHO4iPmy8JA8C 92UnUqhIrVf0u10eif9O1mbdlyjloRItds51R3T4ZRwLJS9QPcEQKypTd hXH/Q+5IrkQFW+G1gwU7InOLWuJomBAMkT3mU99U3UK0jBoZDEadveNIa r+bXDOpWA80b///CSAM7cAwBUVxG0qk9eUCDzjn395XXH1yyLDPEW3Lqz JMgaP6mESrUBhPQcg0msJwYN230Bxi/bDseeM0oeotVeRf5xgZNcxojqb g==; X-IronPort-AV: E=McAfee;i="6200,9189,10211"; a="240278659" X-IronPort-AV: E=Sophos;i="5.88,244,1635231600"; d="scan'208";a="240278659" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Dec 2021 01:39:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,244,1635231600"; d="scan'208";a="470293070" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 29 Dec 2021 01:39:57 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n2VR7-0008np-45; Wed, 29 Dec 2021 09:39:57 +0000 Date: Wed, 29 Dec 2021 17:39:18 +0800 From: kernel test robot To: Cong Wang Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [congwang:sch_bpf 2/3] kernel/bpf/skb_map.c:160:5: warning: no previous prototype for function 'skb_map_enqueue' Message-ID: <202112291719.wxZ293dn-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://github.com/congwang/linux.git sch_bpf head: 5fb0da1e47e0c68da0323a3e0399b2628a13e999 commit: bc7c943a32f707b17d62bcbf4cca59f3e0de8d65 [2/3] bpf: introduce skb map config: x86_64-randconfig-r012-20211228 (https://download.01.org/0day-ci/archive/20211229/202112291719.wxZ293dn-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b7ac0615afc6e0f1a30da2777e361de27a3) 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/congwang/linux/commit/bc7c943a32f707b17d62bcbf4cca59f3e0de8d65 git remote add congwang https://github.com/congwang/linux.git git fetch --no-tags congwang sch_bpf git checkout bc7c943a32f707b17d62bcbf4cca59f3e0de8d65 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/skb_map.c:160:5: warning: no previous prototype for function 'skb_map_enqueue' [-Wmissing-prototypes] int skb_map_enqueue(struct sk_buff *skb, struct bpf_map *map, u64 key) ^ kernel/bpf/skb_map.c:160:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int skb_map_enqueue(struct sk_buff *skb, struct bpf_map *map, u64 key) ^ static >> kernel/bpf/skb_map.c:180:17: warning: no previous prototype for function 'skb_map_dequeue' [-Wmissing-prototypes] struct sk_buff *skb_map_dequeue(struct bpf_map *map) ^ kernel/bpf/skb_map.c:180:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct sk_buff *skb_map_dequeue(struct bpf_map *map) ^ static 2 warnings generated. vim +/skb_map_enqueue +160 kernel/bpf/skb_map.c 159 > 160 int skb_map_enqueue(struct sk_buff *skb, struct bpf_map *map, u64 key) 161 { 162 struct bpf_skb_map *pq = bpf_skb_map(map); 163 struct skb_map_node *n; 164 unsigned long flags; 165 166 if (atomic_inc_return(&pq->count) > pq->map.max_entries) 167 return -ENOBUFS; 168 n = alloc_skb_map_node(pq); 169 if (!n) 170 return -ENOMEM; 171 n->key = key; 172 n->skb = skb_get(skb); 173 raw_spin_lock_irqsave(&pq->lock, flags); 174 pq_push(&pq->root, &n->node); 175 raw_spin_unlock_irqrestore(&pq->lock, flags); 176 return 0; 177 178 } 179 > 180 struct sk_buff *skb_map_dequeue(struct bpf_map *map) 181 { 182 struct bpf_skb_map *pq = bpf_skb_map(map); 183 struct skb_map_node *n; 184 struct pq_node *node; 185 unsigned long flags; 186 187 raw_spin_lock_irqsave(&pq->lock, flags); 188 node = pq_pop(&pq->root); 189 if (!node) { 190 raw_spin_unlock_irqrestore(&pq->lock, flags); 191 return NULL; 192 } 193 raw_spin_unlock_irqrestore(&pq->lock, flags); 194 n = container_of(node, struct skb_map_node, node); 195 consume_skb(n->skb); 196 atomic_dec(&pq->count); 197 return n->skb; 198 } 199 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8669177640166872655==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [congwang:sch_bpf 2/3] kernel/bpf/skb_map.c:160:5: warning: no previous prototype for function 'skb_map_enqueue' Date: Wed, 29 Dec 2021 17:39:18 +0800 Message-ID: <202112291719.wxZ293dn-lkp@intel.com> List-Id: --===============8669177640166872655== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/congwang/linux.git sch_bpf head: 5fb0da1e47e0c68da0323a3e0399b2628a13e999 commit: bc7c943a32f707b17d62bcbf4cca59f3e0de8d65 [2/3] bpf: introduce skb m= ap config: x86_64-randconfig-r012-20211228 (https://download.01.org/0day-ci/ar= chive/20211229/202112291719.wxZ293dn-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cd284b= 7ac0615afc6e0f1a30da2777e361de27a3) reproduce (this is a W=3D1 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/congwang/linux/commit/bc7c943a32f707b17d62bcbf= 4cca59f3e0de8d65 git remote add congwang https://github.com/congwang/linux.git git fetch --no-tags congwang sch_bpf git checkout bc7c943a32f707b17d62bcbf4cca59f3e0de8d65 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/bpf/skb_map.c:160:5: warning: no previous prototype for function = 'skb_map_enqueue' [-Wmissing-prototypes] int skb_map_enqueue(struct sk_buff *skb, struct bpf_map *map, u64 key) ^ kernel/bpf/skb_map.c:160:1: note: declare 'static' if the function is no= t intended to be used outside of this translation unit int skb_map_enqueue(struct sk_buff *skb, struct bpf_map *map, u64 key) ^ static = >> kernel/bpf/skb_map.c:180:17: warning: no previous prototype for function= 'skb_map_dequeue' [-Wmissing-prototypes] struct sk_buff *skb_map_dequeue(struct bpf_map *map) ^ kernel/bpf/skb_map.c:180:1: note: declare 'static' if the function is no= t intended to be used outside of this translation unit struct sk_buff *skb_map_dequeue(struct bpf_map *map) ^ static = 2 warnings generated. vim +/skb_map_enqueue +160 kernel/bpf/skb_map.c 159 = > 160 int skb_map_enqueue(struct sk_buff *skb, struct bpf_map *map, u64 ke= y) 161 { 162 struct bpf_skb_map *pq =3D bpf_skb_map(map); 163 struct skb_map_node *n; 164 unsigned long flags; 165 = 166 if (atomic_inc_return(&pq->count) > pq->map.max_entries) 167 return -ENOBUFS; 168 n =3D alloc_skb_map_node(pq); 169 if (!n) 170 return -ENOMEM; 171 n->key =3D key; 172 n->skb =3D skb_get(skb); 173 raw_spin_lock_irqsave(&pq->lock, flags); 174 pq_push(&pq->root, &n->node); 175 raw_spin_unlock_irqrestore(&pq->lock, flags); 176 return 0; 177 = 178 } 179 = > 180 struct sk_buff *skb_map_dequeue(struct bpf_map *map) 181 { 182 struct bpf_skb_map *pq =3D bpf_skb_map(map); 183 struct skb_map_node *n; 184 struct pq_node *node; 185 unsigned long flags; 186 = 187 raw_spin_lock_irqsave(&pq->lock, flags); 188 node =3D pq_pop(&pq->root); 189 if (!node) { 190 raw_spin_unlock_irqrestore(&pq->lock, flags); 191 return NULL; 192 } 193 raw_spin_unlock_irqrestore(&pq->lock, flags); 194 n =3D container_of(node, struct skb_map_node, node); 195 consume_skb(n->skb); 196 atomic_dec(&pq->count); 197 return n->skb; 198 } 199 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8669177640166872655==--