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 7BA01C433F5 for ; Wed, 12 Jan 2022 02:57:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E5DB36B0112; Tue, 11 Jan 2022 21:57:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DE6A36B0113; Tue, 11 Jan 2022 21:57:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CAEB16B0114; Tue, 11 Jan 2022 21:57:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0167.hostedemail.com [216.40.44.167]) by kanga.kvack.org (Postfix) with ESMTP id BB8506B0112 for ; Tue, 11 Jan 2022 21:57:01 -0500 (EST) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 6A3D77FAD3 for ; Wed, 12 Jan 2022 02:57:01 +0000 (UTC) X-FDA: 79020123042.06.26E5410 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf16.hostedemail.com (Postfix) with ESMTP id C1E2018000E for ; Wed, 12 Jan 2022 02:56:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641956219; x=1673492219; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=g8FNvjJKIwfCe2xDsoJ1xZNH1Akt13kmUxP/qpDqEp0=; b=PhNHtNzAdf4V8DW1rgfp7RR8S6jXNVYllyfcSgNxSEa+fpTdjkcKH8+Y FmDNp4TzpDdnHqYUg21MI9tCUtZGeBHdGbRRBDpmKcG+4kqv1aX6/OZ6t P82AhFO35AZn0X9CNggrWetlGs1YLxNlgdSKsyx1N2cKmF+udmiaui8Q2 KxlL96/GCwlIB63ISqbNo2fEvTAzAx6lK3nxcL1h+Z+t2vDp3n61PUjcY 7UIukg7XFBEw6M30buBlQ1UpPR8b5PDfrGGv9ETBv17hk+wt1Ab1su1zs iW4I420835EhDwf0yHEySRPnsGYjRnQeI4NCZfpMNTRs3BYDSPw3EEBOP g==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="243444462" X-IronPort-AV: E=Sophos;i="5.88,281,1635231600"; d="scan'208";a="243444462" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 18:56:57 -0800 X-IronPort-AV: E=Sophos;i="5.88,281,1635231600"; d="scan'208";a="528999691" Received: from rongch2-mobl.ccr.corp.intel.com (HELO [10.249.174.244]) ([10.249.174.244]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 18:56:54 -0800 Subject: Re: [kbuild-all] Re: [linux-next:master 9576/10864] include/linux/rcupdate.h:412:36: error: dereferencing pointer to incomplete type 'struct bpf_prog' To: Jakub Kicinski , kernel test robot , kbuild-all@lists.01.org Cc: Linux Memory Management List , Alexei Starovoitov References: <202201051741.TQVhjCyh-lkp@intel.com> <20220105081543.3ee0eae4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: "Chen, Rong A" Message-ID: Date: Wed, 12 Jan 2022 10:56:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20220105081543.3ee0eae4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: C1E2018000E X-Stat-Signature: de1gapuntc6s7p75x7cw6qx1xtbbibmg Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=PhNHtNzA; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf16.hostedemail.com: domain of rong.a.chen@intel.com has no SPF policy when checking 134.134.136.24) smtp.mailfrom=rong.a.chen@intel.com X-Rspamd-Server: rspam08 X-HE-Tag: 1641956219-467347 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: On 1/6/2022 12:15 AM, Jakub Kicinski wrote: > On Wed, 5 Jan 2022 17:21:31 +0800 kernel test robot wrote: >> 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 > > Thanks for the report! > > I'm slightly confused how to read it. > > The issues is already fixed by commit 7d714ff14d64 ("net: fixup build > after bpf header changes"), which is present in linux-next. Should this > report be marked as "already fixed" or "transient" somehow? Why is head > reported to be at 7a769a39 when it must in fact be at b6459415 for the > build to fail. > > HEAD has a special meaning in git, it's the currently checked out > commit. Perhaps we can avoid using it with a different meaning? > Maybe put the hash on the "tree:" line in brackets instead? Hi Jakub, Thanks for your reminding, The HEAD here should be the confirmed commit that the bot fetched at that time but it still has the problem. in this case, the bot didn't check the HEAD (7a769a39) which causes the false positive. Best Regards, Rong Chen > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master (7a769a3922d8) > > >> 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 > _______________________________________________ > kbuild-all mailing list -- kbuild-all@lists.01.org > To unsubscribe send an email to kbuild-all-leave@lists.01.org >