[hch-block:block-bounce-cleanup 3/6] blk-mq.c:undefined reference to `__blk_queue_bounce'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git block-bounce-cleanup
head: 6b1b8e36f63fe989298a53f04961018c1785f0b3
commit: 6922ed82e514a69c601c501b5eca1eed2041a710 [3/6] block: refactor the bounce buffering code
config: nds32-randconfig-r021-20210311 (attached as .config)
compiler: nds32le-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 remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block block-bounce-cleanup
git checkout 6922ed82e514a69c601c501b5eca1eed2041a710
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
nds32le-linux-ld: block/blk-mq.o: in function `blk_mq_submit_bio':
>> blk-mq.c:(.text+0x28fc): undefined reference to `__blk_queue_bounce'
>> nds32le-linux-ld: blk-mq.c:(.text+0x2900): undefined reference to `__blk_queue_bounce'
nds32le-linux-ld: block/blk-map.o: in function `blk_rq_append_bio':
blk-map.c:(.text+0x22e): undefined reference to `__blk_queue_bounce'
nds32le-linux-ld: blk-map.c:(.text+0x232): undefined reference to `__blk_queue_bounce'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[hch-block:block-bounce-cleanup 6/6] drivers/block/floppy.c:4600: undefined reference to `blk_queue_bounce_limit'
by kernel test robot
tree: git://git.infradead.org/users/hch/block.git block-bounce-cleanup
head: 6b1b8e36f63fe989298a53f04961018c1785f0b3
commit: 6b1b8e36f63fe989298a53f04961018c1785f0b3 [6/6] block: only build the block layer bounce buffering if drivers need it
config: x86_64-randconfig-c022-20210311 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block block-bounce-cleanup
git checkout 6b1b8e36f63fe989298a53f04961018c1785f0b3
# 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 >>):
ld: block/blk-mq.o: in function `blk_queue_bounce':
block/blk.h:332: undefined reference to `__blk_queue_bounce'
ld: drivers/block/floppy.o: in function `floppy_alloc_disk':
>> drivers/block/floppy.c:4600: undefined reference to `blk_queue_bounce_limit'
ld: drivers/scsi/scsi_lib.o: in function `__scsi_init_queue':
>> drivers/scsi/scsi_lib.c:1825: undefined reference to `blk_queue_bounce_limit'
vim +4600 drivers/block/floppy.c
8d3ab4ebfd7435 Herton Ronaldo Krzesinski 2012-08-27 4582
302cfee150291c Christoph Hellwig 2020-10-29 4583 static int floppy_alloc_disk(unsigned int drive, unsigned int type)
^1da177e4c3f41 Linus Torvalds 2005-04-16 4584 {
302cfee150291c Christoph Hellwig 2020-10-29 4585 struct gendisk *disk;
302cfee150291c Christoph Hellwig 2020-10-29 4586 int err;
302cfee150291c Christoph Hellwig 2020-10-29 4587
302cfee150291c Christoph Hellwig 2020-10-29 4588 disk = alloc_disk(1);
302cfee150291c Christoph Hellwig 2020-10-29 4589 if (!disk)
302cfee150291c Christoph Hellwig 2020-10-29 4590 return -ENOMEM;
302cfee150291c Christoph Hellwig 2020-10-29 4591
302cfee150291c Christoph Hellwig 2020-10-29 4592 disk->queue = blk_mq_init_queue(&tag_sets[drive]);
302cfee150291c Christoph Hellwig 2020-10-29 4593 if (IS_ERR(disk->queue)) {
302cfee150291c Christoph Hellwig 2020-10-29 4594 err = PTR_ERR(disk->queue);
302cfee150291c Christoph Hellwig 2020-10-29 4595 disk->queue = NULL;
302cfee150291c Christoph Hellwig 2020-10-29 4596 put_disk(disk);
302cfee150291c Christoph Hellwig 2020-10-29 4597 return err;
302cfee150291c Christoph Hellwig 2020-10-29 4598 }
302cfee150291c Christoph Hellwig 2020-10-29 4599
302cfee150291c Christoph Hellwig 2020-10-29 @4600 blk_queue_bounce_limit(disk->queue, BLK_BOUNCE_HIGH);
302cfee150291c Christoph Hellwig 2020-10-29 4601 blk_queue_max_hw_sectors(disk->queue, 64);
302cfee150291c Christoph Hellwig 2020-10-29 4602 disk->major = FLOPPY_MAJOR;
302cfee150291c Christoph Hellwig 2020-10-29 4603 disk->first_minor = TOMINOR(drive) | (type << 2);
302cfee150291c Christoph Hellwig 2020-10-29 4604 disk->fops = &floppy_fops;
302cfee150291c Christoph Hellwig 2020-10-29 4605 disk->events = DISK_EVENT_MEDIA_CHANGE;
302cfee150291c Christoph Hellwig 2020-10-29 4606 if (type)
302cfee150291c Christoph Hellwig 2020-10-29 4607 sprintf(disk->disk_name, "fd%d_type%d", drive, type);
302cfee150291c Christoph Hellwig 2020-10-29 4608 else
302cfee150291c Christoph Hellwig 2020-10-29 4609 sprintf(disk->disk_name, "fd%d", drive);
302cfee150291c Christoph Hellwig 2020-10-29 4610 /* to be cleaned up... */
302cfee150291c Christoph Hellwig 2020-10-29 4611 disk->private_data = (void *)(long)drive;
302cfee150291c Christoph Hellwig 2020-10-29 4612 disk->flags |= GENHD_FL_REMOVABLE;
302cfee150291c Christoph Hellwig 2020-10-29 4613
302cfee150291c Christoph Hellwig 2020-10-29 4614 disks[drive][type] = disk;
302cfee150291c Christoph Hellwig 2020-10-29 4615 return 0;
302cfee150291c Christoph Hellwig 2020-10-29 4616 }
302cfee150291c Christoph Hellwig 2020-10-29 4617
:::::: The code at line 4600 was first introduced by commit
:::::: 302cfee150291c6cd85b1ca197d062d0b423d09c floppy: use a separate gendisk for each media format
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[gfs2:for-next.radical6j 17/26] fs/gfs2/glock.c:949:9: sparse: sparse: context imbalance in 'state_machine' - wrong count at exit
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next.radical6j
head: 7b8c8263459404aea0c41574ef44e827d7ea1215
commit: 1cd536a236d31c9d8a0a0f1b2bd9978036b2aa21 [17/26] gfs2: move the rest of glock_work_func into the state machine
config: x86_64-randconfig-s022-20210311 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commi...
git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git fetch --no-tags gfs2 for-next.radical6j
git checkout 1cd536a236d31c9d8a0a0f1b2bd9978036b2aa21
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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 >>)"
fs/gfs2/glock.c: note: in included file:
fs/gfs2/glock.h:218:36: sparse: sparse: context imbalance in '__gfs2_glock_put' - unexpected unlock
>> fs/gfs2/glock.c:949:9: sparse: sparse: context imbalance in 'state_machine' - wrong count at exit
vim +/state_machine +949 fs/gfs2/glock.c
936
937 /**
938 * state_machine - the glock state machine
939 * @gl: pointer to the glock we are transitioning
940 * @new_state: The new state we need to execute
941 *
942 * Just like __state_machine but it acquires the gl_lockref lock
943 */
944 static void state_machine(struct gfs2_glock *gl, int new_state)
945 __releases(&gl->gl_lockref.lock)
946 __acquires(&gl->gl_lockref.lock)
947 {
948 spin_lock(&gl->gl_lockref.lock);
> 949 if (!__state_machine(gl, new_state))
950 spin_unlock(&gl->gl_lockref.lock);
951 }
952
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[agd5f:amd-staging-drm-next 1776/2013] drivers/spi/spi-amd.c:353:36: warning: unused variable 'spi_acpi_match'
by kernel test robot
Hi Nehal,
FYI, the error/warning still remains.
tree: https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head: 2740446a52467a1b4dcfdc6256e58bbe558b8069
commit: 37b635b47124cbdf32981150b2a950cb0153c756 [1776/2013] Add support for AMD SPI controller-1 (v2)
config: s390-randconfig-r015-20210311 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 574a9dabc63ba1e7a04c08d4bde2eacd61b44ce1)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390x-linux-gnu
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f amd-staging-drm-next
git checkout 37b635b47124cbdf32981150b2a950cb0153c756
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 >>):
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | \
^
In file included from drivers/spi/spi-amd.c:15:
In file included from include/linux/spi/spi.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \
^
In file included from drivers/spi/spi-amd.c:15:
In file included from include/linux/spi/spi.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \
^
In file included from drivers/spi/spi-amd.c:15:
In file included from include/linux/spi/spi.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : \
^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from drivers/spi/spi-amd.c:15:
In file included from include/linux/spi/spi.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from drivers/spi/spi-amd.c:15:
In file included from include/linux/spi/spi.h:14:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:80:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> drivers/spi/spi-amd.c:353:36: warning: unused variable 'spi_acpi_match' [-Wunused-const-variable]
static const struct acpi_device_id spi_acpi_match[] = {
^
21 warnings generated.
vim +/spi_acpi_match +353 drivers/spi/spi-amd.c
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 352
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 @353 static const struct acpi_device_id spi_acpi_match[] = {
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 354 { "AMDI0061", 0 },
37b635b47124cb Nehal Bakulchandra Shah 2021-01-26 355 { "AMDI0062", 0 },
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 356 {},
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 357 };
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 358 MODULE_DEVICE_TABLE(acpi, spi_acpi_match);
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 359
:::::: The code at line 353 was first introduced by commit
:::::: bbb336f39efcb1b5498f65f59f9af5773ad6dc2b spi: spi-amd: Add AMD SPI controller driver support
:::::: TO: Sanjay R Mehta <sanju.mehta(a)amd.com>
:::::: CC: Mark Brown <broonie(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c:856 mlx5_fpga_ipsec_release_sa_ctx() warn: bitwise AND condition is false here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a74e6a014c9d4d4161061f770c9b4f98372ac778
commit: 7dfee4b1d79e1800818abcfb47747b162c9a2d31 net/mlx5: IPsec, Refactor SA handle creation and destruction
date: 11 months ago
config: arc-randconfig-m031-20210311 (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
New smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c:856 mlx5_fpga_ipsec_release_sa_ctx() warn: bitwise AND condition is false here
Old smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c:711 mlx5_fpga_ipsec_create_sa_ctx() warn: bitwise AND condition is false here
drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c:762 mlx5_fpga_ipsec_create_sa_ctx() warn: bitwise AND condition is false here
arch/arc/include/asm/thread_info.h:65 current_thread_info() error: uninitialized symbol 'sp'.
vim +856 drivers/net/ethernet/mellanox/mlx5/core/fpga/ipsec.c
837
838 static void
839 mlx5_fpga_ipsec_release_sa_ctx(struct mlx5_fpga_ipsec_sa_ctx *sa_ctx)
840 {
841 struct mlx5_fpga_device *fdev = sa_ctx->dev->fpga;
842 struct mlx5_fpga_ipsec *fipsec = fdev->ipsec;
843 int opcode = is_v2_sadb_supported(fdev->ipsec) ?
844 MLX5_FPGA_IPSEC_CMD_OP_DEL_SA_V2 :
845 MLX5_FPGA_IPSEC_CMD_OP_DEL_SA;
846 int err;
847
848 err = mlx5_fpga_ipsec_update_hw_sa(fdev, &sa_ctx->hw_sa, opcode);
849 sa_ctx->hw_sa.ipsec_sa_v1.cmd = 0;
850 if (err) {
851 WARN_ON(err);
852 return;
853 }
854
855 if (sa_ctx->fpga_xfrm->accel_xfrm.attrs.action &
> 856 MLX5_ACCEL_ESP_ACTION_DECRYPT)
857 ida_simple_remove(&fipsec->halloc, sa_ctx->sa_handle);
858
859 mutex_lock(&fipsec->sa_hash_lock);
860 WARN_ON(rhashtable_remove_fast(&fipsec->sa_hash, &sa_ctx->hash,
861 rhash_sa));
862 mutex_unlock(&fipsec->sa_hash_lock);
863 }
864
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
Re: [PATCH v3 10/15] clk: socfpga: use ARCH_INTEL_SOCFPGA also for 32-bit ARM SoCs (and compile test)
by kernel test robot
Hi Krzysztof,
I love your patch! Perhaps something to improve:
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on linus/master v5.12-rc2 next-20210311]
[cannot apply to clk/clk-next soc/for-next]
[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/Krzysztof-Kozlowski/arm64-clk-so...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: ia64-allmodconfig (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
# https://github.com/0day-ci/linux/commit/16a45074953446d4d927f2e9ffefa8349...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Krzysztof-Kozlowski/arm64-clk-socfpga-simplifying-cleanups-and-compile-testing/20210311-232941
git checkout 16a45074953446d4d927f2e9ffefa8349a425083
# 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/clk/socfpga/clk-gate.c: In function 'socfpga_clk_recalc_rate':
>> drivers/clk/socfpga/clk-gate.c:102:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
102 | if ((int) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET)
| ^
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86
vim +102 drivers/clk/socfpga/clk-gate.c
97259e99bdc914 Steffen Trumtrar 2014-01-06 89
97259e99bdc914 Steffen Trumtrar 2014-01-06 90 static unsigned long socfpga_clk_recalc_rate(struct clk_hw *hwclk,
97259e99bdc914 Steffen Trumtrar 2014-01-06 91 unsigned long parent_rate)
97259e99bdc914 Steffen Trumtrar 2014-01-06 92 {
97259e99bdc914 Steffen Trumtrar 2014-01-06 93 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk);
97259e99bdc914 Steffen Trumtrar 2014-01-06 94 u32 div = 1, val;
97259e99bdc914 Steffen Trumtrar 2014-01-06 95
97259e99bdc914 Steffen Trumtrar 2014-01-06 96 if (socfpgaclk->fixed_div)
97259e99bdc914 Steffen Trumtrar 2014-01-06 97 div = socfpgaclk->fixed_div;
97259e99bdc914 Steffen Trumtrar 2014-01-06 98 else if (socfpgaclk->div_reg) {
97259e99bdc914 Steffen Trumtrar 2014-01-06 99 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift;
25d4d341d31b34 Andy Shevchenko 2015-07-13 100 val &= GENMASK(socfpgaclk->width - 1, 0);
97259e99bdc914 Steffen Trumtrar 2014-01-06 101 /* Check for GPIO_DB_CLK by its offset */
97259e99bdc914 Steffen Trumtrar 2014-01-06 @102 if ((int) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET)
97259e99bdc914 Steffen Trumtrar 2014-01-06 103 div = val + 1;
97259e99bdc914 Steffen Trumtrar 2014-01-06 104 else
97259e99bdc914 Steffen Trumtrar 2014-01-06 105 div = (1 << val);
97259e99bdc914 Steffen Trumtrar 2014-01-06 106 }
97259e99bdc914 Steffen Trumtrar 2014-01-06 107
97259e99bdc914 Steffen Trumtrar 2014-01-06 108 return parent_rate / div;
97259e99bdc914 Steffen Trumtrar 2014-01-06 109 }
97259e99bdc914 Steffen Trumtrar 2014-01-06 110
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
arch/arm/boot/compressed/atags_to_fdt.c:100:1: warning: the frame size of 1028 bytes is larger than 1024 bytes
by kernel test robot
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a74e6a014c9d4d4161061f770c9b4f98372ac778
commit: 45fe7befe0db5e61cd3c846315f0ac48541e8445 coresight: remove broken __exit annotations
date: 3 months ago
config: arm-randconfig-r013-20210311 (attached as .config)
compiler: arm-linux-gnueabi-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/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 45fe7befe0db5e61cd3c846315f0ac48541e8445
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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/arm/boot/compressed/atags_to_fdt.c:128:5: warning: no previous prototype for 'atags_to_fdt' [-Wmissing-prototypes]
128 | int atags_to_fdt(void *atag_list, void *fdt, int total_space)
| ^~~~~~~~~~~~
arch/arm/boot/compressed/atags_to_fdt.c: In function 'merge_fdt_bootargs':
>> arch/arm/boot/compressed/atags_to_fdt.c:100:1: warning: the frame size of 1028 bytes is larger than 1024 bytes [-Wframe-larger-than=]
100 | }
| ^
vim +100 arch/arm/boot/compressed/atags_to_fdt.c
faefd550c45d8d Gregory CLEMENT 2013-05-15 70
d0f34a11ddab9b Genoud Richard 2012-06-26 71 static void merge_fdt_bootargs(void *fdt, const char *fdt_cmdline)
d0f34a11ddab9b Genoud Richard 2012-06-26 72 {
d0f34a11ddab9b Genoud Richard 2012-06-26 73 char cmdline[COMMAND_LINE_SIZE];
d0f34a11ddab9b Genoud Richard 2012-06-26 74 const char *fdt_bootargs;
d0f34a11ddab9b Genoud Richard 2012-06-26 75 char *ptr = cmdline;
d0f34a11ddab9b Genoud Richard 2012-06-26 76 int len = 0;
d0f34a11ddab9b Genoud Richard 2012-06-26 77
d0f34a11ddab9b Genoud Richard 2012-06-26 78 /* copy the fdt command line into the buffer */
d0f34a11ddab9b Genoud Richard 2012-06-26 79 fdt_bootargs = getprop(fdt, "/chosen", "bootargs", &len);
d0f34a11ddab9b Genoud Richard 2012-06-26 80 if (fdt_bootargs)
d0f34a11ddab9b Genoud Richard 2012-06-26 81 if (len < COMMAND_LINE_SIZE) {
d0f34a11ddab9b Genoud Richard 2012-06-26 82 memcpy(ptr, fdt_bootargs, len);
d0f34a11ddab9b Genoud Richard 2012-06-26 83 /* len is the length of the string
d0f34a11ddab9b Genoud Richard 2012-06-26 84 * including the NULL terminator */
d0f34a11ddab9b Genoud Richard 2012-06-26 85 ptr += len - 1;
d0f34a11ddab9b Genoud Richard 2012-06-26 86 }
d0f34a11ddab9b Genoud Richard 2012-06-26 87
d0f34a11ddab9b Genoud Richard 2012-06-26 88 /* and append the ATAG_CMDLINE */
d0f34a11ddab9b Genoud Richard 2012-06-26 89 if (fdt_cmdline) {
d0f34a11ddab9b Genoud Richard 2012-06-26 90 len = strlen(fdt_cmdline);
d0f34a11ddab9b Genoud Richard 2012-06-26 91 if (ptr - cmdline + len + 2 < COMMAND_LINE_SIZE) {
d0f34a11ddab9b Genoud Richard 2012-06-26 92 *ptr++ = ' ';
d0f34a11ddab9b Genoud Richard 2012-06-26 93 memcpy(ptr, fdt_cmdline, len);
d0f34a11ddab9b Genoud Richard 2012-06-26 94 ptr += len;
d0f34a11ddab9b Genoud Richard 2012-06-26 95 }
d0f34a11ddab9b Genoud Richard 2012-06-26 96 }
d0f34a11ddab9b Genoud Richard 2012-06-26 97 *ptr = '\0';
d0f34a11ddab9b Genoud Richard 2012-06-26 98
d0f34a11ddab9b Genoud Richard 2012-06-26 99 setprop_string(fdt, "/chosen", "bootargs", cmdline);
d0f34a11ddab9b Genoud Richard 2012-06-26 @100 }
d0f34a11ddab9b Genoud Richard 2012-06-26 101
:::::: The code at line 100 was first introduced by commit
:::::: d0f34a11ddab9b456e4caf9fc48d8d7e832e0e50 ARM: 7437/1: zImage: Allow DTB command line concatenation with ATAG_CMDLINE
:::::: TO: Genoud Richard <richard.genoud(a)gmail.com>
:::::: 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, 6 months
Re: [PATCH v3 3/4] mm: memcontrol: use obj_cgroup APIs to charge kmem pages
by kernel test robot
Hi Muchun,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.12-rc2 next-20210311]
[cannot apply to hnaz-linux-mm/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/Muchun-Song/Use-obj_cgroup-APIs-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 144c79ef33536b4ecb4951e07dbc1f2b7fa99d32
config: i386-randconfig-s002-20210311 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
# https://github.com/0day-ci/linux/commit/202c922730a115143cf9e15ab26633f24...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Muchun-Song/Use-obj_cgroup-APIs-to-charge-kmem-pages/20210309-181121
git checkout 202c922730a115143cf9e15ab26633f247e00229
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
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 >>)"
mm/memcontrol.c:4194:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4194:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4194:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4196:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4196:21: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4196:21: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4352:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4352:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4352:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:4446:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:4446:9: sparse: struct mem_cgroup_threshold_ary [noderef] __rcu *
mm/memcontrol.c:4446:9: sparse: struct mem_cgroup_threshold_ary *
mm/memcontrol.c:6002:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
mm/memcontrol.c:6002:23: sparse: struct task_struct [noderef] __rcu *
mm/memcontrol.c:6002:23: sparse: struct task_struct *
>> mm/memcontrol.c:854:6: sparse: sparse: context imbalance in '__mod_lruvec_page_state' - different lock contexts for basic block
mm/memcontrol.c: note: in included file:
include/linux/memcontrol.h:707:9: sparse: sparse: context imbalance in 'lock_page_lruvec' - wrong count at exit
include/linux/memcontrol.h:707:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irq' - wrong count at exit
include/linux/memcontrol.h:707:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
mm/memcontrol.c:2137:19: sparse: sparse: context imbalance in 'lock_page_memcg' - wrong count at exit
mm/memcontrol.c:2199:17: sparse: sparse: context imbalance in '__unlock_page_memcg' - unexpected unlock
mm/memcontrol.c:5853:28: sparse: sparse: context imbalance in 'mem_cgroup_count_precharge_pte_range' - unexpected unlock
mm/memcontrol.c:6047:36: sparse: sparse: context imbalance in 'mem_cgroup_move_charge_pte_range' - unexpected unlock
vim +/__mod_lruvec_page_state +854 mm/memcontrol.c
eedc4e5a142cc3 Roman Gushchin 2020-08-06 853
c47d5032ed3002 Shakeel Butt 2020-12-14 @854 void __mod_lruvec_page_state(struct page *page, enum node_stat_item idx,
c47d5032ed3002 Shakeel Butt 2020-12-14 855 int val)
c47d5032ed3002 Shakeel Butt 2020-12-14 856 {
c47d5032ed3002 Shakeel Butt 2020-12-14 857 struct page *head = compound_head(page); /* rmap on tail pages */
286d6cff5d9973 Muchun Song 2021-03-09 858 struct mem_cgroup *memcg;
c47d5032ed3002 Shakeel Butt 2020-12-14 859 pg_data_t *pgdat = page_pgdat(page);
c47d5032ed3002 Shakeel Butt 2020-12-14 860 struct lruvec *lruvec;
c47d5032ed3002 Shakeel Butt 2020-12-14 861
202c922730a115 Muchun Song 2021-03-09 862 if (PageMemcgKmem(head)) {
202c922730a115 Muchun Song 2021-03-09 863 rcu_read_lock();
202c922730a115 Muchun Song 2021-03-09 864 memcg = obj_cgroup_memcg(page_objcg(page));
202c922730a115 Muchun Song 2021-03-09 865 } else {
202c922730a115 Muchun Song 2021-03-09 866 memcg = page_memcg(head);
202c922730a115 Muchun Song 2021-03-09 867 /*
202c922730a115 Muchun Song 2021-03-09 868 * Untracked pages have no memcg, no lruvec. Update only the
202c922730a115 Muchun Song 2021-03-09 869 * node.
202c922730a115 Muchun Song 2021-03-09 870 */
d635a69dd4981c Linus Torvalds 2020-12-15 871 if (!memcg) {
c47d5032ed3002 Shakeel Butt 2020-12-14 872 __mod_node_page_state(pgdat, idx, val);
c47d5032ed3002 Shakeel Butt 2020-12-14 873 return;
c47d5032ed3002 Shakeel Butt 2020-12-14 874 }
202c922730a115 Muchun Song 2021-03-09 875 }
c47d5032ed3002 Shakeel Butt 2020-12-14 876
d635a69dd4981c Linus Torvalds 2020-12-15 877 lruvec = mem_cgroup_lruvec(memcg, pgdat);
c47d5032ed3002 Shakeel Butt 2020-12-14 878 __mod_lruvec_state(lruvec, idx, val);
202c922730a115 Muchun Song 2021-03-09 879
202c922730a115 Muchun Song 2021-03-09 880 if (PageMemcgKmem(head))
202c922730a115 Muchun Song 2021-03-09 881 rcu_read_unlock();
c47d5032ed3002 Shakeel Butt 2020-12-14 882 }
f0c0c115fb8194 Shakeel Butt 2020-12-14 883 EXPORT_SYMBOL(__mod_lruvec_page_state);
c47d5032ed3002 Shakeel Butt 2020-12-14 884
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months