lkml.org 
[lkml]   [2017]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tip:sched/core 93/94] kernel/sched/fair.c:2658:9: warning: 'struct sched_domain' declared inside parameter list
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: 815abf5af45f04f759f12f3172afd15226fd7f71
commit: 3fed382b46baac83703130fe4cd3d9147f427fb9 [93/94] sched/numa: Implement NUMA node level wake_affine()
config: m68k-sun3_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 4.9.0
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3fed382b46baac83703130fe4cd3d9147f427fb9
# save the attached .config to linux build tree
make.cross ARCH=m68k

All warnings (new ones prefixed by >>):

>> kernel/sched/fair.c:2658:9: warning: 'struct sched_domain' declared inside parameter list
int prev_cpu, int sync)
^
>> kernel/sched/fair.c:2658:9: warning: its scope is only this definition or declaration, which is probably not what you want

vim +2658 kernel/sched/fair.c

2642 }
2643 #else
2644 static void task_tick_numa(struct rq *rq, struct task_struct *curr)
2645 {
2646 }
2647
2648 static inline void account_numa_enqueue(struct rq *rq, struct task_struct *p)
2649 {
2650 }
2651
2652 static inline void account_numa_dequeue(struct rq *rq, struct task_struct *p)
2653 {
2654 }
2655
2656 static inline bool numa_wake_affine(struct sched_domain *sd,
2657 struct task_struct *p, int this_cpu,
> 2658 int prev_cpu, int sync)
2659 {
2660 return true;
2661 }
2662 #endif /* CONFIG_NUMA_BALANCING */
2663
2664 static void
2665 account_entity_enqueue(struct cfs_rq *cfs_rq, struct sched_entity *se)
2666 {

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2017-06-24 13:18    [W:0.055 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site