* [zen:5.14/prjc 197/226] kernel/sched/alt_core.c:7140:5: warning: no previous prototype for function 'sched_group_set_shares'
@ 2021-09-28 9:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-28 9:10 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 9842 bytes --]
tree: https://github.com/zen-kernel/zen-kernel 5.14/prjc
head: bd5633e4daf64e2d775c0ba61a7f68f1a794ce38
commit: e6c231bf5ab20ecfe4676a059a4c63e8f59b641d [197/226] sched/alt: [Sync] b03fbd4ff24c sched: Introduce task_is_running()
config: i386-randconfig-r031-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/zen-kernel/zen-kernel/commit/e6c231bf5ab20ecfe4676a059a4c63e8f59b641d
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 5.14/prjc
git checkout e6c231bf5ab20ecfe4676a059a4c63e8f59b641d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
kernel/sched/alt_core.c:2485:14: error: no member named 'state' in 'struct task_struct'
switch (p->state) {
~ ^
kernel/sched/alt_core.c:2561:5: error: no member named 'state' in 'struct task_struct'
p->state = TASK_NEW;
~ ^
kernel/sched/alt_core.c:2713:5: error: no member named 'state' in 'struct task_struct'
p->state = TASK_RUNNING;
~ ^
kernel/sched/alt_core.c:3066:21: error: no member named 'state' in 'struct task_struct'
prev_state = prev->state;
~~~~ ^
kernel/sched/alt_core.c:3844:24: error: no member named 'state' in 'struct task_struct'
if (!preempt && prev->state && prev->non_block_count) {
~~~~ ^
kernel/sched/alt_core.c:4111:21: error: no member named 'state' in 'struct task_struct'
prev_state = prev->state;
~~~~ ^
kernel/sched/alt_core.c:4112:52: error: no member named 'state' in 'struct task_struct'
if (!preempt && prev_state && prev_state == prev->state) {
~~~~ ^
kernel/sched/alt_core.c:4114:10: error: no member named 'state' in 'struct task_struct'
prev->state = TASK_RUNNING;
~~~~ ^
kernel/sched/alt_core.c:4292:24: error: no member named 'state' in 'struct task_struct'
WARN_ON_ONCE(current->state);
~~~~~~~ ^
include/asm-generic/bug.h:104:25: note: expanded from macro 'WARN_ON_ONCE'
int __ret_warn_on = !!(condition); \
^~~~~~~~~
kernel/sched/alt_core.c:6064:11: error: no member named 'state' in 'struct task_struct'
if (!(p->state & state_filter))
~ ^
kernel/sched/alt_core.c:6071:49: error: no member named 'state' in 'struct task_struct'
if (state_filter == TASK_UNINTERRUPTIBLE && p->state == TASK_IDLE)
~ ^
kernel/sched/alt_core.c:6078:6: error: conflicting types for 'show_state_filter'
void show_state_filter(unsigned long state_filter)
^
include/linux/sched/debug.h:17:13: note: previous declaration is here
extern void show_state_filter(unsigned int state_filter);
^
kernel/sched/alt_core.c:6145:8: error: no member named 'state' in 'struct task_struct'
idle->state = TASK_RUNNING;
~~~~ ^
kernel/sched/alt_core.c:6831:21: error: no member named 'state' in 'struct task_struct'
WARN_ONCE(current->state != TASK_RUNNING && current->task_state_change,
~~~~~~~ ^
include/asm-generic/bug.h:150:18: note: expanded from macro 'WARN_ONCE'
DO_ONCE_LITE_IF(condition, WARN, 1, format)
^~~~~~~~~
include/linux/once_lite.h:15:27: note: expanded from macro 'DO_ONCE_LITE_IF'
bool __ret_do_once = !!(condition); \
^~~~~~~~~
kernel/sched/alt_core.c:6834:13: error: no member named 'state' in 'struct task_struct'
current->state,
~~~~~~~ ^
include/asm-generic/bug.h:150:38: note: expanded from macro 'WARN_ONCE'
DO_ONCE_LITE_IF(condition, WARN, 1, format)
^~~~~~
include/linux/once_lite.h:19:9: note: expanded from macro 'DO_ONCE_LITE_IF'
func(__VA_ARGS__); \
^~~~~~~~~~~
include/asm-generic/bug.h:132:29: note: expanded from macro 'WARN'
__WARN_printf(TAINT_WARN, format); \
^~~~~~
include/asm-generic/bug.h:99:17: note: expanded from macro '__WARN_printf'
__warn_printk(arg); \
^~~
kernel/sched/alt_core.c:6847:16: warning: variable 'preempt_disable_ip' set but not used [-Wunused-but-set-variable]
unsigned long preempt_disable_ip;
^
kernel/sched/alt_core.c:7042:20: warning: no previous prototype for function 'sched_create_group' [-Wmissing-prototypes]
struct task_group *sched_create_group(struct task_group *parent)
^
kernel/sched/alt_core.c:7042:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct task_group *sched_create_group(struct task_group *parent)
^
static
kernel/sched/alt_core.c:7053:6: warning: no previous prototype for function 'sched_online_group' [-Wmissing-prototypes]
void sched_online_group(struct task_group *tg, struct task_group *parent)
^
kernel/sched/alt_core.c:7053:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_online_group(struct task_group *tg, struct task_group *parent)
^
static
kernel/sched/alt_core.c:7064:6: warning: no previous prototype for function 'sched_destroy_group' [-Wmissing-prototypes]
void sched_destroy_group(struct task_group *tg)
^
kernel/sched/alt_core.c:7064:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_destroy_group(struct task_group *tg)
^
static
kernel/sched/alt_core.c:7070:6: warning: no previous prototype for function 'sched_offline_group' [-Wmissing-prototypes]
void sched_offline_group(struct task_group *tg)
^
kernel/sched/alt_core.c:7070:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_offline_group(struct task_group *tg)
^
static
>> kernel/sched/alt_core.c:7140:5: warning: no previous prototype for function 'sched_group_set_shares' [-Wmissing-prototypes]
int sched_group_set_shares(struct task_group *tg, unsigned long shares)
^
kernel/sched/alt_core.c:7140:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_group_set_shares(struct task_group *tg, unsigned long shares)
^
static
kernel/sched/alt_core.c:7209:20: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.legacy_cftypes = cpu_legacy_files,
^~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:7208:20: note: previous initialization is here
.legacy_cftypes = cpu_files,
^~~~~~~~~
9 warnings and 19 errors generated.
vim +/sched_group_set_shares +7140 kernel/sched/alt_core.c
f39855f79e9734 Alfred Chen 2021-03-07 7139
f39855f79e9734 Alfred Chen 2021-03-07 @7140 int sched_group_set_shares(struct task_group *tg, unsigned long shares)
f39855f79e9734 Alfred Chen 2021-03-07 7141 {
f39855f79e9734 Alfred Chen 2021-03-07 7142 /*
f39855f79e9734 Alfred Chen 2021-03-07 7143 * We can't change the weight of the root cgroup.
f39855f79e9734 Alfred Chen 2021-03-07 7144 */
f39855f79e9734 Alfred Chen 2021-03-07 7145 if (&root_task_group == tg)
f39855f79e9734 Alfred Chen 2021-03-07 7146 return -EINVAL;
f39855f79e9734 Alfred Chen 2021-03-07 7147
f39855f79e9734 Alfred Chen 2021-03-07 7148 shares = clamp(shares, scale_load(MIN_SHARES), scale_load(MAX_SHARES));
f39855f79e9734 Alfred Chen 2021-03-07 7149
f39855f79e9734 Alfred Chen 2021-03-07 7150 mutex_lock(&shares_mutex);
f39855f79e9734 Alfred Chen 2021-03-07 7151 if (tg->shares == shares)
f39855f79e9734 Alfred Chen 2021-03-07 7152 goto done;
f39855f79e9734 Alfred Chen 2021-03-07 7153
f39855f79e9734 Alfred Chen 2021-03-07 7154 tg->shares = shares;
f39855f79e9734 Alfred Chen 2021-03-07 7155 done:
f39855f79e9734 Alfred Chen 2021-03-07 7156 mutex_unlock(&shares_mutex);
f39855f79e9734 Alfred Chen 2021-03-07 7157 return 0;
f39855f79e9734 Alfred Chen 2021-03-07 7158 }
f39855f79e9734 Alfred Chen 2021-03-07 7159
:::::: The code at line 7140 was first introduced by commit
:::::: f39855f79e9734c35dc7c4fac4c68ad7ab895ea3 sched/alt: Implement fake cpu.shares for CGROUP
:::::: TO: Alfred Chen <cchalpha@gmail.com>
:::::: CC: Alfred Chen <cchalpha@gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32576 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-28 9:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 9:10 [zen:5.14/prjc 197/226] kernel/sched/alt_core.c:7140:5: warning: no previous prototype for function 'sched_group_set_shares' kernel test robot
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.