[hwmon:hwmon-next 28/31] drivers/hwmon/npcm750-pwm-fan.c:494:51: error: use of undeclared identifier 'flags'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: de3a46504a58426f1c91117be601ae270180bc93
commit: 3ee265f75ce831f66bce6c7facdb0499264cc5bb [28/31] hwmon: (npcm750-pwm-fan) replace spin_lock_irqsave by spin_lock in hard IRQ
config: arm64-randconfig-r025-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/...
git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags hwmon hwmon-next
git checkout 3ee265f75ce831f66bce6c7facdb0499264cc5bb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/hwmon/npcm750-pwm-fan.c:494:51: error: use of undeclared identifier 'flags'; did you mean 'flag'?
spin_unlock_irqrestore(&data->fan_lock[module], flags);
^~~~~
flag
drivers/hwmon/npcm750-pwm-fan.c:485:5: note: 'flag' declared here
u8 flag;
^
1 error generated.
vim +494 drivers/hwmon/npcm750-pwm-fan.c
f1fd4a4db77703 Tomer Maimon 2018-07-04 480
f1fd4a4db77703 Tomer Maimon 2018-07-04 481 static irqreturn_t npcm7xx_fan_isr(int irq, void *dev_id)
f1fd4a4db77703 Tomer Maimon 2018-07-04 482 {
f1fd4a4db77703 Tomer Maimon 2018-07-04 483 struct npcm7xx_pwm_fan_data *data = dev_id;
f1fd4a4db77703 Tomer Maimon 2018-07-04 484 int module;
f1fd4a4db77703 Tomer Maimon 2018-07-04 485 u8 flag;
f1fd4a4db77703 Tomer Maimon 2018-07-04 486
f1fd4a4db77703 Tomer Maimon 2018-07-04 487 module = irq - data->fan_irq[0];
3ee265f75ce831 Tian Tao 2021-02-07 488 spin_lock(&data->fan_lock[module]);
f1fd4a4db77703 Tomer Maimon 2018-07-04 489
f1fd4a4db77703 Tomer Maimon 2018-07-04 490 flag = ioread8(NPCM7XX_FAN_REG_TICTRL(data->fan_base, module));
f1fd4a4db77703 Tomer Maimon 2018-07-04 491 if (flag > 0) {
f1fd4a4db77703 Tomer Maimon 2018-07-04 492 npcm7xx_check_cmp(data, module, NPCM7XX_FAN_CMPA, flag);
f1fd4a4db77703 Tomer Maimon 2018-07-04 493 npcm7xx_check_cmp(data, module, NPCM7XX_FAN_CMPB, flag);
f1fd4a4db77703 Tomer Maimon 2018-07-04 @494 spin_unlock_irqrestore(&data->fan_lock[module], flags);
f1fd4a4db77703 Tomer Maimon 2018-07-04 495 return IRQ_HANDLED;
f1fd4a4db77703 Tomer Maimon 2018-07-04 496 }
f1fd4a4db77703 Tomer Maimon 2018-07-04 497
3ee265f75ce831 Tian Tao 2021-02-07 498 spin_unlock(&data->fan_lock[module]);
f1fd4a4db77703 Tomer Maimon 2018-07-04 499
f1fd4a4db77703 Tomer Maimon 2018-07-04 500 return IRQ_NONE;
f1fd4a4db77703 Tomer Maimon 2018-07-04 501 }
f1fd4a4db77703 Tomer Maimon 2018-07-04 502
:::::: The code at line 494 was first introduced by commit
:::::: f1fd4a4db777030a2542701fb0d3a261d4472d6d hwmon: Add NPCM7xx PWM and Fan driver
:::::: TO: Tomer Maimon <tmaimon77(a)gmail.com>
:::::: CC: Guenter Roeck <linux(a)roeck-us.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-next:master 8486/10581] ld.lld: error: duplicate symbol: mlx5e_tc_tun_update_header_ipv6
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 671176b0016c80b3943cb5387312c886aba3308d
commit: c7b9038d8af68e351e09a8427fa0264be8dc811f [8486/10581] net/mlx5e: TC preparation refactoring for routing update event
config: x86_64-randconfig-a014-20210212 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout c7b9038d8af68e351e09a8427fa0264be8dc811f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:41:
In file included from drivers/net/ethernet/mellanox/mlx5/core/en_tc.h:40:
>> drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:78:5: warning: no previous prototype for function 'mlx5e_tc_tun_update_header_ipv6' [-Wmissing-prototypes]
int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,
^
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,
^
static
1 warning generated.
--
In file included from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:41:
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:34:1: warning: no previous prototype for function 'mlx5_esw_indir_table_init' [-Wmissing-prototypes]
mlx5_esw_indir_table_init(void)
^
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:33:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct mlx5_esw_indir_table *
^
static
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:40:1: warning: no previous prototype for function 'mlx5_esw_indir_table_destroy' [-Wmissing-prototypes]
mlx5_esw_indir_table_destroy(struct mlx5_esw_indir_table *indir)
^
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:39:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:61:1: warning: no previous prototype for function 'mlx5_esw_indir_table_needed' [-Wmissing-prototypes]
mlx5_esw_indir_table_needed(struct mlx5_eswitch *esw,
^
drivers/net/ethernet/mellanox/mlx5/core/esw/indir_table.h:60:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool
^
static
In file included from drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:50:
In file included from drivers/net/ethernet/mellanox/mlx5/core/en_tc.h:40:
>> drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:78:5: warning: no previous prototype for function 'mlx5e_tc_tun_update_header_ipv6' [-Wmissing-prototypes]
int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,
^
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:78:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int mlx5e_tc_tun_update_header_ipv6(struct mlx5e_priv *priv,
^
static
4 warnings generated.
--
>> ld.lld: error: duplicate symbol: mlx5e_tc_tun_update_header_ipv6
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/en_main.o:(mlx5e_tc_tun_update_header_ipv6)
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/en_rx.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: mlx5e_tc_tun_update_header_ipv6
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/en_main.o:(mlx5e_tc_tun_update_header_ipv6)
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/en_rep.o:(.text+0x0)
--
>> ld.lld: error: duplicate symbol: mlx5e_tc_tun_update_header_ipv6
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/en_main.o:(mlx5e_tc_tun_update_header_ipv6)
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.o:(.text+0x16)
--
>> ld.lld: error: duplicate symbol: mlx5e_tc_tun_update_header_ipv6
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/en_main.o:(mlx5e_tc_tun_update_header_ipv6)
>>> defined at tc_tun.h:81 (drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:81)
>>> drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.o:(.text+0x0)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-stable-rc:linux-4.4.y 7217/9999] arch/mips/kernel/smp.c:344:12: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.4.y
head: 95a3867e897abd7811196123f81a119a75aba863
commit: e3484129eb0f7c67c85868d1584f1e6335e86efa [7217/9999] MIPS: VDSO: Prevent use of smp_processor_id()
config: mips-malta_kvm_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.4.y
git checkout e3484129eb0f7c67c85868d1584f1e6335e86efa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
arch/mips/kernel/smp.c:156:17: error: no previous prototype for 'start_secondary' [-Werror=missing-prototypes]
156 | asmlinkage void start_secondary(void)
| ^~~~~~~~~~~~~~~
arch/mips/kernel/smp.c:278:5: error: no previous prototype for 'setup_profiling_timer' [-Werror=missing-prototypes]
278 | int setup_profiling_timer(unsigned int multiplier)
| ^~~~~~~~~~~~~~~~~~~~~
In file included from arch/mips/include/asm/processor.h:14,
from arch/mips/include/asm/thread_info.h:15,
from include/linux/thread_info.h:54,
from include/asm-generic/preempt.h:4,
from arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/interrupt.h:8,
from arch/mips/kernel/smp.c:24:
arch/mips/kernel/smp.c: In function 'flush_tlb_mm':
include/linux/cpumask.h:221:9: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
221 | (cpu) < nr_cpu_ids;)
| ^
include/linux/cpumask.h:725:36: note: in expansion of macro 'for_each_cpu'
725 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
| ^~~~~~~~~~~~
arch/mips/kernel/smp.c:343:3: note: in expansion of macro 'for_each_online_cpu'
343 | for_each_online_cpu(cpu) {
| ^~~~~~~~~~~~~~~~~~~
>> arch/mips/kernel/smp.c:344:12: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
344 | if (cpu != smp_processor_id() && cpu_context(cpu, mm))
| ^~
In file included from arch/mips/include/asm/processor.h:14,
from arch/mips/include/asm/thread_info.h:15,
from include/linux/thread_info.h:54,
from include/asm-generic/preempt.h:4,
from arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/interrupt.h:8,
from arch/mips/kernel/smp.c:24:
arch/mips/kernel/smp.c: In function 'flush_tlb_range':
include/linux/cpumask.h:221:9: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
221 | (cpu) < nr_cpu_ids;)
| ^
include/linux/cpumask.h:725:36: note: in expansion of macro 'for_each_cpu'
725 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
| ^~~~~~~~~~~~
arch/mips/kernel/smp.c:382:3: note: in expansion of macro 'for_each_online_cpu'
382 | for_each_online_cpu(cpu) {
| ^~~~~~~~~~~~~~~~~~~
arch/mips/kernel/smp.c:383:12: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
383 | if (cpu != smp_processor_id() && cpu_context(cpu, mm))
| ^~
In file included from arch/mips/include/asm/processor.h:14,
from arch/mips/include/asm/thread_info.h:15,
from include/linux/thread_info.h:54,
from include/asm-generic/preempt.h:4,
from arch/mips/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:59,
from include/linux/interrupt.h:8,
from arch/mips/kernel/smp.c:24:
arch/mips/kernel/smp.c: In function 'flush_tlb_page':
include/linux/cpumask.h:221:9: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
221 | (cpu) < nr_cpu_ids;)
| ^
include/linux/cpumask.h:725:36: note: in expansion of macro 'for_each_cpu'
725 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
| ^~~~~~~~~~~~
arch/mips/kernel/smp.c:428:3: note: in expansion of macro 'for_each_online_cpu'
428 | for_each_online_cpu(cpu) {
| ^~~~~~~~~~~~~~~~~~~
arch/mips/kernel/smp.c:429:12: error: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Werror=sign-compare]
429 | if (cpu != smp_processor_id() && cpu_context(cpu, vma->vm_mm))
| ^~
cc1: all warnings being treated as errors
vim +344 arch/mips/kernel/smp.c
25969354a385f3 Ralf Baechle 2006-06-22 320
^1da177e4c3f41 Linus Torvalds 2005-04-16 321 /*
^1da177e4c3f41 Linus Torvalds 2005-04-16 322 * The following tlb flush calls are invoked when old translations are
^1da177e4c3f41 Linus Torvalds 2005-04-16 323 * being torn down, or pte attributes are changing. For single threaded
^1da177e4c3f41 Linus Torvalds 2005-04-16 324 * address spaces, a new context is obtained on the current cpu, and tlb
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 * context on other cpus are invalidated to force a new context allocation
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 * at switch_mm time, should the mm ever be used on other cpus. For
^1da177e4c3f41 Linus Torvalds 2005-04-16 327 * multithreaded address spaces, intercpu interrupts have to be sent.
^1da177e4c3f41 Linus Torvalds 2005-04-16 328 * Another case where intercpu interrupts are required is when the target
^1da177e4c3f41 Linus Torvalds 2005-04-16 329 * mm might be active on another cpu (eg debuggers doing the flushes on
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 * behalf of debugees, kswapd stealing pages from another process etc).
^1da177e4c3f41 Linus Torvalds 2005-04-16 331 * Kanoj 07/00.
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 333
^1da177e4c3f41 Linus Torvalds 2005-04-16 334 void flush_tlb_mm(struct mm_struct *mm)
^1da177e4c3f41 Linus Torvalds 2005-04-16 335 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 336 preempt_disable();
^1da177e4c3f41 Linus Torvalds 2005-04-16 337
^1da177e4c3f41 Linus Torvalds 2005-04-16 338 if ((atomic_read(&mm->mm_users) != 1) || (current->mm != mm)) {
c50cade95b075e Ralf Baechle 2007-10-04 339 smp_on_other_tlbs(flush_tlb_mm_ipi, mm);
^1da177e4c3f41 Linus Torvalds 2005-04-16 340 } else {
b5eb5511453953 Ralf Baechle 2007-10-03 341 unsigned int cpu;
b5eb5511453953 Ralf Baechle 2007-10-03 342
0b5f9c005def15 Rusty Russell 2012-03-29 343 for_each_online_cpu(cpu) {
0b5f9c005def15 Rusty Russell 2012-03-29 @344 if (cpu != smp_processor_id() && cpu_context(cpu, mm))
b5eb5511453953 Ralf Baechle 2007-10-03 345 cpu_context(cpu, mm) = 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 346 }
0b5f9c005def15 Rusty Russell 2012-03-29 347 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 348 local_flush_tlb_mm(mm);
^1da177e4c3f41 Linus Torvalds 2005-04-16 349
^1da177e4c3f41 Linus Torvalds 2005-04-16 350 preempt_enable();
^1da177e4c3f41 Linus Torvalds 2005-04-16 351 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 352
:::::: The code at line 344 was first introduced by commit
:::::: 0b5f9c005def154f9c21f9be0223b65b50d54368 remove references to cpu_*_map in arch/
:::::: TO: Rusty Russell <rusty(a)rustcorp.com.au>
:::::: CC: Rusty Russell <rusty(a)rustcorp.com.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices
by kernel test robot
Hi Srinivasan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on wireless-drivers/master net-next/master net/master linus/master sparc-next/master v5.11-rc7 next-20210211]
[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/Srinivasan-Raju/wireless-Initial...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-ne... master
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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/5d8fb5ce1f136940c10fd16bc96856d2f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Srinivasan-Raju/wireless-Initial-driver-submission-for-pureLiFi-STA-devices/20210212-195451
git checkout 5d8fb5ce1f136940c10fd16bc96856d2f6ad2741
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 >>):
drivers/net/wireless/purelifi/plfxlc/mac.c: In function 'purelifi_mac_tx_status':
>> drivers/net/wireless/purelifi/plfxlc/mac.c:219:19: warning: variable 'retry' set but not used [-Wunused-but-set-variable]
219 | int success = 1, retry = 1;
| ^~~~~
vim +/retry +219 drivers/net/wireless/purelifi/plfxlc/mac.c
198
199 /**
200 * purelifi_mac_tx_status - reports tx status of a packet if required
201 * @hw - a &struct ieee80211_hw pointer
202 * @skb - a sk-buffer
203 * @flags: extra flags to set in the TX status info
204 * @ackssi: ACK signal strength
205 * @success - True for successful transmission of the frame
206 *
207 * This information calls ieee80211_tx_status_irqsafe() if required by the
208 * control information. It copies the control information into the status
209 * information.
210 *
211 * If no status information has been requested, the skb is freed.
212 */
213 static void purelifi_mac_tx_status(struct ieee80211_hw *hw,
214 struct sk_buff *skb,
215 int ackssi,
216 struct tx_status *tx_status)
217 {
218 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
> 219 int success = 1, retry = 1;
220
221 ieee80211_tx_info_clear_status(info);
222
223 if (tx_status) {
224 success = !tx_status->failure;
225 retry = tx_status->retry + success;
226 }
227
228 if (success)
229 info->flags |= IEEE80211_TX_STAT_ACK;
230 else
231 info->flags &= ~IEEE80211_TX_STAT_ACK;
232
233 info->status.ack_signal = 50;
234 ieee80211_tx_status_irqsafe(hw, skb);
235 }
236
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[hwmon:hwmon-next 28/31] drivers/hwmon/npcm750-pwm-fan.c:494:51: error: 'flags' undeclared; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: de3a46504a58426f1c91117be601ae270180bc93
commit: 3ee265f75ce831f66bce6c7facdb0499264cc5bb [28/31] hwmon: (npcm750-pwm-fan) replace spin_lock_irqsave by spin_lock in hard IRQ
config: nios2-randconfig-s031-20210209 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/...
git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags hwmon hwmon-next
git checkout 3ee265f75ce831f66bce6c7facdb0499264cc5bb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=nios2
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/hwmon/npcm750-pwm-fan.c: In function 'npcm7xx_fan_isr':
>> drivers/hwmon/npcm750-pwm-fan.c:494:51: error: 'flags' undeclared (first use in this function); did you mean 'flag'?
494 | spin_unlock_irqrestore(&data->fan_lock[module], flags);
| ^~~~~
| flag
drivers/hwmon/npcm750-pwm-fan.c:494:51: note: each undeclared identifier is reported only once for each function it appears in
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SERIAL_CORE_CONSOLE
Depends on TTY && HAS_IOMEM
Selected by
- EARLY_PRINTK
vim +494 drivers/hwmon/npcm750-pwm-fan.c
f1fd4a4db77703 Tomer Maimon 2018-07-04 480
f1fd4a4db77703 Tomer Maimon 2018-07-04 481 static irqreturn_t npcm7xx_fan_isr(int irq, void *dev_id)
f1fd4a4db77703 Tomer Maimon 2018-07-04 482 {
f1fd4a4db77703 Tomer Maimon 2018-07-04 483 struct npcm7xx_pwm_fan_data *data = dev_id;
f1fd4a4db77703 Tomer Maimon 2018-07-04 484 int module;
f1fd4a4db77703 Tomer Maimon 2018-07-04 485 u8 flag;
f1fd4a4db77703 Tomer Maimon 2018-07-04 486
f1fd4a4db77703 Tomer Maimon 2018-07-04 487 module = irq - data->fan_irq[0];
3ee265f75ce831 Tian Tao 2021-02-07 488 spin_lock(&data->fan_lock[module]);
f1fd4a4db77703 Tomer Maimon 2018-07-04 489
f1fd4a4db77703 Tomer Maimon 2018-07-04 490 flag = ioread8(NPCM7XX_FAN_REG_TICTRL(data->fan_base, module));
f1fd4a4db77703 Tomer Maimon 2018-07-04 491 if (flag > 0) {
f1fd4a4db77703 Tomer Maimon 2018-07-04 492 npcm7xx_check_cmp(data, module, NPCM7XX_FAN_CMPA, flag);
f1fd4a4db77703 Tomer Maimon 2018-07-04 493 npcm7xx_check_cmp(data, module, NPCM7XX_FAN_CMPB, flag);
f1fd4a4db77703 Tomer Maimon 2018-07-04 @494 spin_unlock_irqrestore(&data->fan_lock[module], flags);
f1fd4a4db77703 Tomer Maimon 2018-07-04 495 return IRQ_HANDLED;
f1fd4a4db77703 Tomer Maimon 2018-07-04 496 }
f1fd4a4db77703 Tomer Maimon 2018-07-04 497
3ee265f75ce831 Tian Tao 2021-02-07 498 spin_unlock(&data->fan_lock[module]);
f1fd4a4db77703 Tomer Maimon 2018-07-04 499
f1fd4a4db77703 Tomer Maimon 2018-07-04 500 return IRQ_NONE;
f1fd4a4db77703 Tomer Maimon 2018-07-04 501 }
f1fd4a4db77703 Tomer Maimon 2018-07-04 502
:::::: The code at line 494 was first introduced by commit
:::::: f1fd4a4db777030a2542701fb0d3a261d4472d6d hwmon: Add NPCM7xx PWM and Fan driver
:::::: TO: Tomer Maimon <tmaimon77(a)gmail.com>
:::::: CC: Guenter Roeck <linux(a)roeck-us.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[vincent.guittot:test/scheduler 6/7] arc-elf-ld: idle.c:undefined reference to `nohz_run_idle_balance'
by kernel test robot
tree: https://git.linaro.org/people/vincent.guittot/kernel.git test/scheduler
head: 1e5360db16325edbc2b5afcd085644615a12b0a8
commit: 870213e345cbcfecdacc95c0d9e41fbd6e44070b [6/7] sched/fair: trigger the update of blocked load on newly idle cpu
config: arc-randconfig-c004-20210209 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.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 vincent.guittot https://git.linaro.org/people/vincent.guittot/kernel.git
git fetch --no-tags vincent.guittot test/scheduler
git checkout 870213e345cbcfecdacc95c0d9e41fbd6e44070b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
arc-elf-ld: kernel/sched/idle.o: in function `do_idle':
idle.c:(.text+0xf8): undefined reference to `nohz_run_idle_balance'
>> arc-elf-ld: idle.c:(.text+0xf8): undefined reference to `nohz_run_idle_balance'
arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks':
stackdepot.c:(.text+0x3de): undefined reference to `__irqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x3de): undefined reference to `__irqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x3fe): undefined reference to `__irqentry_text_end'
arc-elf-ld: stackdepot.c:(.text+0x3fe): undefined reference to `__irqentry_text_end'
arc-elf-ld: stackdepot.c:(.text+0x40c): undefined reference to `__softirqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x40c): undefined reference to `__softirqentry_text_start'
arc-elf-ld: stackdepot.c:(.text+0x414): undefined reference to `__softirqentry_text_end'
arc-elf-ld: stackdepot.c:(.text+0x414): undefined reference to `__softirqentry_text_end'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[linux-stable-rc:linux-4.9.y 9862/9999] arch/powerpc/platforms/cell/spufs/file.c:2132:6: error: variable 'wbox_stat' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: 5b75f3b7134077fa52eb3331e7d8b39ae6bcdf76
commit: 123a8d0b68ac0159e5ab4ecf61701bd9fb42c7f9 [9862/9999] powerpc/spufs: fix copy_to_user while atomic
config: powerpc-ps3_defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.9.y
git checkout 123a8d0b68ac0159e5ab4ecf61701bd9fb42c7f9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=powerpc
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 >>):
arch/powerpc/platforms/cell/spufs/file.c: In function '__spufs_wbox_info_read':
>> arch/powerpc/platforms/cell/spufs/file.c:2132:6: error: variable 'wbox_stat' set but not used [-Werror=unused-but-set-variable]
u32 wbox_stat;
^~~~~~~~~
cc1: all warnings being treated as errors
vim +/wbox_stat +2132 arch/powerpc/platforms/cell/spufs/file.c
123a8d0b68ac01 Jeremy Kerr 2020-05-05 2126
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2127 static ssize_t __spufs_wbox_info_read(struct spu_context *ctx,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2128 char __user *buf, size_t len, loff_t *pos)
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2129 {
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2130 int i, cnt;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2131 u32 data[4];
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 @2132 u32 wbox_stat;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2133
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2134 wbox_stat = ctx->csa.prob.mb_stat_R;
123a8d0b68ac01 Jeremy Kerr 2020-05-05 2135 cnt = spufs_wbox_info_cnt(ctx);
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2136 for (i = 0; i < cnt; i++) {
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2137 data[i] = ctx->csa.spu_mailbox_data[i];
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2138 }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2139
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2140 return simple_read_from_buffer(buf, len, pos, &data,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2141 cnt * sizeof(u32));
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2142 }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2143
:::::: The code at line 2132 was first introduced by commit
:::::: 69a2f00ce5d3a19a70b36f08eaf9049677277710 [POWERPC] spufs: Implement /mbox_info, /ibox_info, and /wbox_info.
:::::: TO: Dwayne Grant McConnell <decimal(a)us.ibm.com>
:::::: CC: Paul Mackerras <paulus(a)samba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months