drivers/scsi/mpt3sas/mpt3sas_base.o: warning: objtool: mpt3sas_halt_firmware()+0xe7: unreachable instruction
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Kees Cook <keescook(a)chromium.org>
CC: Andrew Morton <akpm(a)linux-foundation.org>
CC: Linux Memory Management List <linux-mm(a)kvack.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3e4fb4346c781068610d03c12b16c0cfb0fd24a3
commit: 0887a7ebc97770c7870abf3075a2e8cd502a7f52 ubsan: add trap instrumentation option
date: 6 months ago
config: x86_64-randconfig-r036-20201014 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a324d8f964bf421fa7d8b882b0f64ead28c4149c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/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 0887a7ebc97770c7870abf3075a2e8cd502a7f52
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/mpt3sas/mpt3sas_base.o: warning: objtool: mpt3sas_halt_firmware()+0xe7: unreachable instruction
--
>> drivers/scsi/mpt3sas/mpt3sas_config.o: warning: objtool: _config_request()+0xb2f: unreachable instruction
--
>> fs/hfs/brec.o: warning: objtool: hfs_brec_insert()+0x31f: unreachable instruction
--
>> drivers/scsi/aic7xxx/aic7xxx_core.o: warning: objtool: ahc_queue_scb()+0x11e: unreachable instruction
--
>> drivers/scsi/aic7xxx/aic7xxx_osm_pci.o: warning: objtool: ahc_pci_read_config()+0x52: unreachable instruction
--
>> fs/nfs/nfs4state.o: warning: objtool: nfs4_run_state_manager()+0x2b: unreachable instruction
--
>> fs/nfs/callback.o: warning: objtool: nfs4_callback_svc()+0x79: unreachable instruction
--
>> fs/jfs/super.o: warning: objtool: jfs_error()+0xc0: unreachable instruction
--
>> lib/cpumask.o: warning: objtool: alloc_bootmem_cpumask_var()+0x5e: unreachable instruction
--
>> fs/hfsplus/brec.o: warning: objtool: hfsplus_brec_insert()+0x341: unreachable instruction
--
>> drivers/misc/genwqe/card_dev.o: warning: objtool: genwqe_device_remove()+0x31b: unreachable instruction
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
fs/ntfs/attrib.o: warning: objtool: ntfs_attr_extend_allocation()+0x18f: unreachable instruction
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3e4fb4346c781068610d03c12b16c0cfb0fd24a3
commit: bd841d6154f5f41f8a32d3c1b0bc229e326e640a objtool: Fix CONFIG_UBSAN_TRAP unreachable warnings
date: 6 months ago
config: x86_64-randconfig-m001-20201015 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# 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 bd841d6154f5f41f8a32d3c1b0bc229e326e640a
# 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 warnings (new ones prefixed by >>):
>> fs/ntfs/attrib.o: warning: objtool: ntfs_attr_extend_allocation()+0x18f: unreachable instruction
--
>> fs/ntfs/super.o: warning: objtool: ntfs_fill_super()+0x2ce: unreachable instruction
--
>> drivers/ide/ide-tape.o: warning: objtool: idetape_queue_rw_tail()+0x4a: unreachable instruction
--
>> arch/x86/platform/pvh/enlighten.o: warning: objtool: xen_prepare_pvh()+0x108: unreachable instruction
--
>> mm/ksm.o: warning: objtool: ksm_scan_thread()+0x1f3: unreachable instruction
--
>> mm/vmscan.o: warning: objtool: shrink_page_list()+0x1cd: unreachable instruction
--
>> mm/compaction.o: warning: objtool: compact_zone()+0x27f: unreachable instruction
--
>> mm/vmalloc.o: warning: objtool: vm_map_ram()+0x5f: unreachable instruction
--
>> fs/mpage.o: warning: objtool: do_mpage_readpage()+0x656: unreachable instruction
--
>> fs/buffer.o: warning: objtool: create_page_buffers()+0x3d: unreachable instruction
--
>> fs/ext4/mballoc.o: warning: objtool: ext4_mb_normalize_request.constprop.0()+0xcf: unreachable instruction
..
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[chrome-os:chromeos-4.4 7/27] /tmp/sc1200wdt-580256.s:1487: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: 3c1b8a3d0b8d2303a67dcc84f6fa05a3ae828e5e
commit: b82a674c4ba10221969119258c91bd9e9f16d356 [7/27] UPSTREAM: r8152: fix runtime resume for linking change
config: x86_64-randconfig-a006-20201014 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7fe3c6dfede8d5781bd000741c3dea7088307a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout b82a674c4ba10221969119258c91bd9e9f16d356
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/watchdog/sc1200wdt.c:49:
In file included from include/linux/uaccess.h:4:
In file included from include/linux/sched.h:62:
In file included from include/linux/cgroup-defs.h:16:
include/linux/percpu-refcount.h:177:3: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
this_cpu_add(*percpu_count, nr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:526:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:397:11: note: expanded from macro '__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:144:1: note: expanded from here
this_cpu_add_8
^
arch/x86/include/asm/percpu.h:478:35: note: expanded from macro 'this_cpu_add_8'
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro 'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/watchdog/sc1200wdt.c:49:
In file included from include/linux/uaccess.h:4:
In file included from include/linux/sched.h:62:
In file included from include/linux/cgroup-defs.h:16:
include/linux/percpu-refcount.h:276:3: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
this_cpu_sub(*percpu_count, nr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:536:33: note: expanded from macro 'this_cpu_sub'
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:526:33: note: expanded from macro 'this_cpu_add'
#define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:397:11: note: expanded from macro '__pcpu_size_call'
case 8: stem##8(variable, __VA_ARGS__);break; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<scratch space>:304:1: note: expanded from here
this_cpu_add_8
^
arch/x86/include/asm/percpu.h:478:35: note: expanded from macro 'this_cpu_add_8'
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/percpu.h:130:31: note: expanded from macro 'percpu_add_op'
((val) == 1 || (val) == -1)) ? \
~~~ ^ ~~
In file included from drivers/watchdog/sc1200wdt.c:49:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:754:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:181:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/watchdog/sc1200wdt.c:49:
In file included from include/linux/uaccess.h:8:
arch/x86/include/asm/uaccess.h:773:26: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (likely(sz < 0 || sz >= n)) {
~~ ^ ~
include/linux/compiler.h:181:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
4 warnings generated.
/tmp/sc1200wdt-580256.s: Assembler messages:
>> /tmp/sc1200wdt-580256.s:1487: Warning: no instruction mnemonic suffix given and no register operands; using default for `bts'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[dhowells-fs:fscache-iter 72/76] fs/afs/write.c:28:38: error: too many arguments provided to function-like macro invocation
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
head: 09cf7c4c505054d930c99ecd93d384a72e73e529
commit: 57b26ca50d1d852952e2a28e8bc474915fb8839b [72/76] fixes 2
config: riscv-randconfig-r035-20201014 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7b4feea8e1bf520b34ad8c116abab6677344b74)
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://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-iter
git checkout 57b26ca50d1d852952e2a28e8bc474915fb8839b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
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 fs/afs/write.c:8:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:13:
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/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
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:148:
include/asm-generic/io.h:572:9: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return inl(addr);
^~~~~~~~~
arch/riscv/include/asm/io.h:56:76: note: expanded from macro 'inl'
#define inl(c) ({ u32 __v; __io_pbr(); __v = readl_cpu((void*)(PCI_IOBASE + (c))); __io_par(__v); __v; })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:89:76: note: expanded from macro 'readl_cpu'
#define readl_cpu(c) ({ u32 __r = le32_to_cpu((__force __le32)__raw_readl(c)); __r; })
^
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 fs/afs/write.c:8:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:13:
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/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
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:148:
include/asm-generic/io.h:580:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outb(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:58:68: note: expanded from macro 'outb'
#define outb(v,c) ({ __io_pbw(); writeb_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:91:52: note: expanded from macro 'writeb_cpu'
#define writeb_cpu(v, c) ((void)__raw_writeb((v), (c)))
^
In file included from fs/afs/write.c:8:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:13:
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/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
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:148:
include/asm-generic/io.h:588:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outw(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:59:68: note: expanded from macro 'outw'
#define outw(v,c) ({ __io_pbw(); writew_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:92:76: note: expanded from macro 'writew_cpu'
#define writew_cpu(v, c) ((void)__raw_writew((__force u16)cpu_to_le16(v), (c)))
^
In file included from fs/afs/write.c:8:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:13:
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/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
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:148:
include/asm-generic/io.h:596:2: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
outl(value, addr);
^~~~~~~~~~~~~~~~~
arch/riscv/include/asm/io.h:60:68: note: expanded from macro 'outl'
#define outl(v,c) ({ __io_pbw(); writel_cpu((v),(void*)(PCI_IOBASE + (c))); __io_paw(); })
~~~~~~~~~~ ^
arch/riscv/include/asm/mmio.h:93:76: note: expanded from macro 'writel_cpu'
#define writel_cpu(v, c) ((void)__raw_writel((__force u32)cpu_to_le32(v), (c)))
^
In file included from fs/afs/write.c:8:
In file included from include/linux/backing-dev.h:15:
In file included from include/linux/blkdev.h:13:
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/riscv/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:13:
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:148:
include/asm-generic/io.h:1017:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
~~~~~~~~~~ ^
>> fs/afs/write.c:28:38: error: too many arguments provided to function-like macro invocation
return fscache_set_page_dirty(page, afs_vnode_cache(vnode));
^
include/linux/fscache_helper.h:114:9: note: macro 'fscache_set_page_dirty' defined here
#define fscache_set_page_dirty(PAGE) (__set_page_dirty_nobuffers((PAGE)))
^
>> fs/afs/write.c:28:9: error: use of undeclared identifier 'fscache_set_page_dirty'; did you mean 'afs_set_page_dirty'?
return fscache_set_page_dirty(page, afs_vnode_cache(vnode));
^~~~~~~~~~~~~~~~~~~~~~
afs_set_page_dirty
fs/afs/write.c:24:5: note: 'afs_set_page_dirty' declared here
int afs_set_page_dirty(struct page *page)
^
>> fs/afs/write.c:28:9: warning: incompatible pointer to integer conversion returning 'int (struct page *)' from a function with result type 'int' [-Wint-conversion]
return fscache_set_page_dirty(page, afs_vnode_cache(vnode));
^~~~~~~~~~~~~~~~~~~~~~
8 warnings and 2 errors generated.
vim +28 fs/afs/write.c
16
17 static void afs_write_to_cache(struct afs_vnode *vnode,
18 loff_t a, loff_t b, loff_t c, loff_t i_size);
19
20 /*
21 * Mark a page as having been made dirty and thus needing writeback. We also
22 * need to pin the cache object to write back to.
23 */
24 int afs_set_page_dirty(struct page *page)
25 {
26 struct afs_vnode *vnode = AFS_FS_I(page->mapping->host);
27
> 28 return fscache_set_page_dirty(page, afs_vnode_cache(vnode));
29 }
30
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4b6c093e21d36bede0fd88fd0aeb3b03647260e4
commit: d2c8ac187fc922e73930a1b2f6a211e27f595d01 crypto: sa2ul - Add AEAD algorithm support
date: 3 weeks ago
config: arc-randconfig-r023-20200816 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout d2c8ac187fc922e73930a1b2f6a211e27f595d01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/dmaengine.h:8,
from drivers/crypto/sa2ul.c:12:
drivers/crypto/sa2ul.c: In function 'sa_sha_init':
drivers/crypto/sa2ul.c:1486:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
1486 | crypto_ahash_digestsize(tfm), (u64)rctx);
| ^
include/linux/dev_printk.h:123:47: note: in definition of macro 'dev_dbg'
123 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/crypto/sa2ul.c: In function 'sa_prepare_iopads':
>> drivers/crypto/sa2ul.c:432:1: warning: the frame size of 1076 bytes is larger than 1024 bytes [-Wframe-larger-than=]
432 | }
| ^
vim +432 drivers/crypto/sa2ul.c
407
408 static void sa_prepare_iopads(struct algo_data *data, const u8 *key,
409 u16 key_sz, __be32 *ipad, __be32 *opad)
410 {
411 SHASH_DESC_ON_STACK(shash, data->ctx->shash);
412 int block_size = crypto_shash_blocksize(data->ctx->shash);
413 int digest_size = crypto_shash_digestsize(data->ctx->shash);
414 u8 k_ipad[SHA1_BLOCK_SIZE];
415 u8 k_opad[SHA1_BLOCK_SIZE];
416
417 shash->tfm = data->ctx->shash;
418
419 prepare_kiopad(k_ipad, k_opad, key, key_sz);
420
421 memzero_explicit(ipad, block_size);
422 memzero_explicit(opad, block_size);
423
424 crypto_shash_init(shash);
425 crypto_shash_update(shash, k_ipad, block_size);
426 sa_export_shash(shash, block_size, digest_size, ipad);
427
428 crypto_shash_init(shash);
429 crypto_shash_update(shash, k_opad, block_size);
430
431 sa_export_shash(shash, block_size, digest_size, opad);
> 432 }
433
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
Re: [PATCH 2/2] nvmem: core: add OF_RECONFIG handler for nvmem cells
by kernel test robot
Hi Michael,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on v5.9 next-20201013]
[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/Michael-Auchter/nvmem-add-DT-ove...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 37187df45af7d28d27b5c130c23f407ca9dbefa2
config: x86_64-randconfig-a006-20201014 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project e7b4feea8e1bf520b34ad8c116abab6677344b74)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/a3191767e8e4e0480e36126ce93e6ab41...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-Auchter/nvmem-add-DT-overlay-support-for-cells/20201015-054223
git checkout a3191767e8e4e0480e36126ce93e6ab41ab6f498
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/nvmem/core.c:1701:42: error: use of undeclared identifier 'nvmem_of_notifier'; did you mean 'nvmem_notifier'?
WARN_ON(of_reconfig_notifier_register(&nvmem_of_notifier));
^~~~~~~~~~~~~~~~~
nvmem_notifier
include/asm-generic/bug.h:119:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^
drivers/nvmem/core.c:67:31: note: 'nvmem_notifier' declared here
static BLOCKING_NOTIFIER_HEAD(nvmem_notifier);
^
drivers/nvmem/core.c:1709:44: error: use of undeclared identifier 'nvmem_of_notifier'; did you mean 'nvmem_notifier'?
WARN_ON(of_reconfig_notifier_unregister(&nvmem_of_notifier));
^~~~~~~~~~~~~~~~~
nvmem_notifier
include/asm-generic/bug.h:119:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^
drivers/nvmem/core.c:67:31: note: 'nvmem_notifier' declared here
static BLOCKING_NOTIFIER_HEAD(nvmem_notifier);
^
2 errors generated.
vim +1701 drivers/nvmem/core.c
1691
1692 static int __init nvmem_init(void)
1693 {
1694 int rval;
1695
1696 rval = bus_register(&nvmem_bus_type);
1697 if (rval)
1698 return rval;
1699
1700 if (IS_ENABLED(CONFIG_OF_DYNAMIC))
> 1701 WARN_ON(of_reconfig_notifier_register(&nvmem_of_notifier));
1702
1703 return 0;
1704 }
1705
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months
[linux-next:master 13119/14891] arch/powerpc/platforms/pseries/hotplug-memory.c:615: undefined reference to `of_drconf_to_nid_single'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: f2fb1afc57304f9dd68c20a08270e287470af2eb
commit: 72cdd117c449896c707fc6cfe5b90978160697d0 [13119/14891] pseries/hotplug-memory: hot-add: skip redundant LMB lookup
config: powerpc64-randconfig-r014-20201014 (attached as .config)
compiler: powerpc64le-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/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 72cdd117c449896c707fc6cfe5b90978160697d0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
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 >>):
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_clock.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/ftrace.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/ring_buffer.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/ring_buffer_benchmark.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_output.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_seq.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_stat.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_printk.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/tracing_map.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_sched_switch.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_functions.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_preemptirq.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_irqsoff.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_hwlat.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_nop.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_stack.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_branch.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/blktrace.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_export.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_filter.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_trigger.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_inject.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_synth.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_events_hist.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/power-traces.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/rpm-traces.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_dynevent.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: warning: orphan section `.ctors.65435' from `kernel/trace/trace_benchmark.o' being placed in section `.ctors.65435'
powerpc64le-linux-ld: arch/powerpc/platforms/pseries/hotplug-memory.o: in function `dlpar_add_lmb':
>> arch/powerpc/platforms/pseries/hotplug-memory.c:615: undefined reference to `of_drconf_to_nid_single'
vim +615 arch/powerpc/platforms/pseries/hotplug-memory.c
597
598 static int dlpar_add_lmb(struct drmem_lmb *lmb)
599 {
600 unsigned long block_sz;
601 int nid, rc;
602
603 if (lmb->flags & DRCONF_MEM_ASSIGNED)
604 return -EINVAL;
605
606 rc = update_lmb_associativity_index(lmb);
607 if (rc) {
608 dlpar_release_drc(lmb->drc_index);
609 return rc;
610 }
611
612 block_sz = memory_block_size_bytes();
613
614 /* Find the node id for this LMB. Fake one if necessary. */
> 615 nid = of_drconf_to_nid_single(lmb);
616 if (nid < 0 || !node_possible(nid))
617 nid = first_online_node;
618
619 /* Add the memory */
620 rc = __add_memory(nid, lmb->base_addr, block_sz);
621 if (rc) {
622 invalidate_lmb_associativity_index(lmb);
623 return rc;
624 }
625
626 rc = dlpar_online_lmb(lmb);
627 if (rc) {
628 __remove_memory(nid, lmb->base_addr, block_sz);
629 invalidate_lmb_associativity_index(lmb);
630 } else {
631 lmb->flags |= DRCONF_MEM_ASSIGNED;
632 }
633
634 return rc;
635 }
636
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 11 months