Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp874003lqs; Tue, 5 Mar 2024 21:59:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVxNr7bLNlz4aPKCCfKytXFcZq2kQe4CK3HZPpIrgXI5iJ7ZyHWE+gTBSDwIvsyReSOBYIA6ClewqAzRXfx3QurwtMj6Y8afSiuaDg+cw== X-Google-Smtp-Source: AGHT+IFGlZQHtTJhusXdPHutq7WgSW7ARwJDcVELwVbaAEqwj/VEI6ej9TVb/YlqsntWI2UZ1DYq X-Received: by 2002:a17:902:e747:b0:1dc:c161:bcd4 with SMTP id p7-20020a170902e74700b001dcc161bcd4mr5711602plf.30.1709704741261; Tue, 05 Mar 2024 21:59:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709704741; cv=pass; d=google.com; s=arc-20160816; b=Ovq4KR5UZ+oljSK8NWMZIV06fVQqYMVIsdrvRonJnVXm8K2xN1QA/tvyC5bNSdUxgl 22X6C6T7By20LmlA4NGOgOFCWbmnNzl0+Xdcc9mLavZtWNUaxs2IGveABr9gv2vgmrLS EPpC8tARLJwyBmuYVVQ6l0HIpJt7cqQimWOotUb1T9ThhNOdfo5pvqMOvVqJU54tgi95 pqL7sfdJeCo+z8MBWyCQoIH4nMjVAlyoMaVPrlSn9S5m+y8HGrn2tX4kaWePzi9l/OoV MKPj2R8H5U22DKOK1qPw23RI3R21K09dVDL0+dOLtQwDEiYgbzqKiM8PxnNdsqq4uPt5 h5mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DfVCq9Oq4E38uVOkbizp5Kaab7bkfwj1u849kbPnNzg=; fh=mnR4eBnbYU3VKcYrdLOcirYWORIXggd+7z/p3bY+UpQ=; b=035dteEMrc5emSIqguMT2AuqItoFK0vKm8LiDIOsJ//I4OI73f0jEZai2v7fzpaT18 l6JCM9yCnB8dcF19aWom58RT+nqxbVIcM5gJgzgzqqMr7rnEirp+8UpQp6V2yRpvPYz+ JrWiq2aShgqnHu6b3o27r8BiiKmCI7dMG0DdZqXXZ/BBT/8qaApC42awhR2f2tfl7Hu7 lAcbdGFdgkCAiOQrziV7lzR3seAXWJHIR+X9PU1pWMU/4UodnXmqd4qGY/1l3yAY1Wbp Qfh84PAdZ9Djj3COxPDckQteJvz8+g9dFZ62/Q9zBdXvc+VACdHhyNXJho8JhjzHDKSD oSig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hD2e2n22; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-93362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j16-20020a170903025000b001dca8734f2asi11441834plh.422.2024.03.05.21.59.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 21:59:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hD2e2n22; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-93362-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 19AE9282C4B for ; Wed, 6 Mar 2024 05:57:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 954611BDDC; Wed, 6 Mar 2024 05:57:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hD2e2n22" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 0567C1B947; Wed, 6 Mar 2024 05:57:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709704639; cv=none; b=LUtg6Bw8RudV5SZnCBgoJmz7T8iNSGSLKbIKv2uujdsitIyZ4neOQ6nlvpZp3soe1r7wphzAHWhdm+IHceYsTUZho73F8MHEY4D2UQc8ebo5VcVdy74DNwU4A6FWETLRNcxO+aF4mSBWPszcsiSPeHVgye+F99+EphOvpTxlyKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709704639; c=relaxed/simple; bh=qEPt76gIMPxVn54nC6HM1RPfPT0P4+FpSp9P9AxYdIw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BzEe9B5RVPJ2F/I+S2NwgNY6E1pBCcQqVlfcZN4zniymzzAFgKgtOoVX3jsBV5dSElUvj04TKhl3ZFvOzDQhYK5Bh8Ken/OObcyZjeYpk/RWPpvwNNshDuCOpy74T1KfkQ/dqouuIBuCLKPWfsleTNJc9IiRg3B6olNIEzrggSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=hD2e2n22; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709704636; x=1741240636; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=qEPt76gIMPxVn54nC6HM1RPfPT0P4+FpSp9P9AxYdIw=; b=hD2e2n22z0VsAcvQ9ruVlWs0qmQVg1CGBa0mMxkCZzQ0/Jln9iFkHU+f cW4FK1y3pTXZS+PUSyYgRoQhYA2p17WBJQXxq0RcgwQojirL6vlUL7n+U DhrWCyZHlFGU4zFWFoxy1fubPFvCWbDbl5MKrxJbSiR3UETZSDOZR0cUC UOZaGooXnqMOTdOZZa4xQyj4MuejJoApLzZM0RRw4JBoZVViR1BkMgzjR jFa6l/9RESti8GYmCdy/ECS2tCMO/Cr2kJXnO4iy6Gpltqbq8QgYIaOfd bG2B3o7uiI2B9DwbPV/qXL3dOiF4cByRZpKCV33h/gMfU3nQZiA0EAFoh Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11004"; a="4471284" X-IronPort-AV: E=Sophos;i="6.06,207,1705392000"; d="scan'208";a="4471284" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 21:57:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,207,1705392000"; d="scan'208";a="10216790" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 05 Mar 2024 21:57:12 -0800 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rhkH6-0003xt-36; Wed, 06 Mar 2024 05:57:08 +0000 Date: Wed, 6 Mar 2024 13:57:08 +0800 From: kernel test robot To: =?iso-8859-1?Q?Asbj=F8rn_Sloth_T=F8nnesen?= , Jamal Hadi Salim , Cong Wang , Jiri Pirko Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, =?iso-8859-1?Q?Asbj=F8rn_Sloth_T=F8nnesen?= , Daniel Borkmann , Vlad Buslov , Marcelo Ricardo Leitner , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llu@fiberby.dk Subject: Re: [PATCH net-next v2 3/3] net: sched: make skip_sw actually skip software Message-ID: <202403061346.ILWGhalr-lkp@intel.com> References: <20240305144404.569632-4-ast@fiberby.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240305144404.569632-4-ast@fiberby.net> Hi Asbj?rn, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Asbj-rn-Sloth-T-nnesen/net-sched-cls_api-add-skip_sw-counter/20240305-225707 base: net-next/main patch link: https://lore.kernel.org/r/20240305144404.569632-4-ast%40fiberby.net patch subject: [PATCH net-next v2 3/3] net: sched: make skip_sw actually skip software config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240306/202403061346.ILWGhalr-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 325f51237252e6dab8e4e1ea1fa7acbb4faee1cd) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240306/202403061346.ILWGhalr-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202403061346.ILWGhalr-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from net/sched/cls_api.c:18: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:8: In file included from include/linux/cacheflush.h:5: In file included from arch/riscv/include/asm/cacheflush.h:9: In file included from include/linux/mm.h:2188: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from net/sched/cls_api.c:27: In file included from include/net/sock.h:46: In file included from include/linux/netdevice.h:45: In file included from include/uapi/linux/neighbour.h:6: In file included from include/linux/netlink.h:9: In file included from include/net/scm.h:9: In file included from include/linux/security.h:35: include/linux/bpf.h:736:48: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 736 | ARG_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MAP_VALUE, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:737:43: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 737 | ARG_PTR_TO_MEM_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MEM, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:738:43: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 738 | ARG_PTR_TO_CTX_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_CTX, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:739:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 739 | ARG_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_SOCKET, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:740:44: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 740 | ARG_PTR_TO_STACK_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_STACK, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ include/linux/bpf.h:741:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 741 | ARG_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_BTF_ID, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:745:38: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 745 | ARG_PTR_TO_UNINIT_MEM = MEM_UNINIT | ARG_PTR_TO_MEM, | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:747:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 747 | ARG_PTR_TO_FIXED_SIZE_MEM = MEM_FIXED_SIZE | ARG_PTR_TO_MEM, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:770:48: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 770 | RET_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_MAP_VALUE, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:771:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 771 | RET_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCKET, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:772:47: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 772 | RET_PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_TCP_SOCK, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:773:50: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 773 | RET_PTR_TO_SOCK_COMMON_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCK_COMMON, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:775:49: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 775 | RET_PTR_TO_DYNPTR_MEM_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_MEM, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:776:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 776 | RET_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_BTF_ID, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:777:43: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 777 | RET_PTR_TO_BTF_ID_TRUSTED = PTR_TRUSTED | RET_PTR_TO_BTF_ID, | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:888:44: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 888 | PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | PTR_TO_MAP_VALUE, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ include/linux/bpf.h:889:42: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 889 | PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | PTR_TO_SOCKET, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ include/linux/bpf.h:890:46: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 890 | PTR_TO_SOCK_COMMON_OR_NULL = PTR_MAYBE_NULL | PTR_TO_SOCK_COMMON, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:891:44: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 891 | PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | PTR_TO_TCP_SOCK, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ include/linux/bpf.h:892:42: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 892 | PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | PTR_TO_BTF_ID, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ >> net/sched/cls_api.c:421:23: error: use of undeclared identifier 'tcf_bypass_check_needed_key' 421 | static_branch_inc(&tcf_bypass_check_needed_key); | ^ net/sched/cls_api.c:423:23: error: use of undeclared identifier 'tcf_bypass_check_needed_key' 423 | static_branch_dec(&tcf_bypass_check_needed_key); | ^ 21 warnings and 2 errors generated. vim +/tcf_bypass_check_needed_key +421 net/sched/cls_api.c 412 413 static inline void tcf_maintain_bypass(struct tcf_block *block) 414 { 415 int filtercnt = atomic_read(&block->filtercnt); 416 int skipswcnt = atomic_read(&block->skipswcnt); 417 bool bypass_wanted = filtercnt > 0 && filtercnt == skipswcnt; 418 419 if (bypass_wanted != block->bypass_wanted) { 420 if (bypass_wanted) > 421 static_branch_inc(&tcf_bypass_check_needed_key); 422 else 423 static_branch_dec(&tcf_bypass_check_needed_key); 424 block->bypass_wanted = bypass_wanted; 425 } 426 } 427 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki