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=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gnuweeb.org (Postfix) with ESMTPS id 2B8C17E317 for ; Fri, 15 Jul 2022 02:07:01 +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=iODP/2Vd; 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=1657850821; x=1689386821; h=date:from:to:cc:subject:message-id:mime-version; bh=cVz4X5NyeQqn6ERcWEamPT5WXxC1vtnyZiR7KFTI9xM=; b=iODP/2VdJUO0EzTtf3H2kbnqWMMcP4VyV+ZJZMdc100zWBG8NIQpVaPw h4z4zT065K28RcegE2ev/X6lG25v4HEpwcsAdHKFoEuPw8NgZyCOu62xB ay0yp+wCvi7uQRTjYqBjt3cxoqwVCVeGD7XkJKn9qDPdnWEtdWmVmLoKX ErzzO4H7XvX5Y3hjXGZ9w5IUVMPDdWVO55UywekpOTbuwkvJR1osSWQ/A lmUbXvOLHO184NirEHhb1TVP+hMonDRU1WFYErWtbsi02XbXoSPOcnfWE WhA2GAF8yJw6biAjx5lWt0I5h7M+q7aKnd0qKFY+Si/msP8ezXe8bueGd w==; X-IronPort-AV: E=McAfee;i="6400,9594,10408"; a="283238296" X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="283238296" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 19:07:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="571335649" Received: from lkp-server01.sh.intel.com (HELO fd2c14d642b4) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 14 Jul 2022 19:06:58 -0700 Received: from kbuild by fd2c14d642b4 with local (Exim 4.95) (envelope-from ) id 1oCAjJ-0001S2-RM; Fri, 15 Jul 2022 02:06:57 +0000 Date: Fri, 15 Jul 2022 10:06:50 +0800 From: kernel test robot To: "Joel Fernandes (Google)" Cc: kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, "Paul E. McKenney" Subject: [ammarfaizi2-block:paulmck/linux-rcu/joel.2022.07.14a 25/27] kernel/rcu/rcuscale.c:819:28: error: implicit declaration of function 'rcu_lazy_get_jiffies_till_flush' Message-ID: <202207150959.APaZTo2Q-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/joel.2022.07.14a head: 37d0460c40e7e364151894260d483ade68b1de34 commit: 39e5f05326df757fa3be4617773fafb0454d9ec7 [25/27] rcuscale: Add laziness and kfree tests config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220715/202207150959.APaZTo2Q-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/39e5f05326df757fa3be4617773fafb0454d9ec7 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/joel.2022.07.14a git checkout 39e5f05326df757fa3be4617773fafb0454d9ec7 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/rcu/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/rcu/rcuscale.c: In function 'kfree_scale_init': >> kernel/rcu/rcuscale.c:819:28: error: implicit declaration of function 'rcu_lazy_get_jiffies_till_flush' [-Werror=implicit-function-declaration] 819 | orig_jif = rcu_lazy_get_jiffies_till_flush(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> kernel/rcu/rcuscale.c:822:17: error: implicit declaration of function 'rcu_lazy_set_jiffies_till_flush' [-Werror=implicit-function-declaration] 822 | rcu_lazy_set_jiffies_till_flush(2 * HZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/rcu_lazy_get_jiffies_till_flush +819 kernel/rcu/rcuscale.c 796 797 static int __init 798 kfree_scale_init(void) 799 { 800 long i; 801 int firsterr = 0; 802 unsigned long orig_jif, jif_start; 803 804 // If lazy-rcu based kfree'ing is requested, then for kernels that 805 // support it, force all call_rcu() to call_rcu_lazy() so that non-lazy 806 // CBs do not remove laziness of the lazy ones (since the test tries to 807 // stress call_rcu_lazy() for OOM). 808 // 809 // Also, do a quick self-test to ensure laziness is as much as 810 // expected. 811 if (kfree_rcu_by_lazy && !IS_ENABLED(CONFIG_RCU_LAZY)) { 812 pr_alert("CONFIG_RCU_LAZY is disabled, falling back to kfree_rcu() " 813 "for delayed RCU kfree'ing\n"); 814 kfree_rcu_by_lazy = 0; 815 } 816 817 if (kfree_rcu_by_lazy) { 818 /* do a test to check the timeout. */ > 819 orig_jif = rcu_lazy_get_jiffies_till_flush(); 820 821 rcu_force_call_rcu_to_lazy(true); > 822 rcu_lazy_set_jiffies_till_flush(2 * HZ); 823 rcu_barrier(); 824 825 jif_start = jiffies; 826 jiffies_at_lazy_cb = 0; 827 call_rcu_lazy(&lazy_test1_rh, call_rcu_lazy_test1); 828 829 smp_cond_load_relaxed(&rcu_lazy_test1_cb_called, VAL == 1); 830 831 rcu_lazy_set_jiffies_till_flush(orig_jif); 832 833 if (WARN_ON_ONCE(jiffies_at_lazy_cb - jif_start < 2 * HZ)) { 834 pr_alert("ERROR: Lazy CBs are not being lazy as expected!\n"); 835 WARN_ON_ONCE(1); 836 return -1; 837 } 838 839 if (WARN_ON_ONCE(jiffies_at_lazy_cb - jif_start > 3 * HZ)) { 840 pr_alert("ERROR: Lazy CBs are being too lazy!\n"); 841 WARN_ON_ONCE(1); 842 return -1; 843 } 844 } 845 846 kfree_nrealthreads = compute_real(kfree_nthreads); 847 /* Start up the kthreads. */ 848 if (shutdown) { 849 init_waitqueue_head(&shutdown_wq); 850 firsterr = torture_create_kthread(kfree_scale_shutdown, NULL, 851 shutdown_task); 852 if (torture_init_error(firsterr)) 853 goto unwind; 854 schedule_timeout_uninterruptible(1); 855 } 856 857 pr_alert("kfree object size=%zu, kfree_rcu_by_lazy=%d\n", 858 kfree_mult * sizeof(struct kfree_obj), 859 kfree_rcu_by_lazy); 860 861 kfree_reader_tasks = kcalloc(kfree_nrealthreads, sizeof(kfree_reader_tasks[0]), 862 GFP_KERNEL); 863 if (kfree_reader_tasks == NULL) { 864 firsterr = -ENOMEM; 865 goto unwind; 866 } 867 868 for (i = 0; i < kfree_nrealthreads; i++) { 869 firsterr = torture_create_kthread(kfree_scale_thread, (void *)i, 870 kfree_reader_tasks[i]); 871 if (torture_init_error(firsterr)) 872 goto unwind; 873 } 874 875 while (atomic_read(&n_kfree_scale_thread_started) < kfree_nrealthreads) 876 schedule_timeout_uninterruptible(1); 877 878 torture_init_end(); 879 return 0; 880 881 unwind: 882 torture_init_end(); 883 kfree_scale_cleanup(); 884 return firsterr; 885 } 886 -- 0-DAY CI Kernel Test Service https://01.org/lkp