From: kernel test robot <lkp@intel.com>
To: Qais Yousef <qais.yousef@arm.com>
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
Date: Fri, 13 Oct 2023 01:28:35 +0800 [thread overview]
Message-ID: <202310130106.IaEpFCPA-lkp@intel.com> (raw)
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 <lkp@intel.com>
| 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) <joel@joelfernandes.org>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-10-12 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202310130106.IaEpFCPA-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=qais.yousef@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.