From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (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 7011C266BE; Thu, 12 Oct 2023 17:28:50 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KJVOBRD2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697131730; x=1728667730; h=date:from:to:cc:subject:message-id:mime-version; bh=vLD+lHU+aXxPpqRD1InXQsgJzzyc1PYVxmdbNMY8DbU=; b=KJVOBRD2oF2LfgV8GxT6qThFXge25FDh36Zyt9am3C6FkOtkGaxHS3Ro 8PHznPQ9oM5vWgVxNjTs0Hv7MMvAWPJF/q6IFnbT7BuBDeMAxaAlq3zUY kdmbcwnbR77fch8NtXsPGHaUAI2q+hKsdvfSCXI2TZ/mcJEuuXOU81PzQ maXdTpj5CZpMG3Z8BU46UgSMsOZVk6R58PIU+OMXfFX7t06rfafQyeT2G mwpAxUcnyQscYf/p5tAAP/vUYkXpORxKhy/U23VsImV+r4UzuEkJEQ6MJ 7n+DoO13gb3Rx43qoQs3COm/EvbYI3lOIvn9Gb8OfSEifd+PUDy6i8kHe A==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="384830114" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="384830114" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2023 10:28:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="845084422" X-IronPort-AV: E=Sophos;i="6.03,219,1694761200"; d="scan'208";a="845084422" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 12 Oct 2023 10:28:48 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qqzUL-0003gv-35; Thu, 12 Oct 2023 17:28:45 +0000 Date: Fri, 13 Oct 2023 01:28:35 +0800 From: kernel test robot To: Qais Yousef Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [qais-yousef:sched-setscheduler-hide 2/11] kernel/rcu/rcutorture.c:3174:9: error: call to undeclared function 'rcu_get_gp_kthreads_prio'; ISO C99 and later do not support implicit function declarations Message-ID: <202310130106.IaEpFCPA-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/qais-yousef/linux sched-setscheduler-hide head: 557fb1e21399de5f674beb93fa6793adce124cc2 commit: 029b407f286d7bc9a7ace79c65483efa8ead8671 [2/11] rcu: Use a new sched_set_rcu_fifo() to set gp kthread prio config: hexagon-randconfig-r025-20230826 (https://download.01.org/0day-ci/archive/20231013/202310130106.IaEpFCPA-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231013/202310130106.IaEpFCPA-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/202310130106.IaEpFCPA-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from kernel/rcu/rcutorture.c:24: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from kernel/rcu/rcutorture.c:24: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from kernel/rcu/rcutorture.c:24: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ kernel/rcu/rcutorture.c:412:16: warning: variable 'started' set but not used [-Wunused-but-set-variable] 412 | unsigned long started; | ^ kernel/rcu/rcutorture.c:413:16: warning: variable 'completed' set but not used [-Wunused-but-set-variable] 413 | unsigned long completed; | ^ kernel/rcu/rcutorture.c:416:21: warning: variable 'ts' set but not used [-Wunused-but-set-variable] 416 | unsigned long long ts; | ^ kernel/rcu/rcutorture.c:1967:21: warning: variable 'ts' set but not used [-Wunused-but-set-variable] 1967 | unsigned long long ts; | ^ >> kernel/rcu/rcutorture.c:3174:9: error: call to undeclared function 'rcu_get_gp_kthreads_prio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3174 | prio = rcu_get_gp_kthreads_prio(); | ^ 10 warnings and 1 error generated. vim +/rcu_get_gp_kthreads_prio +3174 kernel/rcu/rcutorture.c fae4b54f28f034d kernel/rcutorture.c Paul E. McKenney 2012-02-20 3163 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3164) static bool rcu_torture_can_boost(void) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3165) { 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3166) static int boost_warn_once; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3167) int prio; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3168) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3169) if (!(test_boost == 1 && cur_ops->can_boost) && test_boost != 2) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3170) return false; ea6d962e80b6199 kernel/rcu/rcutorture.c Paul E. McKenney 2021-03-30 3171 if (!cur_ops->start_gp_poll || !cur_ops->poll_gp_state) 5e59fba573e64cf kernel/rcu/rcutorture.c Paul E. McKenney 2021-01-15 3172 return false; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3173) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 @3174) prio = rcu_get_gp_kthreads_prio(); 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3175) if (!prio) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3176) return false; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3177) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3178) if (prio < 2) { 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3179) if (boost_warn_once == 1) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3180) return false; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3181) bf5b64355a3ce41 kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3182) pr_alert("%s: WARN: RCU kthread priority too low to test boosting. Skipping RCU boost test. Try passing rcutree.kthread_prio > 1 on the kernel command line.\n", KBUILD_MODNAME); 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3183) boost_warn_once = 1; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3184) return false; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3185) } 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3186) 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3187) return true; 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3188) } 4babd855fd6137f kernel/rcu/rcutorture.c Joel Fernandes (Google 2018-06-19 3189) :::::: The code at line 3174 was first introduced by commit :::::: 4babd855fd6137f9792117eb73b096c221a49d3c rcutorture: Add support to detect if boost kthread prio is too low :::::: TO: Joel Fernandes (Google) :::::: CC: Paul E. McKenney -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki