From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8839795305315419578==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [linux-next:master 9576/10864] include/linux/rcupdate.h:412:36: error: dereferencing pointer to incomplete type 'struct bpf_prog' Date: Wed, 05 Jan 2022 17:21:31 +0800 Message-ID: <202201051741.TQVhjCyh-lkp@intel.com> List-Id: --===============8839795305315419578== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git= master head: 7a769a3922d81cfc74ab4d90a9cc69485f260976 commit: b6459415b384cb829f0b2a4268f211c789f6cf0b [9576/10864] net: Don't in= clude filter.h from net/sock.h config: i386-randconfig-m021-20220105 (https://download.01.org/0day-ci/arch= ive/20220105/202201051741.TQVhjCyh-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it/commit/?id=3Db6459415b384cb829f0b2a4268f211c789f6cf0b git remote add linux-next https://git.kernel.org/pub/scm/linux/kern= el/git/next/linux-next.git git fetch --no-tags linux-next master git checkout b6459415b384cb829f0b2a4268f211c789f6cf0b # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash drivers/net/= ethernet/mellanox/mlx5/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from ./arch/x86/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:266, from arch/x86/include/asm/atomic.h:5, from include/linux/atomic.h:7, from include/linux/refcount.h:95, from include/net/act_api.h:9, from include/net/tc_act/tc_gact.h:5, from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:= 33: drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_al= loc_rq': >> include/linux/rcupdate.h:412:36: error: dereferencing pointer to incompl= ete type 'struct bpf_prog' 412 | #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) | ^~~~ include/asm-generic/rwonce.h:55:33: note: in definition of macro '__WRIT= E_ONCE' 55 | *(volatile typeof(x) *)&(x) =3D (val); \ | ^~~ include/linux/rcupdate.h:854:3: note: in expansion of macro 'WRITE_ONCE' 854 | WRITE_ONCE(p, RCU_INITIALIZER(v)); \ | ^~~~~~~~~~ include/linux/rcupdate.h:854:17: note: in expansion of macro 'RCU_INITIA= LIZER' 854 | WRITE_ONCE(p, RCU_INITIALIZER(v)); \ | ^~~~~~~~~~~~~~~ drivers/net/ethernet/mellanox/mlx5/core/en_main.c:569:2: note: in expans= ion of macro 'RCU_INIT_POINTER' 569 | RCU_INIT_POINTER(rq->xdp_prog, params->xdp_prog); | ^~~~~~~~~~~~~~~~ vim +412 include/linux/rcupdate.h ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 407 = 462225ae47d717 Paul E. McKenney 2013-11-11 408 /** 462225ae47d717 Paul E. McKenney 2013-11-11 409 * RCU_INITIALIZER() - sta= tically initialize an RCU-protected global variable 462225ae47d717 Paul E. McKenney 2013-11-11 410 * @v: The value to static= ally initialize with. 462225ae47d717 Paul E. McKenney 2013-11-11 411 */ 462225ae47d717 Paul E. McKenney 2013-11-11 @412 #define RCU_INITIALIZER(v)= (typeof(*(v)) __force __rcu *)(v) 462225ae47d717 Paul E. McKenney 2013-11-11 413 = :::::: The code at line 412 was first introduced by commit :::::: 462225ae47d7175f886281d8a91708550cd5178c rcu: Add an RCU_INITIALIZER= for global RCU-protected pointers :::::: TO: Paul E. McKenney :::::: CC: Paul E. McKenney --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8839795305315419578==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76E53C433EF for ; Wed, 5 Jan 2022 09:22:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F028B6B0071; Wed, 5 Jan 2022 04:22:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EB12A6B0073; Wed, 5 Jan 2022 04:22:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DA00C6B0074; Wed, 5 Jan 2022 04:22:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0214.hostedemail.com [216.40.44.214]) by kanga.kvack.org (Postfix) with ESMTP id CB3FD6B0071 for ; Wed, 5 Jan 2022 04:22:35 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 60FBA8249980 for ; Wed, 5 Jan 2022 09:22:35 +0000 (UTC) X-FDA: 78995693070.21.AFB271B Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf28.hostedemail.com (Postfix) with ESMTP id 870E2C000E for ; Wed, 5 Jan 2022 09:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641374554; x=1672910554; h=date:from:to:cc:subject:message-id:mime-version; bh=zcrVge4k2LquzhHVLqviI013b1jJSco1ihxTqrfr/Pc=; b=SqmCF7A8rmFNPNxcLRDBmPSty/kshHRxvelm/QqYtAWRc/Op2eSpOkOe 5ZOWK8PUVIEfZEePzPip8hFvdOs5ZwwiRlZmCoaM+Kp3LAmSXHA4Gds0V 4zk7fWS44odDeutNckiSGUocjs9lUugiOXXxtXjt0DXKEHZj2/uKfmMqS +A5IhNYg6cRvqT5JyEX4bhvwhP9t3jPp3s7YEUtJmcG7hLts5Y5GsZ/ox 3AZvq4vTY53Y7wvwN6gaPLrTXStrT7iPJTs+XRFzwnYsvjLWmvJvM9Nta hGqJLKZVB69+lT0a0JyrlGqreqyGTlx/Soc2M85jBXlPlEETrhd1w5Gmn g==; X-IronPort-AV: E=McAfee;i="6200,9189,10217"; a="229722495" X-IronPort-AV: E=Sophos;i="5.88,263,1635231600"; d="scan'208";a="229722495" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2022 01:22:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,263,1635231600"; d="scan'208";a="488510309" Received: from lkp-server01.sh.intel.com (HELO e357b3ef1427) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 05 Jan 2022 01:22:31 -0800 Received: from kbuild by e357b3ef1427 with local (Exim 4.92) (envelope-from ) id 1n52V5-000GSd-03; Wed, 05 Jan 2022 09:22:31 +0000 Date: Wed, 5 Jan 2022 17:21:31 +0800 From: kernel test robot To: Jakub Kicinski Cc: kbuild-all@lists.01.org, Linux Memory Management List , Alexei Starovoitov Subject: [linux-next:master 9576/10864] include/linux/rcupdate.h:412:36: error: dereferencing pointer to incomplete type 'struct bpf_prog' Message-ID: <202201051741.TQVhjCyh-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 870E2C000E X-Stat-Signature: zy37d4w7sjghpkwkkw63phejbe9ku4fg Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=SqmCF7A8; spf=none (imf28.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1641374554-780667 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 7a769a3922d81cfc74ab4d90a9cc69485f260976 commit: b6459415b384cb829f0b2a4268f211c789f6cf0b [9576/10864] net: Don't include filter.h from net/sock.h config: i386-randconfig-m021-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051741.TQVhjCyh-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b6459415b384cb829f0b2a4268f211c789f6cf0b git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout b6459415b384cb829f0b2a4268f211c789f6cf0b # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/mellanox/mlx5/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from ./arch/x86/include/generated/asm/rwonce.h:1, from include/linux/compiler.h:266, from arch/x86/include/asm/atomic.h:5, from include/linux/atomic.h:7, from include/linux/refcount.h:95, from include/net/act_api.h:9, from include/net/tc_act/tc_gact.h:5, from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:33: drivers/net/ethernet/mellanox/mlx5/core/en_main.c: In function 'mlx5e_alloc_rq': >> include/linux/rcupdate.h:412:36: error: dereferencing pointer to incomplete type 'struct bpf_prog' 412 | #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) | ^~~~ include/asm-generic/rwonce.h:55:33: note: in definition of macro '__WRITE_ONCE' 55 | *(volatile typeof(x) *)&(x) = (val); \ | ^~~ include/linux/rcupdate.h:854:3: note: in expansion of macro 'WRITE_ONCE' 854 | WRITE_ONCE(p, RCU_INITIALIZER(v)); \ | ^~~~~~~~~~ include/linux/rcupdate.h:854:17: note: in expansion of macro 'RCU_INITIALIZER' 854 | WRITE_ONCE(p, RCU_INITIALIZER(v)); \ | ^~~~~~~~~~~~~~~ drivers/net/ethernet/mellanox/mlx5/core/en_main.c:569:2: note: in expansion of macro 'RCU_INIT_POINTER' 569 | RCU_INIT_POINTER(rq->xdp_prog, params->xdp_prog); | ^~~~~~~~~~~~~~~~ vim +412 include/linux/rcupdate.h ca5ecddfa8fcbd Paul E. McKenney 2010-04-28 407 462225ae47d717 Paul E. McKenney 2013-11-11 408 /** 462225ae47d717 Paul E. McKenney 2013-11-11 409 * RCU_INITIALIZER() - statically initialize an RCU-protected global variable 462225ae47d717 Paul E. McKenney 2013-11-11 410 * @v: The value to statically initialize with. 462225ae47d717 Paul E. McKenney 2013-11-11 411 */ 462225ae47d717 Paul E. McKenney 2013-11-11 @412 #define RCU_INITIALIZER(v) (typeof(*(v)) __force __rcu *)(v) 462225ae47d717 Paul E. McKenney 2013-11-11 413 :::::: The code at line 412 was first introduced by commit :::::: 462225ae47d7175f886281d8a91708550cd5178c rcu: Add an RCU_INITIALIZER for global RCU-protected pointers :::::: TO: Paul E. McKenney :::::: CC: Paul E. McKenney --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org