Re: [PATCH 18/18] spi: mxic: Add support for pipelined ECC operations
by kernel test robot
Hi Miquel,
I love your patch! Perhaps something to improve:
[auto build test WARNING on broonie-spi/for-next]
[also build test WARNING on mtd/nand/next mtd/mtd/next mtd/mtd/fixes v5.15-rc6 next-20211020]
[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/Miquel-Raynal/External-ECC-engin...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: riscv-randconfig-r004-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9660563950aaed54020bfdf0be07e7096a9553e4)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/9b602c348c84bbe0698c891b14e29cf25...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Miquel-Raynal/External-ECC-engines-Macronix-support/20211020-223036
git checkout 9b602c348c84bbe0698c891b14e29cf25ef74b6a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
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 drivers/spi/spi-mxic.c:16:
>> include/linux/mtd/nand-ecc-mxic.h:23:29: warning: no previous prototype for function 'mxic_ecc_get_pipelined_ops' [-Wmissing-prototypes]
struct nand_ecc_engine_ops *mxic_ecc_get_pipelined_ops(void)
^
include/linux/mtd/nand-ecc-mxic.h:23:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct nand_ecc_engine_ops *mxic_ecc_get_pipelined_ops(void)
^
static
1 warning generated.
vim +/mxic_ecc_get_pipelined_ops +23 include/linux/mtd/nand-ecc-mxic.h
ccf53b4df2cab6 Miquel Raynal 2021-10-20 22
ccf53b4df2cab6 Miquel Raynal 2021-10-20 @23 struct nand_ecc_engine_ops *mxic_ecc_get_pipelined_ops(void)
ccf53b4df2cab6 Miquel Raynal 2021-10-20 24 {
ccf53b4df2cab6 Miquel Raynal 2021-10-20 25 return NULL;
ccf53b4df2cab6 Miquel Raynal 2021-10-20 26 }
ccf53b4df2cab6 Miquel Raynal 2021-10-20 27
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH v1] hugetlb: Add hugetlb.*.numa_stat file
by kernel test robot
Hi Mina,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on hnaz-mm/master]
[also build test WARNING on tj-cgroup/for-next linus/master v5.15-rc6 next-20211020]
[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/Mina-Almasry/hugetlb-Add-hugetlb...
base: https://github.com/hnaz/linux-mm master
config: x86_64-randconfig-a004-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9660563950aaed54020bfdf0be07e7096a9553e4)
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/cdac71b7be0126a6f559110105cb7baff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mina-Almasry/hugetlb-Add-hugetlb-numa_stat-file/20211020-055543
git checkout cdac71b7be0126a6f559110105cb7baff1b6552b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 warnings (new ones prefixed by >>):
>> mm/hugetlb_cgroup.c:469:6: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
(u64)page_counter_read(&h_cg->hugepage[idx]) * PAGE_SIZE);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +469 mm/hugetlb_cgroup.c
440
441 static int hugetlb_cgroup_read_numa_stat(struct seq_file *seq, void *dummy)
442 {
443 int nid;
444 struct cftype *cft = seq_cft(seq);
445 int idx = MEMFILE_IDX(cft->private);
446 bool legacy = MEMFILE_ATTR(cft->private);
447 struct hugetlb_cgroup *h_cg = hugetlb_cgroup_from_css(seq_css(seq));
448 struct cgroup_subsys_state *css;
449 unsigned long usage;
450
451 if (legacy) {
452 /* Add up usage across all nodes for the non-hierarchical total. */
453 usage = 0;
454 for_each_node_state(nid, N_MEMORY)
455 usage += h_cg->nodeinfo[nid]->usage[idx];
456 seq_printf(seq, "total=%lu", usage);
457
458 /* Simply print the per-node usage for the non-hierarchical total. */
459 for_each_node_state(nid, N_MEMORY)
460 seq_printf(seq, " N%d=%lu", nid,
461 h_cg->nodeinfo[nid]->usage[idx]);
462 seq_putc(seq, '\n');
463 }
464
465 /* The hierarchical total is pretty much the value recorded by the
466 * counter, so use that.
467 */
468 seq_printf(seq, "%stotal=%lu", legacy ? "hierarichal_" : "",
> 469 (u64)page_counter_read(&h_cg->hugepage[idx]) * PAGE_SIZE);
470
471 /* For each node, transverse the css tree to obtain the hierarichal
472 * node usage.
473 */
474 for_each_node_state(nid, N_MEMORY) {
475 usage = 0;
476 rcu_read_lock();
477 css_for_each_descendant_pre(css, &h_cg->css) {
478 usage += hugetlb_cgroup_from_css(css)
479 ->nodeinfo[nid]
480 ->usage[idx];
481 }
482 rcu_read_unlock();
483 seq_printf(seq, " N%d=%lu", nid, usage);
484 }
485
486 seq_putc(seq, '\n');
487
488 return 0;
489 }
490
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH 1/2] riscv: consolidate __ex_table construction
by kernel test robot
Hi Jisheng,
I love your patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.15-rc5 next-20211015]
[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/Jisheng-Zhang/riscv-switch-to-re...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8fe31e0995f048d16b378b90926793a0aa4af1e5
config: riscv-randconfig-r032-20211017 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 746dd6a700931988dd9021d3d04718f1929885a5)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/23c273bf6ec4ca672a21dba7017250872...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jisheng-Zhang/riscv-switch-to-relative-extable/20211017-001318
git checkout 23c273bf6ec4ca672a21dba701725087208dc784
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/futex.c:36:
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:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __raw_readb(PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/little_endian.h:36:51: note: expanded from macro '__le16_to_cpu'
#define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
^
In file included from kernel/futex.c:36:
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:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
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/little_endian.h:34:51: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
^
In file included from kernel/futex.c:36:
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:11:
In file included from ./arch/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/riscv/include/asm/io.h:136:
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:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
In file included from kernel/futex.c:43:
>> arch/riscv/include/asm/futex.h:51:3: error: expected ')'
__futex_atomic_op("amoswap.w.aqrl %[ov],%z[op],%[u]",
^
arch/riscv/include/asm/futex.h:33:3: note: expanded from macro '__futex_atomic_op'
_ASM_EXTABLE(1b, 3b) \
^
arch/riscv/include/asm/futex.h:55:3: error: expected ')'
__futex_atomic_op("amoadd.w.aqrl %[ov],%z[op],%[u]",
^
arch/riscv/include/asm/futex.h:33:3: note: expanded from macro '__futex_atomic_op'
_ASM_EXTABLE(1b, 3b) \
^
arch/riscv/include/asm/futex.h:59:3: error: expected ')'
__futex_atomic_op("amoor.w.aqrl %[ov],%z[op],%[u]",
^
arch/riscv/include/asm/futex.h:33:3: note: expanded from macro '__futex_atomic_op'
_ASM_EXTABLE(1b, 3b) \
^
arch/riscv/include/asm/futex.h:63:3: error: expected ')'
__futex_atomic_op("amoand.w.aqrl %[ov],%z[op],%[u]",
^
arch/riscv/include/asm/futex.h:33:3: note: expanded from macro '__futex_atomic_op'
_ASM_EXTABLE(1b, 3b) \
^
arch/riscv/include/asm/futex.h:67:3: error: expected ')'
__futex_atomic_op("amoxor.w.aqrl %[ov],%z[op],%[u]",
^
arch/riscv/include/asm/futex.h:33:3: note: expanded from macro '__futex_atomic_op'
_ASM_EXTABLE(1b, 3b) \
^
arch/riscv/include/asm/futex.h:103:3: error: expected ')'
_ASM_EXTABLE(1b, 4b) \
^
7 warnings and 6 errors generated.
vim +51 arch/riscv/include/asm/futex.h
b90edb33010bcf Jim Wilson 2018-10-16 40
b90edb33010bcf Jim Wilson 2018-10-16 41 static inline int
b90edb33010bcf Jim Wilson 2018-10-16 42 arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr)
b90edb33010bcf Jim Wilson 2018-10-16 43 {
b90edb33010bcf Jim Wilson 2018-10-16 44 int oldval = 0, ret = 0;
b90edb33010bcf Jim Wilson 2018-10-16 45
a08971e9488d12 Al Viro 2020-02-16 46 if (!access_ok(uaddr, sizeof(u32)))
a08971e9488d12 Al Viro 2020-02-16 47 return -EFAULT;
b90edb33010bcf Jim Wilson 2018-10-16 48
b90edb33010bcf Jim Wilson 2018-10-16 49 switch (op) {
b90edb33010bcf Jim Wilson 2018-10-16 50 case FUTEX_OP_SET:
b90edb33010bcf Jim Wilson 2018-10-16 @51 __futex_atomic_op("amoswap.w.aqrl %[ov],%z[op],%[u]",
b90edb33010bcf Jim Wilson 2018-10-16 52 ret, oldval, uaddr, oparg);
b90edb33010bcf Jim Wilson 2018-10-16 53 break;
b90edb33010bcf Jim Wilson 2018-10-16 54 case FUTEX_OP_ADD:
b90edb33010bcf Jim Wilson 2018-10-16 55 __futex_atomic_op("amoadd.w.aqrl %[ov],%z[op],%[u]",
b90edb33010bcf Jim Wilson 2018-10-16 56 ret, oldval, uaddr, oparg);
b90edb33010bcf Jim Wilson 2018-10-16 57 break;
b90edb33010bcf Jim Wilson 2018-10-16 58 case FUTEX_OP_OR:
b90edb33010bcf Jim Wilson 2018-10-16 59 __futex_atomic_op("amoor.w.aqrl %[ov],%z[op],%[u]",
b90edb33010bcf Jim Wilson 2018-10-16 60 ret, oldval, uaddr, oparg);
b90edb33010bcf Jim Wilson 2018-10-16 61 break;
b90edb33010bcf Jim Wilson 2018-10-16 62 case FUTEX_OP_ANDN:
b90edb33010bcf Jim Wilson 2018-10-16 63 __futex_atomic_op("amoand.w.aqrl %[ov],%z[op],%[u]",
b90edb33010bcf Jim Wilson 2018-10-16 64 ret, oldval, uaddr, ~oparg);
b90edb33010bcf Jim Wilson 2018-10-16 65 break;
b90edb33010bcf Jim Wilson 2018-10-16 66 case FUTEX_OP_XOR:
b90edb33010bcf Jim Wilson 2018-10-16 67 __futex_atomic_op("amoxor.w.aqrl %[ov],%z[op],%[u]",
b90edb33010bcf Jim Wilson 2018-10-16 68 ret, oldval, uaddr, oparg);
b90edb33010bcf Jim Wilson 2018-10-16 69 break;
b90edb33010bcf Jim Wilson 2018-10-16 70 default:
b90edb33010bcf Jim Wilson 2018-10-16 71 ret = -ENOSYS;
b90edb33010bcf Jim Wilson 2018-10-16 72 }
b90edb33010bcf Jim Wilson 2018-10-16 73
b90edb33010bcf Jim Wilson 2018-10-16 74 if (!ret)
b90edb33010bcf Jim Wilson 2018-10-16 75 *oval = oldval;
b90edb33010bcf Jim Wilson 2018-10-16 76
b90edb33010bcf Jim Wilson 2018-10-16 77 return ret;
b90edb33010bcf Jim Wilson 2018-10-16 78 }
b90edb33010bcf Jim Wilson 2018-10-16 79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH] platform/chrome: cros_ec: Make cros_ec_unregister() return void
by kernel test robot
Hi "Uwe,
I love your patch! Yet something to improve:
[auto build test ERROR on chrome-platform/for-next]
[also build test ERROR on v5.15-rc6 next-20211020]
[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/Uwe-Kleine-K-nig/platform-chrome...
base: https://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux.git for-next
config: arm64-randconfig-r001-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 92a0389b0425a9535a99a0ce13ba0eeda2bce7ad)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/d2c1956b7b20b3b031619b800d1a3fffe...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Uwe-Kleine-K-nig/platform-chrome-cros_ec-Make-cros_ec_unregister-return-void/20211020-044024
git checkout d2c1956b7b20b3b031619b800d1a3fffe98562fa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 errors (new ones prefixed by >>):
>> drivers/platform/chrome/cros_ec.c:311:2: error: void function 'cros_ec_unregister' should not return a value [-Wreturn-type]
return 0;
^ ~
1 error generated.
vim +/cros_ec_unregister +311 drivers/platform/chrome/cros_ec.c
4ab6174e8cdb00 drivers/mfd/cros_ec.c Simon Glass 2013-02-25 296
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 297 /**
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 298 * cros_ec_unregister() - Remove a ChromeOS EC.
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 299 * @ec_dev: Device to unregister.
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 300 *
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 301 * Call this to deregister a ChromeOS EC, then clean up any private data.
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 302 *
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 303 * Return: 0 on success or negative error code.
c9b465683a5542 drivers/platform/chrome/cros_ec.c Gwendal Grignou 2019-11-19 304 */
d2c1956b7b20b3 drivers/platform/chrome/cros_ec.c Uwe Kleine-König 2021-10-19 305 void cros_ec_unregister(struct cros_ec_device *ec_dev)
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 306 {
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 307 if (ec_dev->pd)
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 308 platform_device_unregister(ec_dev->pd);
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 309 platform_device_unregister(ec_dev->ec);
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 310
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 @311 return 0;
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 312 }
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 313 EXPORT_SYMBOL(cros_ec_unregister);
7aa703bb882438 drivers/mfd/cros_ec.c Enric Balletbo i Serra 2019-09-02 314
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[rppt-memblock:for-kernelci 2/2] drivers/of/of_reserved_mem.c:49:3: error: implicit declaration of function 'kmemleak_free_part_phys'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git for-kernelci
head: 36add14f3a5924c220da8fd7f5d8763ef993bff8
commit: 36add14f3a5924c220da8fd7f5d8763ef993bff8 [2/2] memblock: exclude NOMAP regions from kmemleak
config: arm-buildonly-randconfig-r006-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9660563950aaed54020bfdf0be07e7096a9553e4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git/commit/...
git remote add rppt-memblock git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock.git
git fetch --no-tags rppt-memblock for-kernelci
git checkout 36add14f3a5924c220da8fd7f5d8763ef993bff8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
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/of/of_reserved_mem.c:49:3: error: implicit declaration of function 'kmemleak_free_part_phys' [-Werror,-Wimplicit-function-declaration]
kmemleak_free_part_phys(base, size);
^
1 error generated.
vim +/kmemleak_free_part_phys +49 drivers/of/of_reserved_mem.c
30
31 static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size,
32 phys_addr_t align, phys_addr_t start, phys_addr_t end, bool nomap,
33 phys_addr_t *res_base)
34 {
35 phys_addr_t base;
36 int err = 0;
37
38 end = !end ? MEMBLOCK_ALLOC_ANYWHERE : end;
39 align = !align ? SMP_CACHE_BYTES : align;
40 base = memblock_phys_alloc_range(size, align, start, end);
41 if (!base)
42 return -ENOMEM;
43
44 *res_base = base;
45 if (nomap) {
46 err = memblock_mark_nomap(base, size);
47 if (err)
48 memblock_free(base, size);
> 49 kmemleak_free_part_phys(base, size);
50 }
51
52 return err;
53 }
54
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[helgaas-pci:for-linus 1/1] arch/x86/include/asm/pci_x86.h:142:8: warning: '__gnu_inline__' attribute only applies to functions
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git for-linus
head: f10507a66e36dde76d71bef8ce6e1c873f441616
commit: f10507a66e36dde76d71bef8ce6e1c873f441616 [1/1] x86/PCI: Ignore E820 reservations for bridge windows on newer systems
config: i386-buildonly-randconfig-r004-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 92a0389b0425a9535a99a0ce13ba0eeda2bce7ad)
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/helgaas/pci.git/commit/?i...
git remote add helgaas-pci https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git
git fetch --no-tags helgaas-pci for-linus
git checkout f10507a66e36dde76d71bef8ce6e1c873f441616
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from arch/x86/kernel/resource.c:4:
arch/x86/include/asm/pci_x86.h:99:8: error: unknown type name 'raw_spinlock_t'
extern raw_spinlock_t pci_config_lock;
^
arch/x86/include/asm/pci_x86.h:135:19: error: expected ';' after top level declarator
extern void __init dmi_check_pciprobe(void);
^
;
arch/x86/include/asm/pci_x86.h:136:19: error: expected ';' after top level declarator
extern void __init dmi_check_skip_isa_align(void);
^
;
arch/x86/include/asm/pci_x86.h:142:8: error: 'inline' can only appear on functions
static inline int __init pci_acpi_init(void)
^
include/linux/compiler_types.h:149:16: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
In file included from arch/x86/kernel/resource.c:4:
>> arch/x86/include/asm/pci_x86.h:142:8: warning: '__gnu_inline__' attribute only applies to functions [-Wignored-attributes]
include/linux/compiler_types.h:149:23: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
include/linux/compiler_attributes.h:152:56: note: expanded from macro '__gnu_inline'
#define __gnu_inline __attribute__((__gnu_inline__))
^
In file included from arch/x86/kernel/resource.c:4:
>> arch/x86/include/asm/pci_x86.h:142:8: warning: '__no_instrument_function__' attribute only applies to functions and Objective-C methods [-Wignored-attributes]
include/linux/compiler_types.h:149:58: note: expanded from macro 'inline'
#define inline inline __gnu_inline __inline_maybe_unused notrace
^
include/linux/compiler_types.h:129:34: note: expanded from macro 'notrace'
#define notrace __attribute__((__no_instrument_function__))
^
In file included from arch/x86/kernel/resource.c:4:
arch/x86/include/asm/pci_x86.h:142:20: error: redefinition of '__init' with a different type: 'int' vs 'void'
static inline int __init pci_acpi_init(void)
^
arch/x86/include/asm/pci_x86.h:136:13: note: previous declaration is here
extern void __init dmi_check_skip_isa_align(void);
^
arch/x86/include/asm/pci_x86.h:142:26: error: expected ';' after top level declarator
static inline int __init pci_acpi_init(void)
^
;
arch/x86/include/asm/pci_x86.h:148:12: error: redeclaration of '__init' with a different type: 'int' vs 'void'
extern int __init pcibios_init(void);
^
arch/x86/include/asm/pci_x86.h:136:13: note: previous declaration is here
extern void __init dmi_check_skip_isa_align(void);
^
arch/x86/include/asm/pci_x86.h:148:18: error: expected ';' after top level declarator
extern int __init pcibios_init(void);
^
;
arch/x86/include/asm/pci_x86.h:168:12: error: redeclaration of '__init' with a different type: 'int' vs 'void'
extern int __init pci_mmcfg_arch_init(void);
^
arch/x86/include/asm/pci_x86.h:136:13: note: previous declaration is here
extern void __init dmi_check_skip_isa_align(void);
^
arch/x86/include/asm/pci_x86.h:168:18: error: expected ';' after top level declarator
extern int __init pci_mmcfg_arch_init(void);
^
;
arch/x86/include/asm/pci_x86.h:169:19: error: expected ';' after top level declarator
extern void __init pci_mmcfg_arch_free(void);
^
;
arch/x86/include/asm/pci_x86.h:176:33: error: redeclaration of '__init' with a different type: 'struct pci_mmcfg_region *' vs 'void'
extern struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start,
^
arch/x86/include/asm/pci_x86.h:169:13: note: previous declaration is here
extern void __init pci_mmcfg_arch_free(void);
^
arch/x86/include/asm/pci_x86.h:176:39: error: expected ';' after top level declarator
extern struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start,
^
;
2 warnings and 13 errors generated.
vim +/__gnu_inline__ +142 arch/x86/include/asm/pci_x86.h
8dd779b19ce597 arch/x86/pci/pci.h Robert Richter 2008-07-02 137
8dd779b19ce597 arch/x86/pci/pci.h Robert Richter 2008-07-02 138 /* some common used subsys_initcalls */
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 139 #ifdef CONFIG_PCI
8dd779b19ce597 arch/x86/pci/pci.h Robert Richter 2008-07-02 140 extern int __init pci_acpi_init(void);
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 141 #else
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 @142 static inline int __init pci_acpi_init(void)
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 143 {
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 144 return -EINVAL;
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 145 }
5d32a66541c468 arch/x86/include/asm/pci_x86.h Sinan Kaya 2018-12-19 146 #endif
ab3b37937e8f4f arch/x86/include/asm/pci_x86.h Thomas Gleixner 2009-08-29 147 extern void __init pcibios_irq_init(void);
8dd779b19ce597 arch/x86/pci/pci.h Robert Richter 2008-07-02 148 extern int __init pcibios_init(void);
b72d0db9dd41da arch/x86/include/asm/pci_x86.h Thomas Gleixner 2009-08-29 149 extern int pci_legacy_init(void);
9325a28ce2fa7c arch/x86/include/asm/pci_x86.h Thomas Gleixner 2009-08-29 150 extern void pcibios_fixup_irqs(void);
5e544d618f0fb2 arch/i386/pci/pci.h Andi Kleen 2006-09-26 151
:::::: The code at line 142 was first introduced by commit
:::::: 5d32a66541c4683456507481a0944ed2985e75c7 PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set
:::::: TO: Sinan Kaya <okaya(a)kernel.org>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH 1/2] rbtree: Expose a test tree to userspace
by kernel test robot
Hi Mete,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[also build test WARNING on v5.15-rc6 next-20211019]
[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/Mete-Polat/rbtree-Test-against-a...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 519d81956ee277b4419c723adfb154603c2565ba
config: hexagon-randconfig-r033-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b37efed957ed0a0193d80020aefd55cb587dfc1f)
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/d73723d42ad47ca335de00e899a9e94b0...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mete-Polat/rbtree-Test-against-a-verified-oracle/20211019-171711
git checkout d73723d42ad47ca335de00e899a9e94b03d8b57d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=hexagon
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 >>):
>> lib/test_rbtree_interface.c:91:9: warning: no previous prototype for function 'cmd_exec' [-Wmissing-prototypes]
ssize_t cmd_exec(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)
^
lib/test_rbtree_interface.c:91:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
ssize_t cmd_exec(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)
^
static
>> lib/test_rbtree_interface.c:138:12: warning: no previous prototype for function 'rbt_if_init' [-Wmissing-prototypes]
int __init rbt_if_init(void)
^
lib/test_rbtree_interface.c:138:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int __init rbt_if_init(void)
^
static
>> lib/test_rbtree_interface.c:149:13: warning: no previous prototype for function 'rbt_if_exit' [-Wmissing-prototypes]
void __exit rbt_if_exit(void)
^
lib/test_rbtree_interface.c:149:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __exit rbt_if_exit(void)
^
static
3 warnings generated.
vim +/cmd_exec +91 lib/test_rbtree_interface.c
90
> 91 ssize_t cmd_exec(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)
92 {
93 int cmd;
94 struct data *data, *_n;
95 struct rb_node *node;
96 int ret = kstrtoint_from_user(ubuf, len, 10, &cmd);
97 if (ret)
98 return ret;
99
100 switch (cmd) {
101 case RESET:
102 rbtree_postorder_for_each_entry_safe(data, _n, &rbt, node)
103 kfree(data);
104 rbt = RB_ROOT;
105 break;
106 case INSERT:
107 data = kzalloc(sizeof(*data), GFP_KERNEL);
108 data->key = input_key;
109 rb_find_add(&data->node, &rbt, node_cmp);
110 break;
111 case DELETE:
112 node = rb_find(&input_key, &rbt, key_cmp);
113 if (!node)
114 break;
115 rb_erase(node, &rbt);
116 kfree(data_from_node(node));
117 break;
118 default:
119 return -EINVAL;
120 }
121 return len;
122 }
123
124 static int cmd_open(struct inode *inode, struct file *file)
125 {
126 return single_open(file, cmd_show, inode->i_private);
127 }
128
129 static const struct file_operations cmd_fops = {
130 .owner = THIS_MODULE,
131 .open = cmd_open,
132 .read = seq_read,
133 .write = cmd_exec,
134 .llseek = seq_lseek,
135 .release = single_release,
136 };
137
> 138 int __init rbt_if_init(void)
139 {
140 rbt_if_root = debugfs_create_dir("rbt_if", NULL);
141 if (IS_ERR(rbt_if_root))
142 return PTR_ERR(rbt_if_root);
143
144 debugfs_create_file("cmd", 0644, rbt_if_root, NULL, &cmd_fops);
145 debugfs_create_u64("key", 0644, rbt_if_root, &input_key);
146 return 0;
147 }
148
> 149 void __exit rbt_if_exit(void)
150 {
151 struct data *_n, *pos;
152 debugfs_remove_recursive(rbt_if_root);
153 rbtree_postorder_for_each_entry_safe(pos, _n, &rbt, node)
154 kfree(pos);
155
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months