[rcu:rcu/next 125/128] kernel/rcu/rcuscale.c:430:6: error: 'perf_type' undeclared; did you mean
by kernel test robot
Hi Paul,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next
head: 398b53b5b3751726c05f14a4331b0de258c0453a
commit: a20b5bd09813bc981ab0bb01cfd7672017f8d74e [125/128] rcuperf: Change rcuperf to rcuscale
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout a20b5bd09813bc981ab0bb01cfd7672017f8d74e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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/kernel.h:15,
from kernel/rcu/rcuscale.c:13:
kernel/rcu/rcuscale.c: In function 'rcu_scale_writer':
>> kernel/rcu/rcuscale.c:430:6: error: 'perf_type' undeclared (first use in this function); did you mean 'kernfs_type'?
430 | perf_type, PERF_FLAG, me, MIN_MEAS);
| ^~~~~~~~~
include/linux/printk.h:319:35: note: in definition of macro 'pr_alert'
319 | printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
kernel/rcu/rcuscale.c:430:6: note: each undeclared identifier is reported only once for each function it appears in
430 | perf_type, PERF_FLAG, me, MIN_MEAS);
| ^~~~~~~~~
include/linux/printk.h:319:35: note: in definition of macro 'pr_alert'
319 | printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
>> kernel/rcu/rcuscale.c:430:17: error: 'PERF_FLAG' undeclared (first use in this function)
430 | perf_type, PERF_FLAG, me, MIN_MEAS);
| ^~~~~~~~~
include/linux/printk.h:319:35: note: in definition of macro 'pr_alert'
319 | printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
>> kernel/rcu/rcuscale.c:431:27: error: 'n_rcu_perf_writer_finished' undeclared (first use in this function); did you mean 'n_rcu_scale_writer_finished'?
431 | if (atomic_inc_return(&n_rcu_perf_writer_finished) >=
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| n_rcu_scale_writer_finished
# https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/com...
git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
git fetch --no-tags rcu rcu/next
git checkout a20b5bd09813bc981ab0bb01cfd7672017f8d74e
vim +430 kernel/rcu/rcuscale.c
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 353
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 354 /*
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 355 * RCU scale writer kthread. Repeatedly does a grace period.
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 356 */
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 357 static int
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 358 rcu_scale_writer(void *arg)
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 359 {
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 360 int i = 0;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 361 int i_max;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 362 long me = (long)arg;
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 363 struct rcu_head *rhp = NULL;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 364 bool started = false, done = false, alldone = false;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 365 u64 t;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 366 u64 *wdp;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 367 u64 *wdpp = writer_durations[me];
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 368
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 369 VERBOSE_SCALEOUT_STRING("rcu_scale_writer task started");
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 370 WARN_ON(!wdpp);
6b558c4c7a4ba4 kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-12 371 set_cpus_allowed_ptr(current, cpumask_of(me % nr_cpu_ids));
b1433395c4cc07 kernel/rcu/rcuperf.c Peter Zijlstra 2020-04-21 372 sched_set_fifo_low(current);
df37e66bfdbb57 kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-30 373
df37e66bfdbb57 kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-30 374 if (holdoff)
df37e66bfdbb57 kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-30 375 schedule_timeout_uninterruptible(holdoff * HZ);
df37e66bfdbb57 kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-30 376
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 377) /*
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 378) * Wait until rcu_end_inkernel_boot() is called for normal GP tests
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 379) * so that RCU is not always expedited for normal GP tests.
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 380) * The system_state test is approximate, but works well in practice.
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 381) */
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 382) while (!gp_exp && system_state != SYSTEM_RUNNING)
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 383) schedule_timeout_uninterruptible(1);
77e9752ce69f36 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-07-04 384)
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 385 t = ktime_get_mono_fast_ns();
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 386 if (atomic_inc_return(&n_rcu_scale_writer_started) >= nrealwriters) {
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 387 t_rcu_scale_writer_started = t;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 388 if (gp_exp) {
e6e78b004fa7e0 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-08-30 389) b_rcu_gp_test_started =
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 390 cur_ops->exp_completed() / 2;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 391 } else {
e6e78b004fa7e0 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-08-30 392) b_rcu_gp_test_started = cur_ops->get_gp_seq();
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 393 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 394 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 395
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 396 do {
820687a7b98a50 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-25 397 if (writer_holdoff)
820687a7b98a50 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-25 398 udelay(writer_holdoff);
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 399 wdp = &wdpp[i];
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 400 *wdp = ktime_get_mono_fast_ns();
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 401 if (gp_async) {
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 402 retry:
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 403 if (!rhp)
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 404 rhp = kmalloc(sizeof(*rhp), GFP_KERNEL);
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 405 if (rhp && atomic_read(this_cpu_ptr(&n_async_inflight)) < gp_async_max) {
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 406 atomic_inc(this_cpu_ptr(&n_async_inflight));
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 407 cur_ops->async(rhp, rcu_scale_async_cb);
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 408 rhp = NULL;
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 409 } else if (!kthread_should_stop()) {
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 410 cur_ops->gp_barrier();
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 411 goto retry;
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 412 } else {
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 413 kfree(rhp); /* Because we are stopping. */
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 414 }
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 415 } else if (gp_exp) {
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 416 cur_ops->exp_sync();
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 417 } else {
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 418 cur_ops->sync();
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 419 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 420 t = ktime_get_mono_fast_ns();
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 421 *wdp = t - *wdp;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 422 i_max = i;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 423 if (!started &&
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 424 atomic_read(&n_rcu_scale_writer_started) >= nrealwriters)
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 425 started = true;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 426 if (!done && i >= MIN_MEAS) {
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 427 done = true;
b1433395c4cc07 kernel/rcu/rcuperf.c Peter Zijlstra 2020-04-21 428 sched_set_normal(current, 0);
a56fefa2605cf8 kernel/rcu/rcuperf.c SeongJae Park 2016-08-21 429 pr_alert("%s%s rcu_perf_writer %ld has %d measurements\n",
a56fefa2605cf8 kernel/rcu/rcuperf.c SeongJae Park 2016-08-21 @430 perf_type, PERF_FLAG, me, MIN_MEAS);
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 @431 if (atomic_inc_return(&n_rcu_perf_writer_finished) >=
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 432 nrealwriters) {
620316e52a9238 kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-30 433 schedule_timeout_interruptible(10);
ac2bb275e8e5ab kernel/rcu/rcuperf.c Paul E. McKenney 2016-01-29 434 rcu_ftrace_dump(DUMP_ALL);
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 435 SCALEOUT_STRING("Test complete");
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 436 t_rcu_scale_writer_finished = t;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 437 if (gp_exp) {
e6e78b004fa7e0 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-08-30 438) b_rcu_gp_test_finished =
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 439 cur_ops->exp_completed() / 2;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 440 } else {
e6e78b004fa7e0 kernel/rcu/rcuperf.c Joel Fernandes (Google 2019-08-30 441) b_rcu_gp_test_finished =
17ef2fe97c8c8e kernel/rcu/rcuperf.c Paul E. McKenney 2018-04-27 442 cur_ops->get_gp_seq();
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 443 }
e6fb1fc1085e5b kernel/rcu/rcuperf.c Artem Savkov 2016-02-07 444 if (shutdown) {
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 445 smp_mb(); /* Assign before wake. */
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 446 wake_up(&shutdown_wq);
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 447 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 448 }
e6fb1fc1085e5b kernel/rcu/rcuperf.c Artem Savkov 2016-02-07 449 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 450 if (done && !alldone &&
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 451 atomic_read(&n_rcu_scale_writer_finished) >= nrealwriters)
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 452 alldone = true;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 453 if (started && !alldone && i < MAX_MEAS - 1)
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 454 i++;
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 455 rcu_scale_wait_shutdown();
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 456 } while (!torture_must_stop());
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 457 if (gp_async) {
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 458 cur_ops->gp_barrier();
881ed593a323c8 kernel/rcu/rcuperf.c Paul E. McKenney 2017-04-17 459 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 460 writer_n_durations[me] = i_max;
a20b5bd09813bc kernel/rcu/rcuscale.c Paul E. McKenney 2020-08-11 461 torture_kthread_stopping("rcu_scale_writer");
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 462 return 0;
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 463 }
8704baab9bc848 kernel/rcu/rcuperf.c Paul E. McKenney 2015-12-31 464
:::::: The code at line 430 was first introduced by commit
:::::: a56fefa2605cf8e125ef09451487f30336128028 rcuperf: Consistently insert space between flag and message
:::::: TO: SeongJae Park <sj38.park(a)gmail.com>
:::::: CC: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 9 weeks ago
config: powerpc-randconfig-s032-20200818 (attached as .config)
compiler: powerpc-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.2-180-g49f7e13a-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# 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=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char *pixis @@ got void [noderef] __iomem * @@
arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: expected unsigned char *pixis
>> arch/powerpc/platforms/86xx/mpc8610_hpcd.c:295:23: sparse: got void [noderef] __iomem *
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
vim +295 arch/powerpc/platforms/86xx/mpc8610_hpcd.c
6f90a8bdd17e63f York Sun 2008-04-28 290
8c68e2f7885b22f Anton Vorontsov 2009-09-16 291 pixis_node = of_find_compatible_node(NULL, NULL, "fsl,fpga-pixis");
8c68e2f7885b22f Anton Vorontsov 2009-09-16 292 if (pixis_node) {
8c68e2f7885b22f Anton Vorontsov 2009-09-16 293 of_address_to_resource(pixis_node, 0, &r);
8c68e2f7885b22f Anton Vorontsov 2009-09-16 294 of_node_put(pixis_node);
6f90a8bdd17e63f York Sun 2008-04-28 @295 pixis = ioremap(r.start, 32);
6f90a8bdd17e63f York Sun 2008-04-28 296 if (!pixis) {
6f90a8bdd17e63f York Sun 2008-04-28 297 printk(KERN_ERR "Err: can't map FPGA cfg register!\n");
6f90a8bdd17e63f York Sun 2008-04-28 298 return;
6f90a8bdd17e63f York Sun 2008-04-28 299 }
6f90a8bdd17e63f York Sun 2008-04-28 300 pixis_bdcfg0 = pixis + 8;
6f90a8bdd17e63f York Sun 2008-04-28 301 pixis_arch = pixis + 1;
6f90a8bdd17e63f York Sun 2008-04-28 302 } else
6f90a8bdd17e63f York Sun 2008-04-28 303 printk(KERN_ERR "Err: "
6f90a8bdd17e63f York Sun 2008-04-28 304 "can't find device node 'fsl,fpga-pixis'\n");
0e65bfe34c10005 Xianghua Xiao 2007-10-03 305
0e65bfe34c10005 Xianghua Xiao 2007-10-03 306 printk("MPC86xx HPCD board from Freescale Semiconductor\n");
0e65bfe34c10005 Xianghua Xiao 2007-10-03 307 }
0e65bfe34c10005 Xianghua Xiao 2007-10-03 308
:::::: The code at line 295 was first introduced by commit
:::::: 6f90a8bdd17e63fb27b4f6d50e8a2919704ea254 powerpc: Add DIU platform code for MPC8610HPCD
:::::: TO: York Sun <yorksun(a)freescale.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[frank-w-bpi-r2-4.14:5.9-r64 11/14] drivers/net/dsa/mt7530.c:1976:1: warning: no previous prototype for 'mt7531_sgmii_link_up_force'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.9-r64
head: cd8fe04edbda6f089442fcbdedad421a55e44b21
commit: ce71ea546d2c5bcd9d79dc19dc5a94d5d55b55de [11/14] net: dsa: mt7530: Add the support of MT7531 switch
config: arc-randconfig-r002-20200818 (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 checkout ce71ea546d2c5bcd9d79dc19dc5a94d5d55b55de
# 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 warnings (new ones prefixed by >>):
>> drivers/net/dsa/mt7530.c:1976:1: warning: no previous prototype for 'mt7531_sgmii_link_up_force' [-Wmissing-prototypes]
1976 | mt7531_sgmii_link_up_force(struct dsa_switch *ds, int port,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/dsa/mt7530.c:2081:6: warning: no previous prototype for 'mt7531_sgmii_restart_an' [-Wmissing-prototypes]
2081 | void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
| ^~~~~~~~~~~~~~~~~~~~~~~
# https://github.com/frank-w/BPI-R2-4.14/commit/ce71ea546d2c5bcd9d79dc19dc5...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.9-r64
git checkout ce71ea546d2c5bcd9d79dc19dc5a94d5d55b55de
vim +/mt7531_sgmii_link_up_force +1976 drivers/net/dsa/mt7530.c
1974
1975 void
> 1976 mt7531_sgmii_link_up_force(struct dsa_switch *ds, int port,
1977 unsigned int mode, phy_interface_t interface,
1978 int speed, int duplex)
1979 {
1980 struct mt7530_priv *priv = ds->priv;
1981 unsigned int val;
1982
1983 /* For adjusting speed and duplex of SGMII force mode. */
1984 if (interface != PHY_INTERFACE_MODE_SGMII ||
1985 phylink_autoneg_inband(mode))
1986 return;
1987
1988 /* SGMII force mode setting */
1989 val = mt7530_read(priv, MT7531_SGMII_MODE(port));
1990 val &= ~MT7531_SGMII_IF_MODE_MASK;
1991
1992 switch (speed) {
1993 case SPEED_10:
1994 val |= MT7531_SGMII_FORCE_SPEED_10;
1995 break;
1996 case SPEED_100:
1997 val |= MT7531_SGMII_FORCE_SPEED_100;
1998 break;
1999 case SPEED_1000:
2000 val |= MT7531_SGMII_FORCE_SPEED_1000;
2001 break;
2002 }
2003
2004 /* MT7531 SGMII 1G force mode can only work in full duplex mode,
2005 * no matter MT7531_SGMII_FORCE_HALF_DUPLEX is set or not.
2006 */
2007 if ((speed == SPEED_10 || speed == SPEED_100) &&
2008 duplex != DUPLEX_FULL)
2009 val |= MT7531_SGMII_FORCE_HALF_DUPLEX;
2010
2011 mt7530_write(priv, MT7531_SGMII_MODE(port), val);
2012 }
2013
2014 static bool mt753x_is_mac_port(u32 port)
2015 {
2016 return (port == 5 || port == 6);
2017 }
2018
2019 static int mt7531_sgmii_setup_mode_force(struct mt7530_priv *priv, u32 port,
2020 phy_interface_t interface)
2021 {
2022 u32 val;
2023
2024 if (!mt753x_is_mac_port(port))
2025 return -EINVAL;
2026
2027 mt7530_set(priv, MT7531_QPHY_PWR_STATE_CTRL(port),
2028 MT7531_SGMII_PHYA_PWD);
2029
2030 val = mt7530_read(priv, MT7531_PHYA_CTRL_SIGNAL3(port));
2031 val &= ~MT7531_RG_TPHY_SPEED_MASK;
2032 /* Setup 2.5 times faster clock for 2.5Gbps data speeds with 10B/8B
2033 * encoding.
2034 */
2035 val |= (interface == PHY_INTERFACE_MODE_2500BASEX) ?
2036 MT7531_RG_TPHY_SPEED_3_125G : MT7531_RG_TPHY_SPEED_1_25G;
2037 mt7530_write(priv, MT7531_PHYA_CTRL_SIGNAL3(port), val);
2038
2039 mt7530_clear(priv, MT7531_PCS_CONTROL_1(port), MT7531_SGMII_AN_ENABLE);
2040
2041 /* MT7531 SGMII 1G and 2.5G force mode can only work in full duplex
2042 * mode, no matter MT7531_SGMII_FORCE_HALF_DUPLEX is set or not.
2043 */
2044 mt7530_rmw(priv, MT7531_SGMII_MODE(port),
2045 MT7531_SGMII_IF_MODE_MASK | MT7531_SGMII_REMOTE_FAULT_DIS,
2046 MT7531_SGMII_FORCE_SPEED_1000);
2047
2048 mt7530_write(priv, MT7531_QPHY_PWR_STATE_CTRL(port), 0);
2049
2050 return 0;
2051 }
2052
2053 static int mt7531_sgmii_setup_mode_an(struct mt7530_priv *priv, int port,
2054 phy_interface_t interface)
2055 {
2056 if (!mt753x_is_mac_port(port))
2057 return -EINVAL;
2058
2059 mt7530_set(priv, MT7531_QPHY_PWR_STATE_CTRL(port),
2060 MT7531_SGMII_PHYA_PWD);
2061
2062 mt7530_rmw(priv, MT7531_PHYA_CTRL_SIGNAL3(port),
2063 MT7531_RG_TPHY_SPEED_MASK, MT7531_RG_TPHY_SPEED_1_25G);
2064
2065 mt7530_set(priv, MT7531_SGMII_MODE(port),
2066 MT7531_SGMII_REMOTE_FAULT_DIS |
2067 MT7531_SGMII_SPEED_DUPLEX_AN);
2068
2069 mt7530_rmw(priv, MT7531_PCS_SPEED_ABILITY(port),
2070 MT7531_SGMII_TX_CONFIG_MASK, 1);
2071
2072 mt7530_set(priv, MT7531_PCS_CONTROL_1(port), MT7531_SGMII_AN_ENABLE);
2073
2074 mt7530_set(priv, MT7531_PCS_CONTROL_1(port), MT7531_SGMII_AN_RESTART);
2075
2076 mt7530_write(priv, MT7531_QPHY_PWR_STATE_CTRL(port), 0);
2077
2078 return 0;
2079 }
2080
> 2081 void mt7531_sgmii_restart_an(struct dsa_switch *ds, int port)
2082 {
2083 struct mt7530_priv *priv = ds->priv;
2084 u32 val;
2085
2086 /* Only restart AN when AN is enabled */
2087 val = mt7530_read(priv, MT7531_PCS_CONTROL_1(port));
2088 if (val & MT7531_SGMII_AN_ENABLE) {
2089 val |= MT7531_SGMII_AN_RESTART;
2090 mt7530_write(priv, MT7531_PCS_CONTROL_1(port), val);
2091 }
2092 }
2093
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
<command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 's64' {aka 'long long int'}
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 239a5791ffd5559f51815df442c4dbbe7fc21ade dynamic_debug: allow to work if debugfs is disabled
date: 6 months ago
config: ia64-randconfig-r005-20200818 (attached as .config)
compiler: ia64-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
git checkout 239a5791ffd5559f51815df442c4dbbe7fc21ade
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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/cpufreq/ia64-acpi-cpufreq.c: In function 'processor_set_pstate':
>> <command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 's64' {aka 'long long int'} [-Wformat=]
<command-line>: note: in definition of macro 'KBUILD_MODNAME'
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:335:2: note: in expansion of macro 'dynamic_pr_debug'
335 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/cpufreq/ia64-acpi-cpufreq.c:57:3: note: in expansion of macro 'pr_debug'
57 | pr_debug("Failed to set freq to 0x%x, with error 0x%lx\n",
| ^~~~~~~~
drivers/cpufreq/ia64-acpi-cpufreq.c: In function 'processor_get_pstate':
<command-line>: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 's64' {aka 'long long int'} [-Wformat=]
<command-line>: note: in definition of macro 'KBUILD_MODNAME'
include/linux/dynamic_debug.h:125:15: note: in expansion of macro 'pr_fmt'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
143 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
153 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:335:2: note: in expansion of macro 'dynamic_pr_debug'
335 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
drivers/cpufreq/ia64-acpi-cpufreq.c:79:3: note: in expansion of macro 'pr_debug'
79 | pr_debug("Failed to get current freq with "
| ^~~~~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH 11/17] bpf/task_iter: In task_file_seq_get_next use fnext_task
by kernel test robot
Hi "Eric,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf/master]
[also build test WARNING on linus/master v5.9-rc1 next-20200817]
[cannot apply to bpf-next/master linux/master]
[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/Eric-W-Biederman/exec-Move-unsha...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
config: i386-randconfig-m021-20200818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
kernel/bpf/task_iter.c:162 task_file_seq_get_next() warn: ignoring unreachable code.
# https://github.com/0day-ci/linux/commit/66f80aa453b17f8932b42e18265dba5fd...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Eric-W-Biederman/exec-Move-unshare_files-to-fix-posix-file-locking-during-exec/20200818-061552
git checkout 66f80aa453b17f8932b42e18265dba5fdb32490e
vim +162 kernel/bpf/task_iter.c
128
129 static struct file *
130 task_file_seq_get_next(struct bpf_iter_seq_task_file_info *info,
131 struct task_struct **task)
132 {
133 struct pid_namespace *ns = info->common.ns;
134 u32 curr_tid = info->tid;
135 struct task_struct *curr_task;
136 unsigned int curr_fd = info->fd;
137
138 /* If this function returns a non-NULL file object,
139 * it held a reference to the task/file.
140 * Otherwise, it does not hold any reference.
141 */
142 again:
143 if (*task) {
144 curr_task = *task;
145 curr_fd = info->fd;
146 } else {
147 curr_task = task_seq_get_next(ns, &curr_tid);
148 if (!curr_task)
149 return NULL;
150
151 /* set *task and info->tid */
152 *task = curr_task;
153 if (curr_tid == info->tid) {
154 curr_fd = info->fd;
155 } else {
156 info->tid = curr_tid;
157 curr_fd = 0;
158 }
159 }
160
161 rcu_read_lock();
> 162 for (;; curr_fd++) {
163 struct file *f;
164
165 f = fnext_task(curr_task, &curr_fd);
166 if (!f)
167 break;
168
169 /* set info->fd */
170 info->fd = curr_fd;
171 get_file(f);
172 rcu_read_unlock();
173 return f;
174 }
175
176 /* the current task is done, go to the next task */
177 rcu_read_unlock();
178 put_task_struct(curr_task);
179 *task = NULL;
180 info->fd = 0;
181 curr_tid = ++(info->tid);
182 goto again;
183 }
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
drivers/usb/isp1760/isp1760-udc.c:270:17: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 005b73d0dd83c9cb9420a196bea8070cde30ecac m68knommu: __force type casts for raw IO access
date: 3 weeks ago
config: m68k-randconfig-s031-20200818 (attached as .config)
compiler: m68k-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.2-180-g49f7e13a-dirty
git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
# 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=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/usb/isp1760/isp1760-udc.c:212:24: sparse: sparse: cast to restricted __le32
drivers/usb/isp1760/isp1760-udc.c:212:24: sparse: sparse: cast to restricted __le32
drivers/usb/isp1760/isp1760-udc.c:212:24: sparse: sparse: cast to restricted __le32
drivers/usb/isp1760/isp1760-udc.c:212:24: sparse: sparse: cast to restricted __le32
drivers/usb/isp1760/isp1760-udc.c:212:24: sparse: sparse: cast to restricted __le32
drivers/usb/isp1760/isp1760-udc.c:212:24: sparse: sparse: cast to restricted __le32
drivers/usb/isp1760/isp1760-udc.c:214:31: sparse: sparse: cast to restricted __le16
drivers/usb/isp1760/isp1760-udc.c:214:31: sparse: sparse: cast to restricted __le16
drivers/usb/isp1760/isp1760-udc.c:214:31: sparse: sparse: cast to restricted __le16
drivers/usb/isp1760/isp1760-udc.c:214:31: sparse: sparse: cast to restricted __le16
drivers/usb/isp1760/isp1760-udc.c:268:53: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __le32 [usertype] @@
drivers/usb/isp1760/isp1760-udc.c:268:53: sparse: expected unsigned int [usertype] val
drivers/usb/isp1760/isp1760-udc.c:268:53: sparse: got restricted __le32 [usertype]
>> drivers/usb/isp1760/isp1760-udc.c:270:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
>> drivers/usb/isp1760/isp1760-udc.c:270:17: sparse: expected unsigned short volatile [usertype]
drivers/usb/isp1760/isp1760-udc.c:270:17: sparse: got restricted __le16 [usertype]
drivers/usb/isp1760/isp1760-udc.c:485:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short volatile [usertype] @@ got restricted __le16 [usertype] @@
drivers/usb/isp1760/isp1760-udc.c:485:9: sparse: expected unsigned short volatile [usertype]
drivers/usb/isp1760/isp1760-udc.c:485:9: sparse: got restricted __le16 [usertype]
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
vim +270 drivers/usb/isp1760/isp1760-udc.c
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 241
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 242 static void isp1760_udc_transmit(struct isp1760_ep *ep,
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 243 struct isp1760_request *req)
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 244 {
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 245 struct isp1760_udc *udc = ep->udc;
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 246 u32 *buf = req->req.buf + req->req.actual;
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 247 int i;
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 248
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 249 req->packet_size = min(req->req.length - req->req.actual,
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 250 ep->maxpacket);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 251
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 252 dev_dbg(udc->isp->dev, "%s: transferring %u bytes (%u/%u done)\n",
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 253 __func__, req->packet_size, req->req.actual,
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 254 req->req.length);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 255
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 256 __isp1760_udc_select_ep(ep, USB_DIR_IN);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 257
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 258 if (req->packet_size)
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 259 isp1760_udc_write(udc, DC_BUFLEN, req->packet_size);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 260
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 261 /*
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 262 * Make sure not to write more than one extra byte, otherwise extra data
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 263 * will stay in the FIFO and will be transmitted during the next control
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 264 * request. The endpoint control CLBUF bit is supposed to allow flushing
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 265 * the FIFO for this kind of conditions, but doesn't seem to work.
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 266 */
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 267 for (i = req->packet_size; i > 2; i -= 4, ++buf)
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 268 isp1760_udc_write(udc, DC_DATAPORT, cpu_to_le32(*buf));
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 269 if (i > 0)
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 @270 writew(cpu_to_le16(*(u16 *)buf), udc->regs + DC_DATAPORT);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 271
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 272 if (ep->addr == 0)
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 273 isp1760_udc_write(udc, DC_CTRLFUNC, DC_DSEN);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 274 if (!req->packet_size)
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 275 isp1760_udc_write(udc, DC_CTRLFUNC, DC_VENDP);
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 276 }
0316ca6319b98e4 drivers/usb/host/isp1760-udc.c Laurent Pinchart 2015-01-21 277
:::::: The code at line 270 was first introduced by commit
:::::: 0316ca6319b98e485325be98a47d08fed07ead43 usb: isp1760: Add device controller support
:::::: TO: Laurent Pinchart <laurent.pinchart(a)ideasonboard.com>
:::::: CC: Felipe Balbi <balbi(a)ti.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
drivers/mtd/devices/pmc551.c:783:53: sparse: sparse: incorrect type in argument 2 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date: 9 weeks ago
config: arm-randconfig-s032-20200818 (attached as .config)
compiler: arm-linux-gnueabi-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.2-180-g49f7e13a-dirty
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
# 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=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/mtd/devices/pmc551.c:743:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected unsigned char [usertype] *start @@ got void [noderef] __iomem * @@
drivers/mtd/devices/pmc551.c:743:29: sparse: expected unsigned char [usertype] *start
drivers/mtd/devices/pmc551.c:743:29: sparse: got void [noderef] __iomem *
>> drivers/mtd/devices/pmc551.c:783:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned char [usertype] *start @@
>> drivers/mtd/devices/pmc551.c:783:53: sparse: expected void [noderef] __iomem *addr
drivers/mtd/devices/pmc551.c:783:53: sparse: got unsigned char [usertype] *start
drivers/mtd/devices/pmc551.c:833:52: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void [noderef] __iomem *addr @@ got unsigned char [usertype] *start @@
drivers/mtd/devices/pmc551.c:833:52: sparse: expected void [noderef] __iomem *addr
drivers/mtd/devices/pmc551.c:833:52: sparse: got unsigned char [usertype] *start
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
vim +783 drivers/mtd/devices/pmc551.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 767
^1da177e4c3f41 Linus Torvalds 2005-04-16 768 mtd->size = msize;
^1da177e4c3f41 Linus Torvalds 2005-04-16 769 mtd->flags = MTD_CAP_RAM;
3c3c10bba1e4cc Artem Bityutskiy 2012-01-30 770 mtd->_erase = pmc551_erase;
3c3c10bba1e4cc Artem Bityutskiy 2012-01-30 771 mtd->_read = pmc551_read;
3c3c10bba1e4cc Artem Bityutskiy 2012-01-30 772 mtd->_write = pmc551_write;
3c3c10bba1e4cc Artem Bityutskiy 2012-01-30 773 mtd->_point = pmc551_point;
3c3c10bba1e4cc Artem Bityutskiy 2012-01-30 774 mtd->_unpoint = pmc551_unpoint;
^1da177e4c3f41 Linus Torvalds 2005-04-16 775 mtd->type = MTD_RAM;
^1da177e4c3f41 Linus Torvalds 2005-04-16 776 mtd->name = "PMC551 RAM board";
^1da177e4c3f41 Linus Torvalds 2005-04-16 777 mtd->erasesize = 0x10000;
17ffc7ba6d7ea6 Artem B. Bityutskiy 2006-06-22 778 mtd->writesize = 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 779 mtd->owner = THIS_MODULE;
^1da177e4c3f41 Linus Torvalds 2005-04-16 780
ee0e87b174bb41 Jamie Iles 2011-05-23 781 if (mtd_device_register(mtd, NULL, 0)) {
8e0aedc5bcb9da David Woodhouse 2007-06-29 782 printk(KERN_NOTICE "pmc551: Failed to register new device\n");
98aacdfde05ccf Jiri Slaby 2006-09-19 @783 pci_iounmap(PCI_Device, priv->start);
^1da177e4c3f41 Linus Torvalds 2005-04-16 784 kfree(mtd->priv);
^1da177e4c3f41 Linus Torvalds 2005-04-16 785 kfree(mtd);
^1da177e4c3f41 Linus Torvalds 2005-04-16 786 break;
^1da177e4c3f41 Linus Torvalds 2005-04-16 787 }
dd8e9ed6ed544e Alan Cox 2006-09-22 788
ee0e87b174bb41 Jamie Iles 2011-05-23 789 /* Keep a reference as the mtd_device_register worked */
dd8e9ed6ed544e Alan Cox 2006-09-22 790 pci_dev_get(PCI_Device);
dd8e9ed6ed544e Alan Cox 2006-09-22 791
^1da177e4c3f41 Linus Torvalds 2005-04-16 792 printk(KERN_NOTICE "Registered pmc551 memory device.\n");
8e0aedc5bcb9da David Woodhouse 2007-06-29 793 printk(KERN_NOTICE "Mapped %dMiB of memory from 0x%p to 0x%p\n",
^1da177e4c3f41 Linus Torvalds 2005-04-16 794 priv->asize >> 20,
cdf0a7d1698085 Jiri Slaby 2006-09-19 795 priv->start, priv->start + priv->asize);
8e0aedc5bcb9da David Woodhouse 2007-06-29 796 printk(KERN_NOTICE "Total memory is %d%sB\n",
^1da177e4c3f41 Linus Torvalds 2005-04-16 797 (length < 1024) ? length :
^1da177e4c3f41 Linus Torvalds 2005-04-16 798 (length < 1048576) ? length >> 10 : length >> 20,
8e0aedc5bcb9da David Woodhouse 2007-06-29 799 (length < 1024) ? "" : (length < 1048576) ? "Ki" : "Mi");
^1da177e4c3f41 Linus Torvalds 2005-04-16 800 priv->nextpmc551 = pmc551list;
^1da177e4c3f41 Linus Torvalds 2005-04-16 801 pmc551list = mtd;
^1da177e4c3f41 Linus Torvalds 2005-04-16 802 found++;
^1da177e4c3f41 Linus Torvalds 2005-04-16 803 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 804
dd8e9ed6ed544e Alan Cox 2006-09-22 805 /* Exited early, reference left over */
dd8e9ed6ed544e Alan Cox 2006-09-22 806 pci_dev_put(PCI_Device);
dd8e9ed6ed544e Alan Cox 2006-09-22 807
^1da177e4c3f41 Linus Torvalds 2005-04-16 808 if (!pmc551list) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 809 printk(KERN_NOTICE "pmc551: not detected\n");
^1da177e4c3f41 Linus Torvalds 2005-04-16 810 return -ENODEV;
^1da177e4c3f41 Linus Torvalds 2005-04-16 811 } else {
^1da177e4c3f41 Linus Torvalds 2005-04-16 812 printk(KERN_NOTICE "pmc551: %d pmc551 devices loaded\n", found);
^1da177e4c3f41 Linus Torvalds 2005-04-16 813 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 814 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 815 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 816
:::::: The code at line 783 was first introduced by commit
:::::: 98aacdfde05ccf512d4395eed0d4894eea2d163c [MTD] pmc551 pci cleanup
:::::: TO: Jiri Slaby <jirislaby(a)gmail.com>
:::::: CC: David Woodhouse <dwmw2(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
drivers/media/cec/platform/tegra/tegra_cec.c:455:34: warning: unused variable 'tegra_cec_of_match'
by kernel test robot
Hi Mauro,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06a4ec1d9dc652e17ee3ac2ceb6c7cf6c2b75cdd
commit: df823a8208c434eee6e4e9aa016c956d0968e2e2 media: cec: rename CEC platform drivers config options
date: 4 months ago
config: x86_64-randconfig-r006-20200818 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 790878f291fa5dc58a1c560cb6cc76fd1bfd1c5a)
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
git checkout df823a8208c434eee6e4e9aa016c956d0968e2e2
# 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 warnings (new ones prefixed by >>):
>> drivers/media/cec/platform/tegra/tegra_cec.c:455:34: warning: unused variable 'tegra_cec_of_match' [-Wunused-const-variable]
static const struct of_device_id tegra_cec_of_match[] = {
^
1 warning generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout df823a8208c434eee6e4e9aa016c956d0968e2e2
vim +/tegra_cec_of_match +455 drivers/media/cec/platform/tegra/tegra_cec.c
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 454
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 @455 static const struct of_device_id tegra_cec_of_match[] = {
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 456 { .compatible = "nvidia,tegra114-cec", },
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 457 { .compatible = "nvidia,tegra124-cec", },
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 458 { .compatible = "nvidia,tegra210-cec", },
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 459 {},
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 460 };
9d2d60687c9a06 drivers/media/platform/tegra-cec/tegra_cec.c Hans Verkuil 2017-07-15 461
:::::: The code at line 455 was first introduced by commit
:::::: 9d2d60687c9a0621e0da40338be4cbd7e3783be2 media: tegra-cec: add Tegra HDMI CEC driver
:::::: TO: Hans Verkuil <hans.verkuil(a)cisco.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)osg.samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month