[dhowells-fs:fscache-rewrite-indexing-3 62/63] htmldocs: include/linux/fscache-cache.h:206: warning: expecting prototype for fscache_cache_wait_for_objects(). Prototype was for fscache_wait_for_objects() instead
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing-3
head: f9289707cca3cc642b772306de42986a1130230f
commit: 8fd4aa1d863415a405ad2fae87681c6f2b614f80 [62/63] fscache: Rewrite documentation
reproduce: make htmldocs
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
include/linux/fscache-cache.h:206: warning: expecting prototype for fscache_cache_wait_for_objects(). Prototype was for fscache_wait_for_objects() instead
vim +206 include/linux/fscache-cache.h
2a91f72b42616f David Howells 2021-11-11 197
2a91f72b42616f David Howells 2021-11-11 198 /**
2a91f72b42616f David Howells 2021-11-11 199 * fscache_cache_wait_for_objects - Wait for all objects to be withdrawn
2a91f72b42616f David Howells 2021-11-11 200 * @cache: The cache to query
2a91f72b42616f David Howells 2021-11-11 201 *
2a91f72b42616f David Howells 2021-11-11 202 * Wait for all extant objects in a cache to finish being withdrawn
2a91f72b42616f David Howells 2021-11-11 203 * and go away.
2a91f72b42616f David Howells 2021-11-11 204 */
2a91f72b42616f David Howells 2021-11-11 205 static inline void fscache_wait_for_objects(struct fscache_cache *cache)
2a91f72b42616f David Howells 2021-11-11 @206 {
2a91f72b42616f David Howells 2021-11-11 207 wait_event(fscache_clearance_waiters,
2a91f72b42616f David Howells 2021-11-11 208 atomic_read(&cache->object_count) == 0);
2a91f72b42616f David Howells 2021-11-11 209 }
2a91f72b42616f David Howells 2021-11-11 210
:::::: The code at line 206 was first introduced by commit
:::::: 2a91f72b42616f244540eca07acd588559335dac fscache: Count data storage objects in a cache
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[zen:5.15/prjc 199/239] kernel/sched/alt_core.c:6229:6: warning: no previous prototype for function 'idle_task_exit'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.15/prjc
head: 88afbbeeefd1e9ceca6efea72562fca5fc546daf
commit: 5f4249233a80dbfc638ec1eaa9b68f1039399f66 [199/239] sched/alt: [Sync] 2f064a59a11f sched: Change task_struct::state
config: i386-randconfig-a002-20211118 (attached as .config)
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/5f4249233a80dbfc638ec1eaa...
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 5.15/prjc
git checkout 5f4249233a80dbfc638ec1eaa9b68f1039399f66
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
kernel/sched/alt_core.c:830:6: warning: no previous prototype for function 'resched_curr' [-Wmissing-prototypes]
void resched_curr(struct rq *rq)
^
kernel/sched/alt_core.c:830:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_curr(struct rq *rq)
^
static
kernel/sched/alt_core.c:853:6: warning: no previous prototype for function 'resched_cpu' [-Wmissing-prototypes]
void resched_cpu(int cpu)
^
kernel/sched/alt_core.c:853:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_cpu(int cpu)
^
static
kernel/sched/alt_core.c:1744:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/alt_core.c:1744:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
>> kernel/sched/alt_core.c:6229:6: warning: no previous prototype for function 'idle_task_exit' [-Wmissing-prototypes]
void idle_task_exit(void)
^
kernel/sched/alt_core.c:6229:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void idle_task_exit(void)
^
static
>> kernel/sched/alt_core.c:6439:5: warning: no previous prototype for function 'sched_cpu_activate' [-Wmissing-prototypes]
int sched_cpu_activate(unsigned int cpu)
^
kernel/sched/alt_core.c:6439:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_activate(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6478:5: warning: no previous prototype for function 'sched_cpu_deactivate' [-Wmissing-prototypes]
int sched_cpu_deactivate(unsigned int cpu)
^
kernel/sched/alt_core.c:6478:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_deactivate(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6542:5: warning: no previous prototype for function 'sched_cpu_starting' [-Wmissing-prototypes]
int sched_cpu_starting(unsigned int cpu)
^
kernel/sched/alt_core.c:6542:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_starting(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6562:5: warning: no previous prototype for function 'sched_cpu_wait_empty' [-Wmissing-prototypes]
int sched_cpu_wait_empty(unsigned int cpu)
^
kernel/sched/alt_core.c:6562:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_wait_empty(unsigned int cpu)
^
static
>> kernel/sched/alt_core.c:6604:5: warning: no previous prototype for function 'sched_cpu_dying' [-Wmissing-prototypes]
int sched_cpu_dying(unsigned int cpu)
^
kernel/sched/alt_core.c:6604:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_cpu_dying(unsigned int cpu)
^
static
kernel/sched/alt_core.c:6851:16: warning: variable 'preempt_disable_ip' set but not used [-Wunused-but-set-variable]
unsigned long preempt_disable_ip;
^
kernel/sched/alt_core.c:1100:19: warning: unused function 'hrtick_enabled' [-Wunused-function]
static inline int hrtick_enabled(struct rq *rq)
^
11 warnings generated.
vim +/idle_task_exit +6229 kernel/sched/alt_core.c
cb06db4ef97b1e Alfred Chen 2019-08-19 6223
cb06db4ef97b1e Alfred Chen 2019-08-19 6224 #ifdef CONFIG_HOTPLUG_CPU
cb06db4ef97b1e Alfred Chen 2019-08-19 6225 /*
cb06db4ef97b1e Alfred Chen 2019-08-19 6226 * Ensures that the idle task is using init_mm right before its CPU goes
cb06db4ef97b1e Alfred Chen 2019-08-19 6227 * offline.
cb06db4ef97b1e Alfred Chen 2019-08-19 6228 */
cb06db4ef97b1e Alfred Chen 2019-08-19 @6229 void idle_task_exit(void)
cb06db4ef97b1e Alfred Chen 2019-08-19 6230 {
cb06db4ef97b1e Alfred Chen 2019-08-19 6231 struct mm_struct *mm = current->active_mm;
cb06db4ef97b1e Alfred Chen 2019-08-19 6232
cb06db4ef97b1e Alfred Chen 2019-08-19 6233 BUG_ON(current != this_rq()->idle);
cb06db4ef97b1e Alfred Chen 2019-08-19 6234
cb06db4ef97b1e Alfred Chen 2019-08-19 6235 if (mm != &init_mm) {
cb06db4ef97b1e Alfred Chen 2019-08-19 6236 switch_mm(mm, &init_mm, current);
cb06db4ef97b1e Alfred Chen 2019-08-19 6237 finish_arch_post_lock_switch();
cb06db4ef97b1e Alfred Chen 2019-08-19 6238 }
cb06db4ef97b1e Alfred Chen 2019-08-19 6239
cb06db4ef97b1e Alfred Chen 2019-08-19 6240 /* finish_cpu(), as ran on the BP, will clean up the active_mm state */
cb06db4ef97b1e Alfred Chen 2019-08-19 6241 }
cb06db4ef97b1e Alfred Chen 2019-08-19 6242
:::::: The code at line 6229 was first introduced by commit
:::::: cb06db4ef97b1e99a0350d328e6044f374941410 Project C v5.7.5-r2
:::::: TO: Alfred Chen <cchalpha(a)gmail.com>
:::::: CC: Alfred Chen <cchalpha(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH v2 7/9] locking/rwlocks: introduce write_lock_nested
by kernel test robot
Hi Minchan,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/master]
[also build test ERROR on linux/master linus/master v5.16-rc1]
[cannot apply to hnaz-mm/master tip/locking/core next-20211118]
[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/0day-ci/linux/commits/Minchan-Kim/zsmalloc-remove-bit_...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 8ab774587903771821b59471cc723bba6d893942
config: nds32-randconfig-r003-20211115 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
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/0day-ci/linux/commit/c24db750268d85953fe12742e6e4a7b8b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Minchan-Kim/zsmalloc-remove-bit_spin_lock/20211116-030720
git checkout c24db750268d85953fe12742e6e4a7b8baf16623
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/locking/spinlock.c:68:17: warning: no previous prototype for '__raw_spin_lock' [-Wmissing-prototypes]
68 | void __lockfunc __raw_##op##_lock(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:126:1: note: in expansion of macro 'BUILD_LOCK_OPS'
126 | BUILD_LOCK_OPS(spin, raw_spinlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:80:26: warning: no previous prototype for '__raw_spin_lock_irqsave' [-Wmissing-prototypes]
80 | unsigned long __lockfunc __raw_##op##_lock_irqsave(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:126:1: note: in expansion of macro 'BUILD_LOCK_OPS'
126 | BUILD_LOCK_OPS(spin, raw_spinlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:98:17: warning: no previous prototype for '__raw_spin_lock_irq' [-Wmissing-prototypes]
98 | void __lockfunc __raw_##op##_lock_irq(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:126:1: note: in expansion of macro 'BUILD_LOCK_OPS'
126 | BUILD_LOCK_OPS(spin, raw_spinlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:103:17: warning: no previous prototype for '__raw_spin_lock_bh' [-Wmissing-prototypes]
103 | void __lockfunc __raw_##op##_lock_bh(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:126:1: note: in expansion of macro 'BUILD_LOCK_OPS'
126 | BUILD_LOCK_OPS(spin, raw_spinlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:68:17: warning: no previous prototype for '__raw_read_lock' [-Wmissing-prototypes]
68 | void __lockfunc __raw_##op##_lock(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:129:1: note: in expansion of macro 'BUILD_LOCK_OPS'
129 | BUILD_LOCK_OPS(read, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:80:26: warning: no previous prototype for '__raw_read_lock_irqsave' [-Wmissing-prototypes]
80 | unsigned long __lockfunc __raw_##op##_lock_irqsave(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:129:1: note: in expansion of macro 'BUILD_LOCK_OPS'
129 | BUILD_LOCK_OPS(read, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:98:17: warning: no previous prototype for '__raw_read_lock_irq' [-Wmissing-prototypes]
98 | void __lockfunc __raw_##op##_lock_irq(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:129:1: note: in expansion of macro 'BUILD_LOCK_OPS'
129 | BUILD_LOCK_OPS(read, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:103:17: warning: no previous prototype for '__raw_read_lock_bh' [-Wmissing-prototypes]
103 | void __lockfunc __raw_##op##_lock_bh(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:129:1: note: in expansion of macro 'BUILD_LOCK_OPS'
129 | BUILD_LOCK_OPS(read, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:68:17: warning: no previous prototype for '__raw_write_lock' [-Wmissing-prototypes]
68 | void __lockfunc __raw_##op##_lock(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:130:1: note: in expansion of macro 'BUILD_LOCK_OPS'
130 | BUILD_LOCK_OPS(write, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:80:26: warning: no previous prototype for '__raw_write_lock_irqsave' [-Wmissing-prototypes]
80 | unsigned long __lockfunc __raw_##op##_lock_irqsave(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:130:1: note: in expansion of macro 'BUILD_LOCK_OPS'
130 | BUILD_LOCK_OPS(write, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:98:17: warning: no previous prototype for '__raw_write_lock_irq' [-Wmissing-prototypes]
98 | void __lockfunc __raw_##op##_lock_irq(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:130:1: note: in expansion of macro 'BUILD_LOCK_OPS'
130 | BUILD_LOCK_OPS(write, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c:103:17: warning: no previous prototype for '__raw_write_lock_bh' [-Wmissing-prototypes]
103 | void __lockfunc __raw_##op##_lock_bh(locktype##_t *lock) \
| ^~~~~~
kernel/locking/spinlock.c:130:1: note: in expansion of macro 'BUILD_LOCK_OPS'
130 | BUILD_LOCK_OPS(write, rwlock);
| ^~~~~~~~~~~~~~
kernel/locking/spinlock.c: In function '_raw_write_lock_nested':
>> kernel/locking/spinlock.c:306:9: error: implicit declaration of function '__raw_write_lock_nested'; did you mean '_raw_write_lock_nested'? [-Werror=implicit-function-declaration]
306 | __raw_write_lock_nested(lock, subclass);
| ^~~~~~~~~~~~~~~~~~~~~~~
| _raw_write_lock_nested
cc1: some warnings being treated as errors
vim +306 kernel/locking/spinlock.c
303
304 void __lockfunc _raw_write_lock_nested(rwlock_t *lock, int subclass)
305 {
> 306 __raw_write_lock_nested(lock, subclass);
307 }
308 EXPORT_SYMBOL(_raw_write_lock_nested);
309 #endif
310
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[arm:zii 69/128] drivers/net/dsa/mt7530.c:2885:39: error: 'struct dsa_port' has no member named 'phylink_config'; did you mean 'pl_config'?
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: 9d04d7433d7a412ee8ad503394f9db78140caf89 [69/128] net: dsa: mt7530: switch to use phylink_get_linkmodes()
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
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
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 9d04d7433d7a412ee8ad503394f9db78140caf89
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/dsa/mt7530.c: In function 'mt7531_mac_port_get_caps':
drivers/net/dsa/mt7530.c:2420:42: error: 'priv' undeclared (first use in this function)
2420 | if (mt7531_is_rgmii_port(priv, port)) {
| ^~~~
drivers/net/dsa/mt7530.c:2420:42: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/dsa/mt7530.c: In function 'mt753x_phylink_validate':
>> drivers/net/dsa/mt7530.c:2885:39: error: 'struct dsa_port' has no member named 'phylink_config'; did you mean 'pl_config'?
2885 | caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
| ^~~~~~~~~~~~~~
| pl_config
drivers/net/dsa/mt7530.c:2882:29: warning: unused variable 'priv' [-Wunused-variable]
2882 | struct mt7530_priv *priv = ds->priv;
| ^~~~
vim +2885 drivers/net/dsa/mt7530.c
2875
2876 static void
2877 mt753x_phylink_validate(struct dsa_switch *ds, int port,
2878 unsigned long *supported,
2879 struct phylink_link_state *state)
2880 {
2881 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
2882 struct mt7530_priv *priv = ds->priv;
2883 u32 caps;
2884
> 2885 caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
2886
2887 phylink_set_port_modes(mask);
2888 phylink_get_linkmodes(mask, state->interface, caps);
2889
2890 if (state->interface != PHY_INTERFACE_MODE_TRGMII ||
2891 !phy_interface_mode_is_8023z(state->interface))
2892 phylink_set(mask, Autoneg);
2893
2894 linkmode_and(supported, supported, mask);
2895 linkmode_and(state->advertising, state->advertising, mask);
2896 }
2897
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH v1 net-next 5/6] net: mscc: ocelot: split register definitions to a separate file
by kernel test robot
Hi Colin,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Colin-Foster/prepare-ocelot-for-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 520fbdf7fb19b7744e370d36d9244a446299ceb7
config: i386-randconfig-a002-20211118 (attached as .config)
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/0day-ci/linux/commit/a5f13354942bd393fe1014a9c1b3d34dd...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Colin-Foster/prepare-ocelot-for-external-interface-control/20211120-064530
git checkout a5f13354942bd393fe1014a9c1b3d34dd8ec5f52
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/net/ethernet/mscc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:28:10: error: use of undeclared identifier 'vsc7514_ana_regmap'; did you mean 'ocelot_ana_regmap'?
[ANA] = vsc7514_ana_regmap,
^~~~~~~~~~~~~~~~~~
ocelot_ana_regmap
include/soc/mscc/vsc7514_regs.h:11:18: note: 'ocelot_ana_regmap' declared here
extern const u32 ocelot_ana_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:29:9: error: use of undeclared identifier 'vsc7514_qs_regmap'; did you mean 'ocelot_qs_regmap'?
[QS] = vsc7514_qs_regmap,
^~~~~~~~~~~~~~~~~
ocelot_qs_regmap
include/soc/mscc/vsc7514_regs.h:12:18: note: 'ocelot_qs_regmap' declared here
extern const u32 ocelot_qs_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:30:11: error: use of undeclared identifier 'vsc7514_qsys_regmap'; did you mean 'ocelot_qsys_regmap'?
[QSYS] = vsc7514_qsys_regmap,
^~~~~~~~~~~~~~~~~~~
ocelot_qsys_regmap
include/soc/mscc/vsc7514_regs.h:13:18: note: 'ocelot_qsys_regmap' declared here
extern const u32 ocelot_qsys_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:31:10: error: use of undeclared identifier 'vsc7514_rew_regmap'; did you mean 'ocelot_rew_regmap'?
[REW] = vsc7514_rew_regmap,
^~~~~~~~~~~~~~~~~~
ocelot_rew_regmap
include/soc/mscc/vsc7514_regs.h:14:18: note: 'ocelot_rew_regmap' declared here
extern const u32 ocelot_rew_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:32:10: error: use of undeclared identifier 'vsc7514_sys_regmap'; did you mean 'ocelot_sys_regmap'?
[SYS] = vsc7514_sys_regmap,
^~~~~~~~~~~~~~~~~~
ocelot_sys_regmap
include/soc/mscc/vsc7514_regs.h:15:18: note: 'ocelot_sys_regmap' declared here
extern const u32 ocelot_sys_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:33:9: error: use of undeclared identifier 'vsc7514_vcap_regmap'; did you mean 'ocelot_vcap_regmap'?
[S0] = vsc7514_vcap_regmap,
^~~~~~~~~~~~~~~~~~~
ocelot_vcap_regmap
include/soc/mscc/vsc7514_regs.h:16:18: note: 'ocelot_vcap_regmap' declared here
extern const u32 ocelot_vcap_regmap[];
^
drivers/net/ethernet/mscc/ocelot_vsc7514.c:34:9: error: use of undeclared identifier 'vsc7514_vcap_regmap'; did you mean 'ocelot_vcap_regmap'?
[S1] = vsc7514_vcap_regmap,
^~~~~~~~~~~~~~~~~~~
ocelot_vcap_regmap
include/soc/mscc/vsc7514_regs.h:16:18: note: 'ocelot_vcap_regmap' declared here
extern const u32 ocelot_vcap_regmap[];
^
drivers/net/ethernet/mscc/ocelot_vsc7514.c:35:9: error: use of undeclared identifier 'vsc7514_vcap_regmap'; did you mean 'ocelot_vcap_regmap'?
[S2] = vsc7514_vcap_regmap,
^~~~~~~~~~~~~~~~~~~
ocelot_vcap_regmap
include/soc/mscc/vsc7514_regs.h:16:18: note: 'ocelot_vcap_regmap' declared here
extern const u32 ocelot_vcap_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:36:10: error: use of undeclared identifier 'vsc7514_ptp_regmap'; did you mean 'ocelot_ptp_regmap'?
[PTP] = vsc7514_ptp_regmap,
^~~~~~~~~~~~~~~~~~
ocelot_ptp_regmap
include/soc/mscc/vsc7514_regs.h:17:18: note: 'ocelot_ptp_regmap' declared here
extern const u32 ocelot_ptp_regmap[];
^
>> drivers/net/ethernet/mscc/ocelot_vsc7514.c:37:15: error: use of undeclared identifier 'vsc7514_dev_gmii_regmap'; did you mean 'ocelot_dev_gmii_regmap'?
[DEV_GMII] = vsc7514_dev_gmii_regmap,
^~~~~~~~~~~~~~~~~~~~~~~
ocelot_dev_gmii_regmap
include/soc/mscc/vsc7514_regs.h:18:18: note: 'ocelot_dev_gmii_regmap' declared here
extern const u32 ocelot_dev_gmii_regmap[];
^
10 errors generated.
vim +28 drivers/net/ethernet/mscc/ocelot_vsc7514.c
26
27 static const u32 *ocelot_regmap[TARGET_MAX] = {
> 28 [ANA] = vsc7514_ana_regmap,
> 29 [QS] = vsc7514_qs_regmap,
> 30 [QSYS] = vsc7514_qsys_regmap,
> 31 [REW] = vsc7514_rew_regmap,
> 32 [SYS] = vsc7514_sys_regmap,
> 33 [S0] = vsc7514_vcap_regmap,
34 [S1] = vsc7514_vcap_regmap,
35 [S2] = vsc7514_vcap_regmap,
> 36 [PTP] = vsc7514_ptp_regmap,
> 37 [DEV_GMII] = vsc7514_dev_gmii_regmap,
38 };
39
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[zen:5.15/prjc 197/239] kernel/sched/alt_core.c:7042:20: warning: no previous prototype for function 'sched_create_group'
by kernel test robot
tree: https://github.com/zen-kernel/zen-kernel 5.15/prjc
head: 88afbbeeefd1e9ceca6efea72562fca5fc546daf
commit: d9b7f3286c71166d00ccfcb64f13c1147210e865 [197/239] sched/alt: [Sync] b03fbd4ff24c sched: Introduce task_is_running()
config: i386-randconfig-a003-20211118 (attached as .config)
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/d9b7f3286c71166d00ccfcb64...
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 5.15/prjc
git checkout d9b7f3286c71166d00ccfcb64f13c1147210e865
# 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(a)intel.com>
All warnings (new ones prefixed by >>):
kernel/sched/alt_core.c:830:6: warning: no previous prototype for function 'resched_curr' [-Wmissing-prototypes]
void resched_curr(struct rq *rq)
^
kernel/sched/alt_core.c:830:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_curr(struct rq *rq)
^
static
kernel/sched/alt_core.c:853:6: warning: no previous prototype for function 'resched_cpu' [-Wmissing-prototypes]
void resched_cpu(int cpu)
^
kernel/sched/alt_core.c:853:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void resched_cpu(int cpu)
^
static
kernel/sched/alt_core.c:1940:5: error: no member named 'state' in 'struct task_struct'
p->state = TASK_RUNNING;
~ ^
kernel/sched/alt_core.c:2305:12: error: no member named 'state' in 'struct task_struct'
if (!(p->state & state))
~ ^
kernel/sched/alt_core.c:2310:6: error: no member named 'state' in 'struct task_struct'
p->state = TASK_RUNNING;
~ ^
kernel/sched/alt_core.c:2323:11: error: no member named 'state' in 'struct task_struct'
if (!(p->state & state))
~ ^
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: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,
^~~~~~~~~
8 warnings and 19 errors generated.
vim +/sched_create_group +7042 kernel/sched/alt_core.c
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6841
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6842 void ___might_sleep(const char *file, int line, int preempt_offset)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6843 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6844 /* Ratelimiting timestamp: */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6845 static unsigned long prev_jiffy;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6846
cb06db4ef97b1e9 Alfred Chen 2019-08-19 @6847 unsigned long preempt_disable_ip;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6848
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6849 /* WARN_ON_ONCE() by default, no rate limit required: */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6850 rcu_sleep_check();
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6851
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6852 if ((preempt_count_equals(preempt_offset) && !irqs_disabled() &&
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6853 !is_idle_task(current) && !current->non_block_count) ||
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6854 system_state == SYSTEM_BOOTING || system_state > SYSTEM_RUNNING ||
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6855 oops_in_progress)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6856 return;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6857 if (time_before(jiffies, prev_jiffy + HZ) && prev_jiffy)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6858 return;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6859 prev_jiffy = jiffies;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6860
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6861 /* Save this before calling printk(), since that will clobber it: */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6862 preempt_disable_ip = get_preempt_disable_ip(current);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6863
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6864 printk(KERN_ERR
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6865 "BUG: sleeping function called from invalid context at %s:%d\n",
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6866 file, line);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6867 printk(KERN_ERR
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6868 "in_atomic(): %d, irqs_disabled(): %d, non_block: %d, pid: %d, name: %s\n",
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6869 in_atomic(), irqs_disabled(), current->non_block_count,
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6870 current->pid, current->comm);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6871
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6872 if (task_stack_end_corrupted(current))
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6873 printk(KERN_EMERG "Thread overran stack, or stack corrupted\n");
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6874
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6875 debug_show_held_locks(current);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6876 if (irqs_disabled())
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6877 print_irqtrace_events(current);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6878 #ifdef CONFIG_DEBUG_PREEMPT
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6879 if (!preempt_count_equals(preempt_offset)) {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6880 pr_err("Preemption disabled at:");
d57edc338350f5f Alfred Chen 2020-08-02 6881 print_ip_sym(KERN_ERR, preempt_disable_ip);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6882 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6883 #endif
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6884 dump_stack();
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6885 add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6886 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6887 EXPORT_SYMBOL(___might_sleep);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6888
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6889 void __cant_sleep(const char *file, int line, int preempt_offset)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6890 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6891 static unsigned long prev_jiffy;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6892
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6893 if (irqs_disabled())
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6894 return;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6895
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6896 if (!IS_ENABLED(CONFIG_PREEMPT_COUNT))
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6897 return;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6898
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6899 if (preempt_count() > preempt_offset)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6900 return;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6901
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6902 if (time_before(jiffies, prev_jiffy + HZ) && prev_jiffy)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6903 return;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6904 prev_jiffy = jiffies;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6905
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6906 printk(KERN_ERR "BUG: assuming atomic context at %s:%d\n", file, line);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6907 printk(KERN_ERR "in_atomic(): %d, irqs_disabled(): %d, pid: %d, name: %s\n",
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6908 in_atomic(), irqs_disabled(),
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6909 current->pid, current->comm);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6910
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6911 debug_show_held_locks(current);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6912 dump_stack();
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6913 add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6914 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6915 EXPORT_SYMBOL_GPL(__cant_sleep);
b0e39e1ae101c8d Alfred Chen 2021-02-03 6916
b0e39e1ae101c8d Alfred Chen 2021-02-03 6917 #ifdef CONFIG_SMP
b0e39e1ae101c8d Alfred Chen 2021-02-03 6918 void __cant_migrate(const char *file, int line)
b0e39e1ae101c8d Alfred Chen 2021-02-03 6919 {
613ad5e4353f72d Alfred Chen 2021-02-28 6920 static unsigned long prev_jiffy;
613ad5e4353f72d Alfred Chen 2021-02-28 6921
613ad5e4353f72d Alfred Chen 2021-02-28 6922 if (irqs_disabled())
613ad5e4353f72d Alfred Chen 2021-02-28 6923 return;
613ad5e4353f72d Alfred Chen 2021-02-28 6924
613ad5e4353f72d Alfred Chen 2021-02-28 6925 if (is_migration_disabled(current))
613ad5e4353f72d Alfred Chen 2021-02-28 6926 return;
613ad5e4353f72d Alfred Chen 2021-02-28 6927
613ad5e4353f72d Alfred Chen 2021-02-28 6928 if (!IS_ENABLED(CONFIG_PREEMPT_COUNT))
613ad5e4353f72d Alfred Chen 2021-02-28 6929 return;
613ad5e4353f72d Alfred Chen 2021-02-28 6930
613ad5e4353f72d Alfred Chen 2021-02-28 6931 if (preempt_count() > 0)
613ad5e4353f72d Alfred Chen 2021-02-28 6932 return;
613ad5e4353f72d Alfred Chen 2021-02-28 6933
613ad5e4353f72d Alfred Chen 2021-02-28 6934 if (current->migration_flags & MDF_FORCE_ENABLED)
613ad5e4353f72d Alfred Chen 2021-02-28 6935 return;
613ad5e4353f72d Alfred Chen 2021-02-28 6936
613ad5e4353f72d Alfred Chen 2021-02-28 6937 if (time_before(jiffies, prev_jiffy + HZ) && prev_jiffy)
613ad5e4353f72d Alfred Chen 2021-02-28 6938 return;
613ad5e4353f72d Alfred Chen 2021-02-28 6939 prev_jiffy = jiffies;
613ad5e4353f72d Alfred Chen 2021-02-28 6940
613ad5e4353f72d Alfred Chen 2021-02-28 6941 pr_err("BUG: assuming non migratable context at %s:%d\n", file, line);
613ad5e4353f72d Alfred Chen 2021-02-28 6942 pr_err("in_atomic(): %d, irqs_disabled(): %d, migration_disabled() %u pid: %d, name: %s\n",
613ad5e4353f72d Alfred Chen 2021-02-28 6943 in_atomic(), irqs_disabled(), is_migration_disabled(current),
613ad5e4353f72d Alfred Chen 2021-02-28 6944 current->pid, current->comm);
613ad5e4353f72d Alfred Chen 2021-02-28 6945
613ad5e4353f72d Alfred Chen 2021-02-28 6946 debug_show_held_locks(current);
613ad5e4353f72d Alfred Chen 2021-02-28 6947 dump_stack();
613ad5e4353f72d Alfred Chen 2021-02-28 6948 add_taint(TAINT_WARN, LOCKDEP_STILL_OK);
b0e39e1ae101c8d Alfred Chen 2021-02-03 6949 }
b0e39e1ae101c8d Alfred Chen 2021-02-03 6950 EXPORT_SYMBOL_GPL(__cant_migrate);
b0e39e1ae101c8d Alfred Chen 2021-02-03 6951 #endif
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6952 #endif
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6953
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6954 #ifdef CONFIG_MAGIC_SYSRQ
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6955 void normalize_rt_tasks(void)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6956 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6957 struct task_struct *g, *p;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6958 struct sched_attr attr = {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6959 .sched_policy = SCHED_NORMAL,
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6960 };
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6961
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6962 read_lock(&tasklist_lock);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6963 for_each_process_thread(g, p) {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6964 /*
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6965 * Only normalize user tasks:
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6966 */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6967 if (p->flags & PF_KTHREAD)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6968 continue;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6969
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6970 if (!rt_task(p)) {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6971 /*
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6972 * Renice negative nice level userspace
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6973 * tasks back to 0:
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6974 */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6975 if (task_nice(p) < 0)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6976 set_user_nice(p, 0);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6977 continue;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6978 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6979
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6980 __sched_setscheduler(p, &attr, false, false);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6981 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6982 read_unlock(&tasklist_lock);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6983 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6984 #endif /* CONFIG_MAGIC_SYSRQ */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6985
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6986 #if defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6987 /*
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6988 * These functions are only useful for the IA64 MCA handling, or kdb.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6989 *
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6990 * They can only be called when the whole system has been
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6991 * stopped - every CPU needs to be quiescent, and no scheduling
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6992 * activity can take place. Using them for anything else would
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6993 * be a serious bug, and as a result, they aren't even visible
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6994 * under any other configuration.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6995 */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6996
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6997 /**
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6998 * curr_task - return the current task for a given CPU.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 6999 * @cpu: the processor in question.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7000 *
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7001 * ONLY VALID WHEN THE WHOLE SYSTEM IS STOPPED!
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7002 *
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7003 * Return: The current task for @cpu.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7004 */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7005 struct task_struct *curr_task(int cpu)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7006 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7007 return cpu_curr(cpu);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7008 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7009
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7010 #endif /* defined(CONFIG_IA64) || defined(CONFIG_KGDB_KDB) */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7011
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7012 #ifdef CONFIG_IA64
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7013 /**
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7014 * ia64_set_curr_task - set the current task for a given CPU.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7015 * @cpu: the processor in question.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7016 * @p: the task pointer to set.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7017 *
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7018 * Description: This function must only be used when non-maskable interrupts
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7019 * are serviced on a separate stack. It allows the architecture to switch the
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7020 * notion of the current task on a CPU in a non-blocking manner. This function
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7021 * must be called with all CPU's synchronised, and interrupts disabled, the
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7022 * and caller must save the original value of the current task (see
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7023 * curr_task() above) and restore that value before reenabling interrupts and
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7024 * re-starting the system.
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7025 *
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7026 * ONLY VALID WHEN THE WHOLE SYSTEM IS STOPPED!
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7027 */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7028 void ia64_set_curr_task(int cpu, struct task_struct *p)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7029 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7030 cpu_curr(cpu) = p;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7031 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7032
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7033 #endif
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7034
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7035 #ifdef CONFIG_CGROUP_SCHED
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7036 static void sched_free_group(struct task_group *tg)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7037 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7038 kmem_cache_free(task_group_cache, tg);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7039 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7040
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7041 /* allocate runqueue etc for a new task group */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 @7042 struct task_group *sched_create_group(struct task_group *parent)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7043 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7044 struct task_group *tg;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7045
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7046 tg = kmem_cache_alloc(task_group_cache, GFP_KERNEL | __GFP_ZERO);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7047 if (!tg)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7048 return ERR_PTR(-ENOMEM);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7049
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7050 return tg;
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7051 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7052
cb06db4ef97b1e9 Alfred Chen 2019-08-19 @7053 void sched_online_group(struct task_group *tg, struct task_group *parent)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7054 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7055 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7056
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7057 /* rcu callback to free various structures associated with a task group */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7058 static void sched_free_group_rcu(struct rcu_head *rhp)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7059 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7060 /* Now it should be safe to free those cfs_rqs */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7061 sched_free_group(container_of(rhp, struct task_group, rcu));
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7062 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7063
cb06db4ef97b1e9 Alfred Chen 2019-08-19 @7064 void sched_destroy_group(struct task_group *tg)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7065 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7066 /* Wait for possible concurrent references to cfs_rqs complete */
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7067 call_rcu(&tg->rcu, sched_free_group_rcu);
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7068 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7069
cb06db4ef97b1e9 Alfred Chen 2019-08-19 @7070 void sched_offline_group(struct task_group *tg)
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7071 {
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7072 }
cb06db4ef97b1e9 Alfred Chen 2019-08-19 7073
:::::: The code at line 7042 was first introduced by commit
:::::: cb06db4ef97b1e99a0350d328e6044f374941410 Project C v5.7.5-r2
:::::: TO: Alfred Chen <cchalpha(a)gmail.com>
:::::: CC: Alfred Chen <cchalpha(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH 20/23] cxl/port: Introduce a port driver
by kernel test robot
Hi Ben,
I love your patch! Yet something to improve:
[auto build test ERROR on 53989fad1286e652ea3655ae3367ba698da8d2ff]
url: https://github.com/0day-ci/linux/commits/Ben-Widawsky/Add-drivers-for-CXL...
base: 53989fad1286e652ea3655ae3367ba698da8d2ff
config: alpha-randconfig-r026-20211118 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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/0day-ci/linux/commit/8ff43502e84dd4fa1296a131cb0cc8214...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ben-Widawsky/Add-drivers-for-CXL-ports-and-mem-devices/20211120-080513
git checkout 8ff43502e84dd4fa1296a131cb0cc82146389db4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/cxl/port.c: In function 'get_decoder_size':
>> drivers/cxl/port.c:105:16: error: implicit declaration of function 'ioread64_hi_lo' [-Werror=implicit-function-declaration]
105 | return ioread64_hi_lo(hdm_decoder +
| ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/ioread64_hi_lo +105 drivers/cxl/port.c
97
98 static u64 get_decoder_size(void __iomem *hdm_decoder, int n)
99 {
100 u32 ctrl = readl(hdm_decoder + CXL_HDM_DECODER0_CTRL_OFFSET(n));
101
102 if (ctrl & CXL_HDM_DECODER0_CTRL_COMMITTED)
103 return 0;
104
> 105 return ioread64_hi_lo(hdm_decoder +
106 CXL_HDM_DECODER0_SIZE_LOW_OFFSET(n));
107 }
108
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[arm:cex7 129/129] drivers/bus/fsl-mc/fsl-mc-bus.c:169:44: error: no member named 'iommu_fwnode' in 'struct iommu_fwspec'
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git cex7
head: 5b621fb8dd018d138e1e33220b67fbded30d6e9b
commit: 5b621fb8dd018d138e1e33220b67fbded30d6e9b [129/129] bus: fsl-mc: add custom .dma_configure implementation
config: arm-randconfig-c002-20211119 (attached as .config)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm cex7
git checkout 5b621fb8dd018d138e1e33220b67fbded30d6e9b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/bus/fsl-mc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/bus/fsl-mc/fsl-mc-bus.c:169:44: error: no member named 'iommu_fwnode' in 'struct iommu_fwspec'
iommu_ops = iommu_ops_from_fwnode(fwspec->iommu_fwnode);
~~~~~~ ^
drivers/bus/fsl-mc/fsl-mc-bus.c:173:39: error: no member named 'iommu_fwnode' in 'struct iommu_fwspec'
ret = iommu_fwspec_init(dev, fwspec->iommu_fwnode, iommu_ops);
~~~~~~ ^
>> drivers/bus/fsl-mc/fsl-mc-bus.c:184:9: error: implicit declaration of function 'iommu_probe_device' [-Werror,-Wimplicit-function-declaration]
ret = iommu_probe_device(dev);
^
3 errors generated.
vim +169 drivers/bus/fsl-mc/fsl-mc-bus.c
139
140 static int fsl_mc_dma_configure(struct device *dev)
141 {
142 struct device *dma_dev = dev;
143 struct fsl_mc_device *mc_dev = to_fsl_mc_device(dev);
144 u32 input_id = mc_dev->icid;
145 struct iommu_fwspec *fwspec;
146 const struct iommu_ops *iommu_ops;
147 int ret;
148
149 /* Skip DMA setup for devices that are not DMA masters */
150 if (dev->type == &fsl_mc_bus_dpmcp_type ||
151 dev->type == &fsl_mc_bus_dpbp_type ||
152 dev->type == &fsl_mc_bus_dpcon_type ||
153 dev->type == &fsl_mc_bus_dpio_type)
154 return 0;
155
156 while (dev_is_fsl_mc(dma_dev))
157 dma_dev = dma_dev->parent;
158
159
160 #if 0
161 if (dev_of_node(dma_dev))
162 return of_dma_configure_id(dev, dma_dev->of_node, 0, &input_id);
163
164 return acpi_dma_configure_id(dev, DEV_DMA_COHERENT, &input_id);
165 #else
166 fwspec = dev_iommu_fwspec_get(dma_dev);
167 if (!fwspec)
168 return -ENODEV;
> 169 iommu_ops = iommu_ops_from_fwnode(fwspec->iommu_fwnode);
170 if (!iommu_ops)
171 return -ENODEV;
172
173 ret = iommu_fwspec_init(dev, fwspec->iommu_fwnode, iommu_ops);
174 if (ret)
175 return ret;
176
177 ret = iommu_fwspec_add_ids(dev, &input_id, 1);
178 if (ret) {
179 iommu_fwspec_free(dev);
180 return ret;
181 }
182
183 if (!device_iommu_mapped(dev)) {
> 184 ret = iommu_probe_device(dev);
185 if (ret) {
186 iommu_fwspec_free(dev);
187 return ret;
188 }
189 }
190
191 arch_setup_dma_ops(dev, 0, *dma_dev->dma_mask + 1, iommu_ops, true);
192
193 return 0;
194 #endif
195 }
196
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[ti:ti-rt-linux-5.10.y 7473/10206] include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared
by kernel test robot
Hi WingMan,
FYI, the error/warning still remains.
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: 0c67d996db8f3c9149598bc98657ae28fee22208
commit: e355bf097bb11257afeadf6665e51f224eeb93a7 [7473/10206] net: packet: Pass on redundant net info in packet_recvmsg
config: alpha-randconfig-r011-20211115 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout e355bf097bb11257afeadf6665e51f224eeb93a7
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/ipv6.h:12,
from include/linux/sunrpc/clnt.h:28,
from include/linux/nfs_fs.h:32,
from init/do_mounts.c:23:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2523 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from fs/io_uring.c:64:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2523 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
fs/io_uring.c: In function 'io_prep_async_work':
fs/io_uring.c:1431:29: warning: variable 'id' set but not used [-Wunused-but-set-variable]
1431 | struct io_identity *id;
| ^~
--
In file included from include/linux/tcp.h:19,
from include/linux/ipv6.h:87,
from include/net/addrconf.h:50,
from lib/vsprintf.c:40:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2523 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
lib/vsprintf.c: In function 'va_format':
lib/vsprintf.c:1663:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1663 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va);
| ^~~
--
In file included from include/linux/skmsg.h:12,
from kernel/bpf/btf.c:22:
include/net/sock.h: In function 'sock_recv_redundant_info':
>> include/net/sock.h:2523:43: error: 'SCM_REDUNDANT' undeclared (first use in this function)
2523 | put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
| ^~~~~~~~~~~~~
include/net/sock.h:2523:43: note: each undeclared identifier is reported only once for each function it appears in
kernel/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:5328:29: warning: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5328 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:5365:9: warning: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
5365 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
vim +/SCM_REDUNDANT +2523 include/net/sock.h
2514
2515 DECLARE_STATIC_KEY_FALSE(tcp_rx_skb_cache_key);
2516 static inline void sock_recv_redundant_info(struct msghdr *msg, struct sock *sk,
2517 struct sk_buff *skb)
2518 {
2519 struct skb_redundant_info *sred;
2520
2521 sred = skb_redinfo(skb);
2522 if (sred->lsdu_size)
> 2523 put_cmsg(msg, SOL_SOCKET, SCM_REDUNDANT, sizeof(*sred), sred);
2524 }
2525
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months