lkml.org 
[lkml]   [2022]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched/rt: Support multi-criterion fitness search for
Hi Qais,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tip/sched/core]
[also build test WARNING on v5.18-rc6 next-20220513]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url: https://github.com/intel-lab-lkp/linux/commits/Qais-Yousef/sched-rt-Support-multi-criterion-fitness-search-for/20220515-075732
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 734387ec2f9d77b00276042b1fa7c95f48ee879d
config: hexagon-buildonly-randconfig-r005-20220515 (https://download.01.org/0day-ci/archive/20220515/202205150940.Pgx1V75s-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 853fa8ee225edf2d0de94b0dcbd31bea916e825e)
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/intel-lab-lkp/linux/commit/0eee64011b1d43795b5c8d1aa62927ba3f07a225
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Qais-Yousef/sched-rt-Support-multi-criterion-fitness-search-for/20220515-075732
git checkout 0eee64011b1d43795b5c8d1aa62927ba3f07a225
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash kernel/

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 >>):

In file included from kernel/sched/build_policy.c:45:
kernel/sched/rt.c:259:6: warning: no previous prototype for function 'unregister_rt_sched_group' [-Wmissing-prototypes]
void unregister_rt_sched_group(struct task_group *tg) { }
^
kernel/sched/rt.c:259:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void unregister_rt_sched_group(struct task_group *tg) { }
^
static
kernel/sched/rt.c:261:6: warning: no previous prototype for function 'free_rt_sched_group' [-Wmissing-prototypes]
void free_rt_sched_group(struct task_group *tg) { }
^
kernel/sched/rt.c:261:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void free_rt_sched_group(struct task_group *tg) { }
^
static
kernel/sched/rt.c:263:5: warning: no previous prototype for function 'alloc_rt_sched_group' [-Wmissing-prototypes]
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
^
kernel/sched/rt.c:263:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int alloc_rt_sched_group(struct task_group *tg, struct task_group *parent)
^
static
>> kernel/sched/rt.c:2496:13: warning: no previous prototype for function 'init_sched_rt_fitness_mask' [-Wmissing-prototypes]
void __init init_sched_rt_fitness_mask(int cpu)
^
kernel/sched/rt.c:2496:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init init_sched_rt_fitness_mask(int cpu)
^
static
4 warnings generated.


vim +/init_sched_rt_fitness_mask +2496 kernel/sched/rt.c

2495
> 2496 void __init init_sched_rt_fitness_mask(int cpu)
2497 {
2498 cpumask_var_t *fitness_mask_array;
2499 unsigned int i;
2500
2501 if (!NUM_FITNESS_FN)
2502 return;
2503
2504 fitness_mask_array = kcalloc_node(NUM_FITNESS_FN, sizeof(cpumask_var_t),
2505 GFP_KERNEL, cpu_to_node(cpu));
2506
2507 per_cpu(local_cpu_fitness_mask, cpu) = fitness_mask_array;
2508
2509 for (i = 0; i < NUM_FITNESS_FN; i++) {
2510 zalloc_cpumask_var_node(&fitness_mask_array[i], GFP_KERNEL,
2511 cpu_to_node(cpu));
2512 }
2513 }
2514

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-05-15 03:45    [W:0.128 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site