drivers/md/dm-log-writes.c:452:12: warning: stack frame size of 1184 bytes in function 'log_writes_kthread'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 194cf4825638256e9afe1d360831aa5379b3517a
commit: 309dca309fc39a9e3c31b916393b74bd174fd74e block: store a block_device pointer in struct bio
date: 3 months ago
config: powerpc64-randconfig-r032-20210418 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f549176ad976caa3e19edd036df9a7e12770af7c)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# 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 309dca309fc39a9e3c31b916393b74bd174fd74e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc64
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 >>):
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:116:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/md/dm-log-writes.c:7:
In file included from include/linux/device-mapper.h:11:
In file included from include/linux/bio.h:8:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:118:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/md/dm-log-writes.c:7:
In file included from include/linux/device-mapper.h:11:
In file included from include/linux/bio.h:8:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:120:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/md/dm-log-writes.c:7:
In file included from include/linux/device-mapper.h:11:
In file included from include/linux/bio.h:8:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:122:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from drivers/md/dm-log-writes.c:7:
In file included from include/linux/device-mapper.h:11:
In file included from include/linux/bio.h:8:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:124:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> drivers/md/dm-log-writes.c:452:12: warning: stack frame size of 1184 bytes in function 'log_writes_kthread' [-Wframe-larger-than=]
static int log_writes_kthread(void *arg)
^
7 warnings generated.
vim +/log_writes_kthread +452 drivers/md/dm-log-writes.c
0e9cebe724597a Josef Bacik 2015-03-20 451
0e9cebe724597a Josef Bacik 2015-03-20 @452 static int log_writes_kthread(void *arg)
0e9cebe724597a Josef Bacik 2015-03-20 453 {
0e9cebe724597a Josef Bacik 2015-03-20 454 struct log_writes_c *lc = (struct log_writes_c *)arg;
0e9cebe724597a Josef Bacik 2015-03-20 455 sector_t sector = 0;
0e9cebe724597a Josef Bacik 2015-03-20 456
0e9cebe724597a Josef Bacik 2015-03-20 457 while (!kthread_should_stop()) {
0e9cebe724597a Josef Bacik 2015-03-20 458 bool super = false;
0e9cebe724597a Josef Bacik 2015-03-20 459 bool logging_enabled;
0e9cebe724597a Josef Bacik 2015-03-20 460 struct pending_block *block = NULL;
0e9cebe724597a Josef Bacik 2015-03-20 461 int ret;
0e9cebe724597a Josef Bacik 2015-03-20 462
0e9cebe724597a Josef Bacik 2015-03-20 463 spin_lock_irq(&lc->blocks_lock);
0e9cebe724597a Josef Bacik 2015-03-20 464 if (!list_empty(&lc->logging_blocks)) {
0e9cebe724597a Josef Bacik 2015-03-20 465 block = list_first_entry(&lc->logging_blocks,
0e9cebe724597a Josef Bacik 2015-03-20 466 struct pending_block, list);
0e9cebe724597a Josef Bacik 2015-03-20 467 list_del_init(&block->list);
0e9cebe724597a Josef Bacik 2015-03-20 468 if (!lc->logging_enabled)
0e9cebe724597a Josef Bacik 2015-03-20 469 goto next;
0e9cebe724597a Josef Bacik 2015-03-20 470
0e9cebe724597a Josef Bacik 2015-03-20 471 sector = lc->next_sector;
228bb5b26038a7 Josef Bacik 2017-07-28 472 if (!(block->flags & LOG_DISCARD_FLAG))
228bb5b26038a7 Josef Bacik 2017-07-28 473 lc->next_sector += dev_to_bio_sectors(lc, block->nr_sectors);
228bb5b26038a7 Josef Bacik 2017-07-28 474 lc->next_sector += dev_to_bio_sectors(lc, 1);
0e9cebe724597a Josef Bacik 2015-03-20 475
0e9cebe724597a Josef Bacik 2015-03-20 476 /*
0e9cebe724597a Josef Bacik 2015-03-20 477 * Apparently the size of the device may not be known
0e9cebe724597a Josef Bacik 2015-03-20 478 * right away, so handle this properly.
0e9cebe724597a Josef Bacik 2015-03-20 479 */
0e9cebe724597a Josef Bacik 2015-03-20 480 if (!lc->end_sector)
0e9cebe724597a Josef Bacik 2015-03-20 481 lc->end_sector = logdev_last_sector(lc);
0e9cebe724597a Josef Bacik 2015-03-20 482 if (lc->end_sector &&
0e9cebe724597a Josef Bacik 2015-03-20 483 lc->next_sector >= lc->end_sector) {
0e9cebe724597a Josef Bacik 2015-03-20 484 DMERR("Ran out of space on the logdev");
0e9cebe724597a Josef Bacik 2015-03-20 485 lc->logging_enabled = false;
0e9cebe724597a Josef Bacik 2015-03-20 486 goto next;
0e9cebe724597a Josef Bacik 2015-03-20 487 }
0e9cebe724597a Josef Bacik 2015-03-20 488 lc->logged_entries++;
0e9cebe724597a Josef Bacik 2015-03-20 489 atomic_inc(&lc->io_blocks);
0e9cebe724597a Josef Bacik 2015-03-20 490
0e9cebe724597a Josef Bacik 2015-03-20 491 super = (block->flags & (LOG_FUA_FLAG | LOG_MARK_FLAG));
0e9cebe724597a Josef Bacik 2015-03-20 492 if (super)
0e9cebe724597a Josef Bacik 2015-03-20 493 atomic_inc(&lc->io_blocks);
0e9cebe724597a Josef Bacik 2015-03-20 494 }
0e9cebe724597a Josef Bacik 2015-03-20 495 next:
0e9cebe724597a Josef Bacik 2015-03-20 496 logging_enabled = lc->logging_enabled;
0e9cebe724597a Josef Bacik 2015-03-20 497 spin_unlock_irq(&lc->blocks_lock);
0e9cebe724597a Josef Bacik 2015-03-20 498 if (block) {
0e9cebe724597a Josef Bacik 2015-03-20 499 if (logging_enabled) {
0e9cebe724597a Josef Bacik 2015-03-20 500 ret = log_one_block(lc, block, sector);
0e9cebe724597a Josef Bacik 2015-03-20 501 if (!ret && super)
0e9cebe724597a Josef Bacik 2015-03-20 502 ret = log_super(lc);
0e9cebe724597a Josef Bacik 2015-03-20 503 if (ret) {
0e9cebe724597a Josef Bacik 2015-03-20 504 spin_lock_irq(&lc->blocks_lock);
0e9cebe724597a Josef Bacik 2015-03-20 505 lc->logging_enabled = false;
0e9cebe724597a Josef Bacik 2015-03-20 506 spin_unlock_irq(&lc->blocks_lock);
0e9cebe724597a Josef Bacik 2015-03-20 507 }
0e9cebe724597a Josef Bacik 2015-03-20 508 } else
0e9cebe724597a Josef Bacik 2015-03-20 509 free_pending_block(lc, block);
0e9cebe724597a Josef Bacik 2015-03-20 510 continue;
0e9cebe724597a Josef Bacik 2015-03-20 511 }
0e9cebe724597a Josef Bacik 2015-03-20 512
0e9cebe724597a Josef Bacik 2015-03-20 513 if (!try_to_freeze()) {
0e9cebe724597a Josef Bacik 2015-03-20 514 set_current_state(TASK_INTERRUPTIBLE);
0e9cebe724597a Josef Bacik 2015-03-20 515 if (!kthread_should_stop() &&
0c79c62021d23f Josef Bacik 2017-07-28 516 list_empty(&lc->logging_blocks))
0e9cebe724597a Josef Bacik 2015-03-20 517 schedule();
0e9cebe724597a Josef Bacik 2015-03-20 518 __set_current_state(TASK_RUNNING);
0e9cebe724597a Josef Bacik 2015-03-20 519 }
0e9cebe724597a Josef Bacik 2015-03-20 520 }
0e9cebe724597a Josef Bacik 2015-03-20 521 return 0;
0e9cebe724597a Josef Bacik 2015-03-20 522 }
0e9cebe724597a Josef Bacik 2015-03-20 523
:::::: The code at line 452 was first introduced by commit
:::::: 0e9cebe724597a76ab1b0ebc0a21e16f7db11b47 dm: add log writes target
:::::: TO: Josef Bacik <jbacik(a)fb.com>
:::::: CC: Mike Snitzer <snitzer(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[nomadik:ixp4 7/14] drivers/watchdog/ixp4xx_wdt.c:175:8: error: implicit declaration of function 'read_cpuid_id'
by kernel test robot
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ixp4
head: e0bf0c1bc94b9100d85ace594fd1f0fb0024dbf2
commit: f98dec27333d7a6d39cfafb90e3305b491bf7c4a [7/14] watchdog: ixp4xx: move mmio access to timer driver
config: mips-allyesconfig (attached as .config)
compiler: mips-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/linusw/linux-nomadik.git/...
git remote add nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags nomadik ixp4
git checkout f98dec27333d7a6d39cfafb90e3305b491bf7c4a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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 >>):
drivers/watchdog/ixp4xx_wdt.c: In function 'ixp4xx_wdt_init':
>> drivers/watchdog/ixp4xx_wdt.c:175:8: error: implicit declaration of function 'read_cpuid_id' [-Werror=implicit-function-declaration]
175 | if (!(read_cpuid_id() & 0xf) && !cpu_is_ixp46x()) {
| ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/read_cpuid_id +175 drivers/watchdog/ixp4xx_wdt.c
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 164
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 165 static int __init ixp4xx_wdt_init(void)
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 166 {
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 167 int ret;
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 168
f98dec27333d7a drivers/watchdog/ixp4xx_wdt.c Arnd Bergmann 2019-08-26 169 ret = ixp4xx_boot_status();
f98dec27333d7a drivers/watchdog/ixp4xx_wdt.c Arnd Bergmann 2019-08-26 170 if (ret < 0)
f98dec27333d7a drivers/watchdog/ixp4xx_wdt.c Arnd Bergmann 2019-08-26 171 return ret;
f98dec27333d7a drivers/watchdog/ixp4xx_wdt.c Arnd Bergmann 2019-08-26 172
f98dec27333d7a drivers/watchdog/ixp4xx_wdt.c Arnd Bergmann 2019-08-26 173 boot_status = ret ? WDIOF_CARDRESET : 0;
f98dec27333d7a drivers/watchdog/ixp4xx_wdt.c Arnd Bergmann 2019-08-26 174
0ba8b9b273c45d drivers/watchdog/ixp4xx_wdt.c Russell King 2008-08-10 @175 if (!(read_cpuid_id() & 0xf) && !cpu_is_ixp46x()) {
27c766aaacb265 drivers/watchdog/ixp4xx_wdt.c Joe Perches 2012-02-15 176 pr_err("Rev. A0 IXP42x CPU detected - watchdog disabled\n");
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 177
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 178 return -ENODEV;
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 179 }
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 180 ret = misc_register(&ixp4xx_wdt_miscdev);
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 181 if (ret == 0)
27c766aaacb265 drivers/watchdog/ixp4xx_wdt.c Joe Perches 2012-02-15 182 pr_info("timer heartbeat %d sec\n", heartbeat);
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 183 return ret;
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 184 }
^1da177e4c3f41 drivers/char/watchdog/ixp4xx_wdt.c Linus Torvalds 2005-04-16 185
:::::: The code at line 175 was first introduced by commit
:::::: 0ba8b9b273c45dd23f60ff700e265a0069b33758 [ARM] cputype: separate definitions, use them
:::::: TO: Russell King <rmk(a)dyn-67.arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel(a)arm.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:675:8: warning: ISO C90 forbids mixing declarations and code
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-dts-fixups
head: 3f62443c165ea1c988d9b0855292785a28906698
commit: 3f62443c165ea1c988d9b0855292785a28906698 [30/30] hacks
config: mips-randconfig-r024-20210418 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f549176ad976caa3e19edd036df9a7e12770af7c)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/...
git remote add nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags nomadik ux500-href-dts-fixups
git checkout 3f62443c165ea1c988d9b0855292785a28906698
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=mips
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 >>):
>> init/initramfs.c:675:8: warning: ISO C90 forbids mixing declarations and code [-Wdeclaration-after-statement]
char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
^
1 warning generated.
vim +675 init/initramfs.c
7c184ecd262fe6 Christoph Hellwig 2019-05-13 667
9a9e0d685553af Linus Torvalds 2008-03-15 668 static int __init populate_rootfs(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 669 {
3f62443c165ea1 Linus Walleij 2021-04-16 670 pr_info("%s enter __initramfs_start = %08x, __initramfs_size = %08x\n",
3f62443c165ea1 Linus Walleij 2021-04-16 671 __func__,
3f62443c165ea1 Linus Walleij 2021-04-16 672 (unsigned int)__initramfs_start,
3f62443c165ea1 Linus Walleij 2021-04-16 673 (unsigned int)__initramfs_size);
17a9be31747535 Stafford Horne 2017-05-04 674 /* Load the built in initramfs */
ffe8018c342489 Hendrik Brueckner 2010-09-17 @675 char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
:::::: The code at line 675 was first introduced by commit
:::::: ffe8018c3424892c9590048fc36caa6c3e0c8a76 initramfs: fix initramfs size calculation
:::::: TO: Hendrik Brueckner <brueckner(a)linux.vnet.ibm.com>
:::::: CC: Michal Marek <mmarek(a)suse.cz>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[nomadik:ux500-href-dts-fixups 30/30] init/initramfs.c:672:3: warning: cast from pointer to integer of different size
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-dts-fixups
head: 3f62443c165ea1c988d9b0855292785a28906698
commit: 3f62443c165ea1c988d9b0855292785a28906698 [30/30] hacks
config: mips-bigsur_defconfig (attached as .config)
compiler: mips64-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/linusw/linux-nomadik.git/...
git remote add nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags nomadik ux500-href-dts-fixups
git checkout 3f62443c165ea1c988d9b0855292785a28906698
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=mips
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 >>):
In file included from include/linux/kernel.h:16,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from init/initramfs.c:3:
init/initramfs.c: In function 'populate_rootfs':
>> init/initramfs.c:672:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
672 | (unsigned int)__initramfs_start,
| ^
include/linux/printk.h:373:34: note: in definition of macro 'pr_info'
373 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~
init/initramfs.c:675:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
675 | char *err = unpack_to_rootfs(__initramfs_start, __initramfs_size);
| ^~~~
vim +672 init/initramfs.c
667
668 static int __init populate_rootfs(void)
669 {
670 pr_info("%s enter __initramfs_start = %08x, __initramfs_size = %08x\n",
671 __func__,
> 672 (unsigned int)__initramfs_start,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[nomadik:ixp4 8/14] drivers/input/misc/ixp4xx-beeper.c:61:21: warning: cast from pointer to integer of different size
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ixp4
head: e0bf0c1bc94b9100d85ace594fd1f0fb0024dbf2
commit: b3e3d2dd8684e80e87ca90e847c413cb45058bb3 [8/14] Input: ixp4xx-beeper: pass resources as platform data
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://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/...
git remote add nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags nomadik ixp4
git checkout b3e3d2dd8684e80e87ca90e847c413cb45058bb3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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/input/misc/ixp4xx-beeper.c: In function 'ixp4xx_spkr_event':
>> drivers/input/misc/ixp4xx-beeper.c:61:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
61 | unsigned int pin = (unsigned int) input_get_drvdata(dev);
| ^
drivers/input/misc/ixp4xx-beeper.c: In function 'ixp4xx_spkr_interrupt':
drivers/input/misc/ixp4xx-beeper.c:87:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
87 | unsigned int pin = (unsigned int) dev_id;
| ^
drivers/input/misc/ixp4xx-beeper.c: In function 'ixp4xx_spkr_probe':
>> drivers/input/misc/ixp4xx-beeper.c:109:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
109 | input_set_drvdata(input_dev, (void *) dev->id);
| ^
drivers/input/misc/ixp4xx-beeper.c:149:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
149 | (void *) dev->id);
| ^
drivers/input/misc/ixp4xx-beeper.c:163:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
163 | free_irq(irq, (void *)dev->id);
| ^
drivers/input/misc/ixp4xx-beeper.c: In function 'ixp4xx_spkr_remove':
drivers/input/misc/ixp4xx-beeper.c:175:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
175 | unsigned int pin = (unsigned int) input_get_drvdata(input_dev);
| ^
drivers/input/misc/ixp4xx-beeper.c:183:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
183 | free_irq(ixp4xx_timer2_irq, (void *)dev->id);
| ^
drivers/input/misc/ixp4xx-beeper.c: In function 'ixp4xx_spkr_shutdown':
drivers/input/misc/ixp4xx-beeper.c:192:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
192 | unsigned int pin = (unsigned int) input_get_drvdata(input_dev);
| ^
vim +61 drivers/input/misc/ixp4xx-beeper.c
01387959022def Alessandro Zummo 2006-01-29 58
01387959022def Alessandro Zummo 2006-01-29 59 static int ixp4xx_spkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value)
01387959022def Alessandro Zummo 2006-01-29 60 {
643bd27298bdcc Frederik Deweerdt 2007-05-10 @61 unsigned int pin = (unsigned int) input_get_drvdata(dev);
01387959022def Alessandro Zummo 2006-01-29 62 unsigned int count = 0;
01387959022def Alessandro Zummo 2006-01-29 63
01387959022def Alessandro Zummo 2006-01-29 64 if (type != EV_SND)
01387959022def Alessandro Zummo 2006-01-29 65 return -1;
01387959022def Alessandro Zummo 2006-01-29 66
01387959022def Alessandro Zummo 2006-01-29 67 switch (code) {
01387959022def Alessandro Zummo 2006-01-29 68 case SND_BELL:
01387959022def Alessandro Zummo 2006-01-29 69 if (value)
01387959022def Alessandro Zummo 2006-01-29 70 value = 1000;
01387959022def Alessandro Zummo 2006-01-29 71 case SND_TONE:
01387959022def Alessandro Zummo 2006-01-29 72 break;
01387959022def Alessandro Zummo 2006-01-29 73 default:
01387959022def Alessandro Zummo 2006-01-29 74 return -1;
01387959022def Alessandro Zummo 2006-01-29 75 }
01387959022def Alessandro Zummo 2006-01-29 76
01387959022def Alessandro Zummo 2006-01-29 77 if (value > 20 && value < 32767)
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 78 count = (ixp4xx_spkr_timer_freq / (value * 4)) - 1;
01387959022def Alessandro Zummo 2006-01-29 79
01387959022def Alessandro Zummo 2006-01-29 80 ixp4xx_spkr_control(pin, count);
01387959022def Alessandro Zummo 2006-01-29 81
01387959022def Alessandro Zummo 2006-01-29 82 return 0;
01387959022def Alessandro Zummo 2006-01-29 83 }
01387959022def Alessandro Zummo 2006-01-29 84
7d12e780e003f9 David Howells 2006-10-05 85 static irqreturn_t ixp4xx_spkr_interrupt(int irq, void *dev_id)
01387959022def Alessandro Zummo 2006-01-29 86 {
b22973d0ecfcf4 Linus Walleij 2013-09-10 87 unsigned int pin = (unsigned int) dev_id;
b22973d0ecfcf4 Linus Walleij 2013-09-10 88
01387959022def Alessandro Zummo 2006-01-29 89 /* clear interrupt */
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 90 __raw_writel(IXP4XX_OSST_TIMER_2_PEND, ixp4xx_spkr_regs + IXP4XX_OSST_OFFSET);
01387959022def Alessandro Zummo 2006-01-29 91
01387959022def Alessandro Zummo 2006-01-29 92 /* flip the beeper output */
b22973d0ecfcf4 Linus Walleij 2013-09-10 93 gpio_set_value(pin, !gpio_get_value(pin));
01387959022def Alessandro Zummo 2006-01-29 94
01387959022def Alessandro Zummo 2006-01-29 95 return IRQ_HANDLED;
01387959022def Alessandro Zummo 2006-01-29 96 }
01387959022def Alessandro Zummo 2006-01-29 97
5298cc4cc753bb Bill Pemberton 2012-11-23 98 static int ixp4xx_spkr_probe(struct platform_device *dev)
01387959022def Alessandro Zummo 2006-01-29 99 {
01387959022def Alessandro Zummo 2006-01-29 100 struct input_dev *input_dev;
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 101 struct resource *res;
075df31aed44cd Linus Walleij 2018-12-29 102 int irq;
01387959022def Alessandro Zummo 2006-01-29 103 int err;
01387959022def Alessandro Zummo 2006-01-29 104
01387959022def Alessandro Zummo 2006-01-29 105 input_dev = input_allocate_device();
01387959022def Alessandro Zummo 2006-01-29 106 if (!input_dev)
01387959022def Alessandro Zummo 2006-01-29 107 return -ENOMEM;
01387959022def Alessandro Zummo 2006-01-29 108
373f9713dccc8f Dmitry Torokhov 2007-04-12 @109 input_set_drvdata(input_dev, (void *) dev->id);
373f9713dccc8f Dmitry Torokhov 2007-04-12 110
94ddf7a371ff5d Zheng Yongjun 2020-12-11 111 input_dev->name = "ixp4xx beeper";
01387959022def Alessandro Zummo 2006-01-29 112 input_dev->phys = "ixp4xx/gpio";
01387959022def Alessandro Zummo 2006-01-29 113 input_dev->id.bustype = BUS_HOST;
01387959022def Alessandro Zummo 2006-01-29 114 input_dev->id.vendor = 0x001f;
01387959022def Alessandro Zummo 2006-01-29 115 input_dev->id.product = 0x0001;
01387959022def Alessandro Zummo 2006-01-29 116 input_dev->id.version = 0x0100;
293e6392d72dfa Dmitry Torokhov 2007-04-12 117 input_dev->dev.parent = &dev->dev;
01387959022def Alessandro Zummo 2006-01-29 118
7b19ada2ed3c1e Jiri Slaby 2007-10-18 119 input_dev->evbit[0] = BIT_MASK(EV_SND);
7b19ada2ed3c1e Jiri Slaby 2007-10-18 120 input_dev->sndbit[0] = BIT_MASK(SND_BELL) | BIT_MASK(SND_TONE);
01387959022def Alessandro Zummo 2006-01-29 121 input_dev->event = ixp4xx_spkr_event;
01387959022def Alessandro Zummo 2006-01-29 122
075df31aed44cd Linus Walleij 2018-12-29 123 irq = platform_get_irq(dev, 0);
075df31aed44cd Linus Walleij 2018-12-29 124 if (irq < 0) {
075df31aed44cd Linus Walleij 2018-12-29 125 err = irq;
075df31aed44cd Linus Walleij 2018-12-29 126 goto err_free_device;
075df31aed44cd Linus Walleij 2018-12-29 127 }
075df31aed44cd Linus Walleij 2018-12-29 128
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 129 res = platform_get_resource(dev, IORESOURCE_MEM, 0);
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 130 if (!res) {
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 131 err = -ENXIO;
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 132 goto err_free_device;
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 133 }
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 134 /* note: don't call request_mem_region because of conflict */
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 135 ixp4xx_spkr_regs = devm_ioremap(&dev->dev, res->start, resource_size(res));
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 136 if (!ixp4xx_spkr_regs) {
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 137 err = -ENXIO;
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 138 goto err_free_device;
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 139 }
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 140
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 141 ixp4xx_spkr_timer_freq = (uintptr_t)dev_get_platdata(&dev->dev);
b3e3d2dd8684e8 Arnd Bergmann 2019-08-26 142
b22973d0ecfcf4 Linus Walleij 2013-09-10 143 err = gpio_request(dev->id, "ixp4-beeper");
b22973d0ecfcf4 Linus Walleij 2013-09-10 144 if (err)
b22973d0ecfcf4 Linus Walleij 2013-09-10 145 goto err_free_device;
b22973d0ecfcf4 Linus Walleij 2013-09-10 146
075df31aed44cd Linus Walleij 2018-12-29 147 err = request_irq(irq, &ixp4xx_spkr_interrupt,
ec4665c46b11f6 Yong Zhang 2011-09-07 148 IRQF_NO_SUSPEND, "ixp4xx-beeper",
2dd9320305416c Ian Campbell 2010-07-29 149 (void *) dev->id);
01387959022def Alessandro Zummo 2006-01-29 150 if (err)
b22973d0ecfcf4 Linus Walleij 2013-09-10 151 goto err_free_gpio;
075df31aed44cd Linus Walleij 2018-12-29 152 ixp4xx_timer2_irq = irq;
01387959022def Alessandro Zummo 2006-01-29 153
01387959022def Alessandro Zummo 2006-01-29 154 err = input_register_device(input_dev);
01387959022def Alessandro Zummo 2006-01-29 155 if (err)
01387959022def Alessandro Zummo 2006-01-29 156 goto err_free_irq;
01387959022def Alessandro Zummo 2006-01-29 157
01387959022def Alessandro Zummo 2006-01-29 158 platform_set_drvdata(dev, input_dev);
01387959022def Alessandro Zummo 2006-01-29 159
01387959022def Alessandro Zummo 2006-01-29 160 return 0;
01387959022def Alessandro Zummo 2006-01-29 161
01387959022def Alessandro Zummo 2006-01-29 162 err_free_irq:
075df31aed44cd Linus Walleij 2018-12-29 163 free_irq(irq, (void *)dev->id);
b22973d0ecfcf4 Linus Walleij 2013-09-10 164 err_free_gpio:
b22973d0ecfcf4 Linus Walleij 2013-09-10 165 gpio_free(dev->id);
01387959022def Alessandro Zummo 2006-01-29 166 err_free_device:
01387959022def Alessandro Zummo 2006-01-29 167 input_free_device(input_dev);
01387959022def Alessandro Zummo 2006-01-29 168
01387959022def Alessandro Zummo 2006-01-29 169 return err;
01387959022def Alessandro Zummo 2006-01-29 170 }
01387959022def Alessandro Zummo 2006-01-29 171
:::::: The code at line 61 was first introduced by commit
:::::: 643bd27298bdcc4e75b3e6a7ca459675eb5378c3 Fix ixp4xx compile error
:::::: TO: Frederik Deweerdt <deweerdt(a)free.fr>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[freescale-fslc:pr/311 9162/17568] sound/soc/fsl/fsl_xcvr.c:346: undefined reference to `snd_pcm_create_iec958_consumer_hw_params'
by kernel test robot
Hi Viorel,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/311
head: 81b028050d9762a6a884ec6d460ae109a4fc92de
commit: b164260078426fece986dc4020b8a69d9a2f6023 [9162/17568] MLK-23567-2 ASoC: fsl_xcvr: enable SPDIF TX
config: x86_64-randconfig-s021-20210416 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-280-g2cd6d34e-dirty
# https://github.com/Freescale/linux-fslc/commit/b164260078426fece986dc4020...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/311
git checkout b164260078426fece986dc4020b8a69d9a2f6023
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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 >>):
ld: sound/soc/fsl/fsl_xcvr.o: in function `fsl_xcvr_hw_params':
>> sound/soc/fsl/fsl_xcvr.c:346: undefined reference to `snd_pcm_create_iec958_consumer_hw_params'
vim +346 sound/soc/fsl/fsl_xcvr.c
330
331 static int fsl_xcvr_hw_params(struct snd_pcm_substream *substream,
332 struct snd_pcm_hw_params *params,
333 struct snd_soc_dai *dai)
334 {
335 struct fsl_xcvr *xcvr = snd_soc_dai_get_drvdata(dai);
336 bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
337 u32 r = params_rate(params), ch = params_channels(params);
338 snd_pcm_format_t f = params_format(params);
339 u32 reg, val, bclk = 32 * r * ch;
340 u32 mode = xcvr->mode & FSL_XCVR_AMODE_MASK;
341 int i, ret;
342
343 if (!tx)
344 return 0;
345
> 346 ret = snd_pcm_create_iec958_consumer_hw_params(params,
347 xcvr->tx_iec958.status, ARRAY_SIZE(xcvr->tx_iec958.status));
348 if (ret < 0) {
349 dev_err(dai->dev, "Creating IEC958 CS failed %d\n", ret);
350 return ret;
351 }
352
353 for (i = 0; i < 6; i++) {
354 val = (xcvr->tx_iec958.status[4 * i + 0] << 24) |
355 (xcvr->tx_iec958.status[4 * i + 1] << 16) |
356 (xcvr->tx_iec958.status[4 * i + 2] << 8) |
357 (xcvr->tx_iec958.status[4 * i + 3] << 0);
358 /* Update TX CS data bits */
359 ret = regmap_write(xcvr->regmap, FSL_XCVR_TX_CS_DATA_0 + 4 * i,
360 val);
361 if (ret < 0) {
362 dev_err(dai->dev, "Failed to set TXCS%d: %d\n", i, ret);
363 return ret;
364 }
365 }
366
367 switch (mode) {
368 case FSL_XCVR_AMODE_EARC:
369 bclk *= 10;
370 break;
371 case FSL_XCVR_AMODE_SPDIF:
372 bclk *= 2;
373 break;
374 }
375
376 ret = fsl_xcvr_en_phy(xcvr, (mode == FSL_XCVR_AMODE_EARC), bclk);
377 if (ret < 0) {
378 dev_err(dai->dev, "Failed to set TX freq %u: %d\n", bclk, ret);
379 return ret;
380 }
381
382 /* enable/disable IEC958 encoding as function of input format */
383 val = FSL_XCVR_TX_DPTH_CTRL_CS_MOD;
384 val |= FSL_XCVR_TX_DPTH_CTRL_EN_PREAMBLE;
385 val |= FSL_XCVR_TX_DPTH_CTRL_EN_PARITY;
386
387 if (f == SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE)
388 reg = FSL_XCVR_TX_DPTH_CTRL_CLR; /* disable IEC958 encoding */
389 else
390 reg = FSL_XCVR_TX_DPTH_CTRL_SET; /* enable IEC958 encoding */
391
392 ret = regmap_write(xcvr->regmap, reg, val);
393 if (ret < 0) {
394 dev_err(dai->dev, "Failed to en/dis IEC958 encode: %d\n", ret);
395 return ret;
396 }
397
398 return 0;
399 }
400
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[nmenon:yaml/tisci 6/8] dtbs_check: arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: $nodename:0: 'clocks' does not match '^clock-controller$'
by kernel test robot
tree: https://github.com/nmenon/linux-2.6-playground yaml/tisci
head: a42bec264453167ceba04c47cf37cdcaa643fd61
commit: 9ad37d4fb145d85388d6f73e6e74266778e84d3a [6/8] dt-bindings: clock: Convert ti,sci-clk to json schema
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce: make ARCH=arm dtbs_check
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
dtcheck warnings: (new ones prefixed by >>)
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530400: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530400/sii9022@3b: failed to match any schema with compatible: ['sil,sii9022']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530400/tlv320aic3106@1b: failed to match any schema with compatible: ['ti,tlv320aic3106']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/i2c@2530800: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/dsp@10800000: failed to match any schema with compatible: ['ti,k2g-dsp']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/msgmgr@2a00000: failed to match any schema with compatible: ['ti,k2g-message-manager']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/pmmc@2921c00: failed to match any schema with compatible: ['ti,k2g-sci']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/pmmc@2921c00/power-controller: failed to match any schema with compatible: ['ti,sci-pm-domain']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: 'clocks' is a dependency of 'assigned-clocks'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
>> arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: $nodename:0: 'clocks' does not match '^clock-controller$'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
>> arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: 'assigned-clock-rates', 'assigned-clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: clocks: 'clocks' is a dependency of 'assigned-clocks'
From schema: /usr/local/lib/python3.9/dist-packages/dtschema/schemas/clock/clock.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/gpio@260a000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/gpio@260a000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml: dss@02540000: '#address-cells', '#size-cells', 'ranges' do not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml
arch/arm/boot/dts/keystone-k2g-evm.dt.yaml:0:0: /soc@0/edma@2700000: failed to match any schema with compatible: ['ti,k2g-edma3-tpcc', 'ti,edma3-tpcc']
--
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b200: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b400: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/can@260b400: failed to match any schema with compatible: ['ti,am4372-d_can', 'ti,am3352-d_can']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/i2c@2530000: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/i2c@2530400: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/i2c@2530800: failed to match any schema with compatible: ['ti,keystone-i2c']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/dsp@10800000: failed to match any schema with compatible: ['ti,k2g-dsp']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/msgmgr@2a00000: failed to match any schema with compatible: ['ti,k2g-message-manager']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/pmmc@2921c00: failed to match any schema with compatible: ['ti,k2g-sci']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/pmmc@2921c00/power-controller: failed to match any schema with compatible: ['ti,sci-pm-domain']
>> arch/arm/boot/dts/keystone-k2g-ice.dt.yaml: clocks: $nodename:0: 'clocks' does not match '^clock-controller$'
From schema: Documentation/devicetree/bindings/clock/ti,sci-clk.yaml
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@2603000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@260a000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/gpio@260a000: failed to match any schema with compatible: ['ti,k2g-gpio', 'ti,keystone-gpio']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml: dss@02540000: '#address-cells', '#size-cells', 'ranges' do not match any of the regexes: 'pinctrl-[0-9]+'
From schema: Documentation/devicetree/bindings/display/ti/ti,k2g-dss.yaml
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/edma@2700000: failed to match any schema with compatible: ['ti,k2g-edma3-tpcc', 'ti,edma3-tpcc']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/edma@2700000: failed to match any schema with compatible: ['ti,k2g-edma3-tpcc', 'ti,edma3-tpcc']
arch/arm/boot/dts/keystone-k2g-ice.dt.yaml:0:0: /soc@0/tptc@2760000: failed to match any schema with compatible: ['ti,k2g-edma3-tptc', 'ti,edma3-tptc']
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
Re: [PATCH 2/4] staging: rtl8188eu: remove constant variable and dead code
by kernel test robot
Hi Martin,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/Martin-Kaiser/staging-rtl8188eu-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 71d3edc61e29e45b613b841108688d711846f969
config: arc-allyesconfig (attached as .config)
compiler: arceb-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
# https://github.com/0day-ci/linux/commit/c2b80185c47f9f13ed748eca0df394946...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Martin-Kaiser/staging-rtl8188eu-change-bLeisurePs-type-to-bool/20210418-020200
git checkout c2b80185c47f9f13ed748eca0df39494668481ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 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/staging/rtl8188eu/os_dep/rtw_android.c:60: warning: Function parameter or member 'cmdstr' not described in 'rtw_android_cmdstr_to_num'
>> drivers/staging/rtl8188eu/os_dep/rtw_android.c:60: warning: expecting prototype for functions(). Prototype was for rtw_android_cmdstr_to_num() instead
vim +60 drivers/staging/rtl8188eu/os_dep/rtw_android.c
5adef66acf7370 Larry Finger 2013-08-21 54
5adef66acf7370 Larry Finger 2013-08-21 55 /**
c2b80185c47f9f Martin Kaiser 2021-04-17 56 * Local (static) functions
5adef66acf7370 Larry Finger 2013-08-21 57 */
5adef66acf7370 Larry Finger 2013-08-21 58
5adef66acf7370 Larry Finger 2013-08-21 59 int rtw_android_cmdstr_to_num(char *cmdstr)
5adef66acf7370 Larry Finger 2013-08-21 @60 {
5adef66acf7370 Larry Finger 2013-08-21 61 int cmd_num;
37ad17a4b48ca7 Yamanappagouda Patil 2016-12-22 62
5adef66acf7370 Larry Finger 2013-08-21 63 for (cmd_num = 0; cmd_num < ANDROID_WIFI_CMD_MAX; cmd_num++)
fd078b42096163 Puranjay Mohan 2019-05-21 64 if (!strncasecmp(cmdstr, android_wifi_cmd_str[cmd_num],
5adef66acf7370 Larry Finger 2013-08-21 65 strlen(android_wifi_cmd_str[cmd_num])))
5adef66acf7370 Larry Finger 2013-08-21 66 break;
5adef66acf7370 Larry Finger 2013-08-21 67 return cmd_num;
5adef66acf7370 Larry Finger 2013-08-21 68 }
5adef66acf7370 Larry Finger 2013-08-21 69
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
[linux-next:master 10837/13394] drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_optc.c:139:6: warning: no previous prototype for 'optc1_set_vupdate_keepout'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 18250b538735142307082e4e99e3ae5c12d44013
commit: 9df857f930d6035996d481b4e5bc9ce082990afb [10837/13394] drm/amd/display: Move vupdate keepout programming from DCN20 to DCN10
config: i386-randconfig-r026-20210417 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# 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 9df857f930d6035996d481b4e5bc9ce082990afb
# save the attached .config to linux build tree
make W=1 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 >>):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_optc.c:139:6: warning: no previous prototype for 'optc1_set_vupdate_keepout' [-Wmissing-prototypes]
139 | void optc1_set_vupdate_keepout(struct timing_generator *optc,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_optc.c:879:6: warning: no previous prototype for 'optc1_setup_manual_trigger' [-Wmissing-prototypes]
879 | void optc1_setup_manual_trigger(struct timing_generator *optc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_optc.c:897:6: warning: no previous prototype for 'optc1_program_manual_trigger' [-Wmissing-prototypes]
897 | void optc1_program_manual_trigger(struct timing_generator *optc)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/optc1_set_vupdate_keepout +139 drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_optc.c
133
134 /**
135 * Vupdate keepout can be set to a window to block the update lock for that pipe from changing.
136 * Start offset begins with vstartup and goes for x number of clocks,
137 * end offset starts from end of vupdate to x number of clocks.
138 */
> 139 void optc1_set_vupdate_keepout(struct timing_generator *optc,
140 struct vupdate_keepout_params *params)
141 {
142 struct optc *optc1 = DCN10TG_FROM_TG(optc);
143
144 REG_SET_3(OTG_VUPDATE_KEEPOUT, 0,
145 MASTER_UPDATE_LOCK_VUPDATE_KEEPOUT_START_OFFSET, params->start_offset,
146 MASTER_UPDATE_LOCK_VUPDATE_KEEPOUT_END_OFFSET, params->end_offset,
147 OTG_MASTER_UPDATE_LOCK_VUPDATE_KEEPOUT_EN, params->enable);
148 }
149
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months
fs/f2fs/gc.c:29:12: warning: stack frame size of 2080 bytes in function 'gc_thread_func'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9cdbf6467424045617cd6e79dcaad06bb8efa31c
commit: cdf8a76fda4ae3b53c5a09e5a8c79e27b7b65d68 ubsan: move cc-option tests into Kconfig
date: 4 months ago
config: powerpc-randconfig-r011-20210417 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project f549176ad976caa3e19edd036df9a7e12770af7c)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# 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 cdf8a76fda4ae3b53c5a09e5a8c79e27b7b65d68
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
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 >>):
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:55:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/f2fs/gc.c:10:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:57:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/f2fs/gc.c:10:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:59:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/f2fs/gc.c:10:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:61:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/f2fs/gc.c:10:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:14:
In file included from include/linux/pagemap.h:11:
In file included from include/linux/highmem.h:10:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:63:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> fs/f2fs/gc.c:29:12: warning: stack frame size of 2080 bytes in function 'gc_thread_func' [-Wframe-larger-than=]
static int gc_thread_func(void *data)
^
fs/f2fs/gc.c:1358:12: warning: stack frame size of 2240 bytes in function 'gc_data_segment' [-Wframe-larger-than=]
static int gc_data_segment(struct f2fs_sb_info *sbi, struct f2fs_summary *sum,
^
fs/f2fs/gc.c:622:12: warning: stack frame size of 3680 bytes in function 'get_victim_by_default' [-Wframe-larger-than=]
static int get_victim_by_default(struct f2fs_sb_info *sbi,
^
15 warnings generated.
vim +/gc_thread_func +29 fs/f2fs/gc.c
093749e296e29a Chao Yu 2020-08-04 25
da52f8ade40b03 Jack Qiu 2020-06-18 26 static unsigned int count_bits(const unsigned long *addr,
da52f8ade40b03 Jack Qiu 2020-06-18 27 unsigned int offset, unsigned int len);
da52f8ade40b03 Jack Qiu 2020-06-18 28
7bc0900347e069 Jaegeuk Kim 2012-11-02 @29 static int gc_thread_func(void *data)
7bc0900347e069 Jaegeuk Kim 2012-11-02 30 {
7bc0900347e069 Jaegeuk Kim 2012-11-02 31 struct f2fs_sb_info *sbi = data;
b59d0bae6ca30c Namjae Jeon 2013-08-04 32 struct f2fs_gc_kthread *gc_th = sbi->gc_thread;
7bc0900347e069 Jaegeuk Kim 2012-11-02 33 wait_queue_head_t *wq = &sbi->gc_thread->gc_wait_queue_head;
b8c502b81e3f89 Chao Yu 2017-08-07 34 unsigned int wait_ms;
7bc0900347e069 Jaegeuk Kim 2012-11-02 35
b59d0bae6ca30c Namjae Jeon 2013-08-04 36 wait_ms = gc_th->min_sleep_time;
7bc0900347e069 Jaegeuk Kim 2012-11-02 37
1d7be2708277ed Jaegeuk Kim 2017-05-17 38 set_freezable();
7bc0900347e069 Jaegeuk Kim 2012-11-02 39 do {
bbbc34fd666254 Chao Yu 2020-02-14 40 bool sync_mode;
bbbc34fd666254 Chao Yu 2020-02-14 41
7bc0900347e069 Jaegeuk Kim 2012-11-02 42 wait_event_interruptible_timeout(*wq,
d9872a698c393e Jaegeuk Kim 2017-08-06 43 kthread_should_stop() || freezing(current) ||
d9872a698c393e Jaegeuk Kim 2017-08-06 44 gc_th->gc_wake,
7bc0900347e069 Jaegeuk Kim 2012-11-02 45 msecs_to_jiffies(wait_ms));
1d7be2708277ed Jaegeuk Kim 2017-05-17 46
d9872a698c393e Jaegeuk Kim 2017-08-06 47 /* give it a try one time */
d9872a698c393e Jaegeuk Kim 2017-08-06 48 if (gc_th->gc_wake)
d9872a698c393e Jaegeuk Kim 2017-08-06 49 gc_th->gc_wake = 0;
d9872a698c393e Jaegeuk Kim 2017-08-06 50
274bd9ba394256 Chao Yu 2018-09-29 51 if (try_to_freeze()) {
274bd9ba394256 Chao Yu 2018-09-29 52 stat_other_skip_bggc_count(sbi);
1d7be2708277ed Jaegeuk Kim 2017-05-17 53 continue;
274bd9ba394256 Chao Yu 2018-09-29 54 }
7bc0900347e069 Jaegeuk Kim 2012-11-02 55 if (kthread_should_stop())
7bc0900347e069 Jaegeuk Kim 2012-11-02 56 break;
7bc0900347e069 Jaegeuk Kim 2012-11-02 57
d6212a5f18c8f9 Changman Lee 2013-01-29 58 if (sbi->sb->s_writers.frozen >= SB_FREEZE_WRITE) {
88dd8934194f6d Chao Yu 2015-01-26 59 increase_sleep_time(gc_th, &wait_ms);
274bd9ba394256 Chao Yu 2018-09-29 60 stat_other_skip_bggc_count(sbi);
d6212a5f18c8f9 Changman Lee 2013-01-29 61 continue;
d6212a5f18c8f9 Changman Lee 2013-01-29 62 }
d6212a5f18c8f9 Changman Lee 2013-01-29 63
55523519bc7227 Chao Yu 2017-02-25 64 if (time_to_inject(sbi, FAULT_CHECKPOINT)) {
c45d6002ff7a32 Chao Yu 2019-11-01 65 f2fs_show_injection_info(sbi, FAULT_CHECKPOINT);
0f34802858e74e Chao Yu 2016-09-26 66 f2fs_stop_checkpoint(sbi, false);
55523519bc7227 Chao Yu 2017-02-25 67 }
0f34802858e74e Chao Yu 2016-09-26 68
274bd9ba394256 Chao Yu 2018-09-29 69 if (!sb_start_write_trylock(sbi->sb)) {
274bd9ba394256 Chao Yu 2018-09-29 70 stat_other_skip_bggc_count(sbi);
dc6febb6bcec7f Chao Yu 2017-07-22 71 continue;
274bd9ba394256 Chao Yu 2018-09-29 72 }
dc6febb6bcec7f Chao Yu 2017-07-22 73
7bc0900347e069 Jaegeuk Kim 2012-11-02 74 /*
7bc0900347e069 Jaegeuk Kim 2012-11-02 75 * [GC triggering condition]
7bc0900347e069 Jaegeuk Kim 2012-11-02 76 * 0. GC is not conducted currently.
7bc0900347e069 Jaegeuk Kim 2012-11-02 77 * 1. There are enough dirty segments.
7bc0900347e069 Jaegeuk Kim 2012-11-02 78 * 2. IO subsystem is idle by checking the # of writeback pages.
7bc0900347e069 Jaegeuk Kim 2012-11-02 79 * 3. IO subsystem is idle by checking the # of requests in
7bc0900347e069 Jaegeuk Kim 2012-11-02 80 * bdev's request list.
7bc0900347e069 Jaegeuk Kim 2012-11-02 81 *
e1c42045203071 arter97 2014-08-06 82 * Note) We have to avoid triggering GCs frequently.
7bc0900347e069 Jaegeuk Kim 2012-11-02 83 * Because it is possible that some segments can be
7bc0900347e069 Jaegeuk Kim 2012-11-02 84 * invalidated soon after by user update or deletion.
7bc0900347e069 Jaegeuk Kim 2012-11-02 85 * So, I'd like to wait some time to collect dirty segments.
7bc0900347e069 Jaegeuk Kim 2012-11-02 86 */
0e5e81114de1c4 Daeho Jeong 2020-07-02 87 if (sbi->gc_mode == GC_URGENT_HIGH) {
d9872a698c393e Jaegeuk Kim 2017-08-06 88 wait_ms = gc_th->urgent_sleep_time;
fb24fea75ca5ce Chao Yu 2020-01-14 89 down_write(&sbi->gc_lock);
d9872a698c393e Jaegeuk Kim 2017-08-06 90 goto do_gc;
d9872a698c393e Jaegeuk Kim 2017-08-06 91 }
d9872a698c393e Jaegeuk Kim 2017-08-06 92
fb24fea75ca5ce Chao Yu 2020-01-14 93 if (!down_write_trylock(&sbi->gc_lock)) {
274bd9ba394256 Chao Yu 2018-09-29 94 stat_other_skip_bggc_count(sbi);
69babac019337b Jaegeuk Kim 2018-02-26 95 goto next;
274bd9ba394256 Chao Yu 2018-09-29 96 }
69babac019337b Jaegeuk Kim 2018-02-26 97
a7d10cf3e4e3e3 Sahitya Tummala 2018-09-19 98 if (!is_idle(sbi, GC_TIME)) {
88dd8934194f6d Chao Yu 2015-01-26 99 increase_sleep_time(gc_th, &wait_ms);
fb24fea75ca5ce Chao Yu 2020-01-14 100 up_write(&sbi->gc_lock);
274bd9ba394256 Chao Yu 2018-09-29 101 stat_io_skip_bggc_count(sbi);
dc6febb6bcec7f Chao Yu 2017-07-22 102 goto next;
7bc0900347e069 Jaegeuk Kim 2012-11-02 103 }
7bc0900347e069 Jaegeuk Kim 2012-11-02 104
7bc0900347e069 Jaegeuk Kim 2012-11-02 105 if (has_enough_invalid_blocks(sbi))
88dd8934194f6d Chao Yu 2015-01-26 106 decrease_sleep_time(gc_th, &wait_ms);
7bc0900347e069 Jaegeuk Kim 2012-11-02 107 else
88dd8934194f6d Chao Yu 2015-01-26 108 increase_sleep_time(gc_th, &wait_ms);
d9872a698c393e Jaegeuk Kim 2017-08-06 109 do_gc:
fc7100ea2a52fc Hridya Valsaraju 2020-01-22 110 stat_inc_bggc_count(sbi->stat_info);
7bc0900347e069 Jaegeuk Kim 2012-11-02 111
bbbc34fd666254 Chao Yu 2020-02-14 112 sync_mode = F2FS_OPTION(sbi).bggc_mode == BGGC_MODE_SYNC;
bbbc34fd666254 Chao Yu 2020-02-14 113
437275272f9e63 Jaegeuk Kim 2013-02-04 114 /* if return value is not zero, no victim was selected */
bbbc34fd666254 Chao Yu 2020-02-14 115 if (f2fs_gc(sbi, sync_mode, true, NULL_SEGNO))
b59d0bae6ca30c Namjae Jeon 2013-08-04 116 wait_ms = gc_th->no_gc_sleep_time;
81eb8d6e2869b1 Jaegeuk Kim 2013-10-24 117
84e4214f0868ae Jaegeuk Kim 2015-10-13 118 trace_f2fs_background_gc(sbi->sb, wait_ms,
84e4214f0868ae Jaegeuk Kim 2015-10-13 119 prefree_segments(sbi), free_segments(sbi));
84e4214f0868ae Jaegeuk Kim 2015-10-13 120
4660f9c0fe4843 Jaegeuk Kim 2013-10-24 121 /* balancing f2fs's metadata periodically */
7bcd0cfa735d72 Chao Yu 2020-03-19 122 f2fs_balance_fs_bg(sbi, true);
dc6febb6bcec7f Chao Yu 2017-07-22 123 next:
dc6febb6bcec7f Chao Yu 2017-07-22 124 sb_end_write(sbi->sb);
81eb8d6e2869b1 Jaegeuk Kim 2013-10-24 125
7bc0900347e069 Jaegeuk Kim 2012-11-02 126 } while (!kthread_should_stop());
7bc0900347e069 Jaegeuk Kim 2012-11-02 127 return 0;
7bc0900347e069 Jaegeuk Kim 2012-11-02 128 }
7bc0900347e069 Jaegeuk Kim 2012-11-02 129
:::::: The code at line 29 was first introduced by commit
:::::: 7bc0900347e069a1676d28ad6f98cafaf8cfd6e9 f2fs: add garbage collection functions
:::::: TO: Jaegeuk Kim <jaegeuk.kim(a)samsung.com>
:::::: CC: Jaegeuk Kim <jaegeuk.kim(a)samsung.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 5 months