From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gnuweeb.org (Postfix) with ESMTPS id 7BE717EC68 for ; Thu, 3 Feb 2022 03:00:42 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=QV7P6hoB; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643857242; x=1675393242; h=date:from:to:cc:subject:message-id:mime-version; bh=QbvTnnL+MRgF7Ucp//VgqN8FR2m3aWIH1m8CeU1thsE=; b=QV7P6hoBkU4NbabaWQdfKe+1iIJHCYedRPs7BhAx5W36VdV7PPruGbMf A8B5rrmxU1J+VoNGI6S/FMy1BiN/TLvPKvE1gBnN148D5P4wVgDMchHG+ V3gVDhfSOeyMUr435D3lZTJ3/YLlOJWNpANA/rHsCT6+s6OyxIdaYESQ4 BybWj9tjq0eCsyYMiP1zBGcomBWc2pnWQnuEhW+kn9gQC6q7LGXdhhSOq E6BQROuv7MMTzo9vydoywyOlbNOXxBomvWpjx1olcsrojmTZeSm25LqqZ aMSzJDf3WF8f6BFuKYM6T1CF+RtyT/kfCNoG28a2kk5yw0RBGKh5g23yd w==; X-IronPort-AV: E=McAfee;i="6200,9189,10246"; a="246899925" X-IronPort-AV: E=Sophos;i="5.88,338,1635231600"; d="scan'208";a="246899925" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2022 19:00:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,338,1635231600"; d="scan'208";a="483094058" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 02 Feb 2022 19:00:39 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nFSMQ-000VTg-SX; Thu, 03 Feb 2022 03:00:38 +0000 Date: Thu, 3 Feb 2022 11:00:18 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:paulmck/linux-rcu/dev.2022.02.01a 77/103] kernel/rcu/srcutree.c:424:5: error: 'struct srcu_struct' has no member named 'srcu_size_state' Message-ID: <202202031012.PzmEcyQ4-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) List-Id: tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/dev.2022.02.01a head: 5721fe42e5e76b24e5a37c4fb5a4807cd4eb925d commit: efbdb910e14b15835266c55ad4d891dde0792aed [77/103] srcu: Dynamically allocate srcu_node array config: i386-randconfig-a004-20211220 (https://download.01.org/0day-ci/archive/20220203/202202031012.PzmEcyQ4-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/efbdb910e14b15835266c55ad4d891dde0792aed git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/dev.2022.02.01a git checkout efbdb910e14b15835266c55ad4d891dde0792aed # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot Note: the ammarfaizi2-block/paulmck/linux-rcu/dev.2022.02.01a HEAD 5721fe42e5e76b24e5a37c4fb5a4807cd4eb925d builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): kernel/rcu/srcutree.c: In function 'cleanup_srcu_struct': >> kernel/rcu/srcutree.c:424:5: error: 'struct srcu_struct' has no member named 'srcu_size_state' 424 | ssp->srcu_size_state = SRCU_SIZE_SMALL; | ^~ >> kernel/rcu/srcutree.c:424:25: error: 'SRCU_SIZE_SMALL' undeclared (first use in this function) 424 | ssp->srcu_size_state = SRCU_SIZE_SMALL; | ^~~~~~~~~~~~~~~ kernel/rcu/srcutree.c:424:25: note: each undeclared identifier is reported only once for each function it appears in vim +424 kernel/rcu/srcutree.c 387 388 /** 389 * cleanup_srcu_struct - deconstruct a sleep-RCU structure 390 * @ssp: structure to clean up. 391 * 392 * Must invoke this after you are finished using a given srcu_struct that 393 * was initialized via init_srcu_struct(), else you leak memory. 394 */ 395 void cleanup_srcu_struct(struct srcu_struct *ssp) 396 { 397 int cpu; 398 399 if (WARN_ON(!srcu_get_delay(ssp))) 400 return; /* Just leak it! */ 401 if (WARN_ON(srcu_readers_active(ssp))) 402 return; /* Just leak it! */ 403 flush_delayed_work(&ssp->work); 404 for_each_possible_cpu(cpu) { 405 struct srcu_data *sdp = per_cpu_ptr(ssp->sda, cpu); 406 407 del_timer_sync(&sdp->delay_work); 408 flush_work(&sdp->work); 409 if (WARN_ON(rcu_segcblist_n_cbs(&sdp->srcu_cblist))) 410 return; /* Forgot srcu_barrier(), so just leak it! */ 411 } 412 if (WARN_ON(rcu_seq_state(READ_ONCE(ssp->srcu_gp_seq)) != SRCU_STATE_IDLE) || 413 WARN_ON(rcu_seq_current(&ssp->srcu_gp_seq) != ssp->srcu_gp_seq_needed) || 414 WARN_ON(srcu_readers_active(ssp))) { 415 pr_info("%s: Active srcu_struct %p read state: %d gp state: %lu/%lu\n", 416 __func__, ssp, rcu_seq_state(READ_ONCE(ssp->srcu_gp_seq)), 417 rcu_seq_current(&ssp->srcu_gp_seq), ssp->srcu_gp_seq_needed); 418 return; /* Caller forgot to stop doing call_srcu()? */ 419 } 420 free_percpu(ssp->sda); 421 ssp->sda = NULL; 422 kfree(ssp->node); 423 ssp->node = NULL; > 424 ssp->srcu_size_state = SRCU_SIZE_SMALL; 425 } 426 EXPORT_SYMBOL_GPL(cleanup_srcu_struct); 427 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org