Re: [RFC][PATCH 21/24] x86/entry: Disable stack-protector for IST entry C handlers
by Nick Desaulniers
On Fri, Nov 13, 2020 at 3:49 PM Segher Boessenkool
<segher(a)kernel.crashing.org> wrote:
>
> Hi!
>
> On Fri, Nov 13, 2020 at 10:59:26AM -0800, Nick Desaulniers wrote:
> > The `optimize` attribute is both non-portable across toolchains (hence
> > this warning)
>
> Like *all* GCC extensions.
>
> > and a little quirky in GCC.
>
> How so? Don't spread FUD please, say what *is* wrong, then people can
> decide for themselves whether they want it or not.
Spread FUD? Ard literally sent TO YOU:
https://lore.kernel.org/lkml/CAMj1kXHxX+u5-cN0v3SLdqZTSiKsWsFOvc2SC5=-Sca...,
and it was referenced again in
https://lore.kernel.org/lkml/20201028081123.GT2628@hirez.programming.kick....
Was it FUD when Ard sent it to you? Did you even read the link you
dropped from my reply, which is what Ard quoted?
https://gcc.gnu.org/wiki/FAQ#optimize_attribute_broken
If it wasn't FUD when Ard sent it, why is it suddenly when I do?
>
> We (GCC) do document it as:
>
> Not every optimization option that starts with the -f prefix
> specified by the attribute necessarily has an effect on the
> function. The 'optimize' attribute should be used for debugging
> purposes only. It is not suitable in production code.
>
> The optimize attribute is for setting/resetting flags on a function
> granularity. Not all flags can be flipped per function. The SSP flags
> work fine though, AFAIK. But don't use it for production, there are no
> guarantees.
>
> Cheers,
>
>
> Segher
--
Thanks,
~Nick Desaulniers
1 year, 10 months
ld.lld: error: main.c:(.text+0xDC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: "Steven Rostedt (VMware)" <rostedt(a)goodmis.org>
CC: Ingo Molnar <mingo(a)kernel.org>
CC: "Peter Zijlstra (Intel)" <peterz(a)infradead.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9e6a39eae450b81c8b2c8cbbfbdf8218e9b40c81
commit: d25e37d89dd2f41d7acae0429039d2f0ae8b4a07 tracepoint: Optimize using static_call()
date: 2 months ago
config: riscv-randconfig-r035-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e0c35655b6e8186baef8840b26ba4090503b554)
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/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 d25e37d89dd2f41d7acae0429039d2f0ae8b4a07
# 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 errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0xA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x40): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x4A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x10C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.init.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x6E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xDC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x152): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x2CE): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x41C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x564): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x66A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x7BC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x8CC): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xEB0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0xF0A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xFC8): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v4 3/5] scsi: qla2xxx: Introduce DEFINE_SHOW_STORE_ATTRIBUTE for debugfs
by kernel test robot
Hi Luo,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on mkp-scsi/for-next]
[also build test ERROR on scsi/for-next linus/master v5.10-rc3 next-20201113]
[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/Luo-Jiaxing/Introduce-a-new-help...
base: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/cdd2edc795fcbb643f104476d99a52d0e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Luo-Jiaxing/Introduce-a-new-helper-macro-DEFINE_SHOW_STORE_ATTRIBUTE-at-seq_file-c/20201112-150927
git checkout cdd2edc795fcbb643f104476d99a52d0e95bb229
# 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 >>):
drivers/scsi/qla2xxx/qla_dfs.c: In function 'qla2x00_dfs_setup':
>> drivers/scsi/qla2xxx/qla_dfs.c:558:32: error: 'qla_dfs_naqp_ops' undeclared (first use in this function); did you mean 'qla_dfs_naqp_fops'?
558 | 0400, ha->dfs_dir, vha, &qla_dfs_naqp_ops);
| ^~~~~~~~~~~~~~~~
| qla_dfs_naqp_fops
drivers/scsi/qla2xxx/qla_dfs.c:558:32: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/scsi/scsi_host.h:10,
from drivers/scsi/qla2xxx/qla_def.h:30,
from drivers/scsi/qla2xxx/qla_dfs.c:6:
At top level:
drivers/scsi/qla2xxx/qla_dfs.c:512:29: warning: 'qla_dfs_naqp_fops' defined but not used [-Wunused-const-variable=]
512 | DEFINE_SHOW_STORE_ATTRIBUTE(qla_dfs_naqp);
| ^~~~~~~~~~~~
include/linux/seq_file.h:200:37: note: in definition of macro 'DEFINE_SHOW_STORE_ATTRIBUTE'
200 | static const struct file_operations __name ## _fops = { \
| ^~~~~~
vim +558 drivers/scsi/qla2xxx/qla_dfs.c
513
514 int
515 qla2x00_dfs_setup(scsi_qla_host_t *vha)
516 {
517 struct qla_hw_data *ha = vha->hw;
518
519 if (!IS_QLA25XX(ha) && !IS_QLA81XX(ha) && !IS_QLA83XX(ha) &&
520 !IS_QLA27XX(ha) && !IS_QLA28XX(ha))
521 goto out;
522 if (!ha->fce)
523 goto out;
524
525 if (qla2x00_dfs_root)
526 goto create_dir;
527
528 atomic_set(&qla2x00_dfs_root_count, 0);
529 qla2x00_dfs_root = debugfs_create_dir(QLA2XXX_DRIVER_NAME, NULL);
530
531 create_dir:
532 if (ha->dfs_dir)
533 goto create_nodes;
534
535 mutex_init(&ha->fce_mutex);
536 ha->dfs_dir = debugfs_create_dir(vha->host_str, qla2x00_dfs_root);
537
538 atomic_inc(&qla2x00_dfs_root_count);
539
540 create_nodes:
541 ha->dfs_fw_resource_cnt = debugfs_create_file("fw_resource_count",
542 S_IRUSR, ha->dfs_dir, vha, &qla_dfs_fw_resource_cnt_fops);
543
544 ha->dfs_tgt_counters = debugfs_create_file("tgt_counters", S_IRUSR,
545 ha->dfs_dir, vha, &qla_dfs_tgt_counters_fops);
546
547 ha->tgt.dfs_tgt_port_database = debugfs_create_file("tgt_port_database",
548 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_port_database_fops);
549
550 ha->dfs_fce = debugfs_create_file("fce", S_IRUSR, ha->dfs_dir, vha,
551 &dfs_fce_ops);
552
553 ha->tgt.dfs_tgt_sess = debugfs_create_file("tgt_sess",
554 S_IRUSR, ha->dfs_dir, vha, &qla2x00_dfs_tgt_sess_fops);
555
556 if (IS_QLA27XX(ha) || IS_QLA83XX(ha) || IS_QLA28XX(ha)) {
557 ha->tgt.dfs_naqp = debugfs_create_file("naqp",
> 558 0400, ha->dfs_dir, vha, &qla_dfs_naqp_ops);
559 if (!ha->tgt.dfs_naqp) {
560 ql_log(ql_log_warn, vha, 0xd011,
561 "Unable to create debugFS naqp node.\n");
562 goto out;
563 }
564 }
565 vha->dfs_rport_root = debugfs_create_dir("rports", ha->dfs_dir);
566 if (!vha->dfs_rport_root) {
567 ql_log(ql_log_warn, vha, 0xd012,
568 "Unable to create debugFS rports node.\n");
569 goto out;
570 }
571 out:
572 return 0;
573 }
574
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[thierryreding:for-5.11/suspend 18/23] drivers/usb/host/xhci-tegra.c:2179:8: error: implicit declaration of function 'tegra_xusb_enter_elpg'; did you mean
by kernel test robot
tree: https://github.com/thierryreding/linux for-5.11/suspend
head: 00480d8a4afba78936d3a3ca2c4272538affb838
commit: b8561a2e4c1332363e61ebf6f2b04a8aaee8cfeb [18/23] xhci: tegra: Enable ELPG for runtime/system PM
config: arm64-randconfig-r015-20201113 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/thierryreding/linux/commit/b8561a2e4c1332363e61ebf6f2b...
git remote add thierryreding https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-5.11/suspend
git checkout b8561a2e4c1332363e61ebf6f2b04a8aaee8cfeb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 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/usb/host/xhci-tegra.c: In function 'tegra_xusb_runtime_suspend':
>> drivers/usb/host/xhci-tegra.c:2179:8: error: implicit declaration of function 'tegra_xusb_enter_elpg'; did you mean 'tegra_pm_enter_lp2'? [-Werror=implicit-function-declaration]
2179 | ret = tegra_xusb_enter_elpg(tegra, true);
| ^~~~~~~~~~~~~~~~~~~~~
| tegra_pm_enter_lp2
drivers/usb/host/xhci-tegra.c: In function 'tegra_xusb_runtime_resume':
>> drivers/usb/host/xhci-tegra.c:2191:8: error: implicit declaration of function 'tegra_xusb_exit_elpg'; did you mean 'tegra_xusb_get_phy'? [-Werror=implicit-function-declaration]
2191 | err = tegra_xusb_exit_elpg(tegra, true);
| ^~~~~~~~~~~~~~~~~~~~
| tegra_xusb_get_phy
At top level:
drivers/usb/host/xhci-tegra.c:1285:13: warning: 'is_host_mode_phy' defined but not used [-Wunused-function]
1285 | static bool is_host_mode_phy(struct tegra_xusb *tegra, unsigned int phy_type, unsigned int index)
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +2179 drivers/usb/host/xhci-tegra.c
2170
2171 #ifdef CONFIG_PM
2172 static int tegra_xusb_runtime_suspend(struct device *dev)
2173 {
2174 struct tegra_xusb *tegra = dev_get_drvdata(dev);
2175 int ret;
2176
2177 synchronize_irq(tegra->mbox_irq);
2178 mutex_lock(&tegra->lock);
> 2179 ret = tegra_xusb_enter_elpg(tegra, true);
2180 mutex_unlock(&tegra->lock);
2181
2182 return ret;
2183 }
2184
2185 static int tegra_xusb_runtime_resume(struct device *dev)
2186 {
2187 struct tegra_xusb *tegra = dev_get_drvdata(dev);
2188 int err;
2189
2190 mutex_lock(&tegra->lock);
> 2191 err = tegra_xusb_exit_elpg(tegra, true);
2192 mutex_unlock(&tegra->lock);
2193
2194 return err;
2195 }
2196 #endif
2197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Feng Tang <feng.tang(a)intel.com>
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: 673cb932b688ad3b03de89dc2b0b97c75ad47112
commit: 09c60546f04f732d194a171b3a4ccc9ae1e704ba ./Makefile: add debug option to enable function aligned on 32 bytes
date: 3 months ago
config: riscv-randconfig-r035-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e0c35655b6e8186baef8840b26ba4090503b554)
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/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 09c60546f04f732d194a171b3a4ccc9ae1e704ba
# 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 errors (new ones prefixed by >>):
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0xA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x40): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x4A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.head.text+0x8A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: arch/riscv/kernel/head.o:(.init.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x17C): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x2CA): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x412): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x518): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x66A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x77A): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xD56): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xDB0): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xE6E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xF28): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0xFE6): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
>> ld.lld: error: main.c:(.text+0x104E): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: main.c:(.text+0x10A4): relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax
ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
Re: [PATCH v2 05/19] powerpc: interrupt handler wrapper functions
by kernel test robot
Hi Nicholas,
I love your patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on v5.10-rc3 next-20201113]
[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/Nicholas-Piggin/powerpc-interrup...
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-randconfig-r003-20201113 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 9e0c35655b6e8186baef8840b26ba4090503b554)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/0day-ci/linux/commit/36805b0ebcf1760588efad86b8b5db534...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Nicholas-Piggin/powerpc-interrupt-wrappers/20201111-183954
git checkout 36805b0ebcf1760588efad86b8b5db5344329148
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:16:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:542:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kvm/booke.c:15:
In file included from include/linux/kvm_host.h:7:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:18:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:543:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kvm/booke.c:15:
In file included from include/linux/kvm_host.h:7:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:20:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:544:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kvm/booke.c:15:
In file included from include/linux/kvm_host.h:7:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:22:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:545:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from arch/powerpc/kvm/booke.c:15:
In file included from include/linux/kvm_host.h:7:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:604:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:601:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:24:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:546:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
arch/powerpc/kvm/booke.c:600:6: warning: no previous prototype for function 'kvmppc_watchdog_func' [-Wmissing-prototypes]
void kvmppc_watchdog_func(struct timer_list *t)
^
arch/powerpc/kvm/booke.c:600:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvmppc_watchdog_func(struct timer_list *t)
^
static
>> arch/powerpc/kvm/booke.c:922:3: error: implicit declaration of function 'timer_interrupt' [-Werror,-Wimplicit-function-declaration]
timer_interrupt(®s);
^
arch/powerpc/kvm/booke.c:922:3: note: did you mean 'hrtimer_interrupt'?
include/linux/hrtimer.h:319:13: note: 'hrtimer_interrupt' declared here
extern void hrtimer_interrupt(struct clock_event_device *dev);
^
>> arch/powerpc/kvm/booke.c:935:3: error: implicit declaration of function 'performance_monitor_exception' [-Werror,-Wimplicit-function-declaration]
performance_monitor_exception(®s);
^
>> arch/powerpc/kvm/booke.c:942:3: error: implicit declaration of function 'unknown_exception' [-Werror,-Wimplicit-function-declaration]
unknown_exception(®s);
^
arch/powerpc/kvm/booke.c:984:5: warning: no previous prototype for function 'kvmppc_handle_exit' [-Wmissing-prototypes]
int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr)
^
arch/powerpc/kvm/booke.c:984:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr)
^
static
arch/powerpc/kvm/booke.c:1909:6: warning: no previous prototype for function 'kvm_guest_protect_msr' [-Wmissing-prototypes]
void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set)
^
arch/powerpc/kvm/booke.c:1909:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set)
^
static
9 warnings and 3 errors generated.
vim +/timer_interrupt +922 arch/powerpc/kvm/booke.c
4e642ccbd6a3f14 Alexander Graf 2012-02-20 903
6328e593c3df5e8 Bharat Bhushan 2012-06-20 904 /*
6328e593c3df5e8 Bharat Bhushan 2012-06-20 905 * For interrupts needed to be handled by host interrupt handlers,
6328e593c3df5e8 Bharat Bhushan 2012-06-20 906 * corresponding host handler are called from here in similar way
6328e593c3df5e8 Bharat Bhushan 2012-06-20 907 * (but not exact) as they are called from low level handler
6328e593c3df5e8 Bharat Bhushan 2012-06-20 908 * (such as from arch/powerpc/kernel/head_fsl_booke.S).
6328e593c3df5e8 Bharat Bhushan 2012-06-20 909 */
4e642ccbd6a3f14 Alexander Graf 2012-02-20 910 static void kvmppc_restart_interrupt(struct kvm_vcpu *vcpu,
4e642ccbd6a3f14 Alexander Graf 2012-02-20 911 unsigned int exit_nr)
4e642ccbd6a3f14 Alexander Graf 2012-02-20 912 {
4e642ccbd6a3f14 Alexander Graf 2012-02-20 913 struct pt_regs regs;
73e75b416ffcfa3 Hollis Blanchard 2008-12-02 914
d30f6e480055e5b Scott Wood 2011-12-20 915 switch (exit_nr) {
d30f6e480055e5b Scott Wood 2011-12-20 916 case BOOKE_INTERRUPT_EXTERNAL:
4e642ccbd6a3f14 Alexander Graf 2012-02-20 917 kvmppc_fill_pt_regs(®s);
4e642ccbd6a3f14 Alexander Graf 2012-02-20 918 do_IRQ(®s);
d30f6e480055e5b Scott Wood 2011-12-20 919 break;
d30f6e480055e5b Scott Wood 2011-12-20 920 case BOOKE_INTERRUPT_DECREMENTER:
4e642ccbd6a3f14 Alexander Graf 2012-02-20 921 kvmppc_fill_pt_regs(®s);
4e642ccbd6a3f14 Alexander Graf 2012-02-20 @922 timer_interrupt(®s);
d30f6e480055e5b Scott Wood 2011-12-20 923 break;
5f17ce8b954a2ff Tiejun Chen 2013-05-13 924 #if defined(CONFIG_PPC_DOORBELL)
d30f6e480055e5b Scott Wood 2011-12-20 925 case BOOKE_INTERRUPT_DOORBELL:
4e642ccbd6a3f14 Alexander Graf 2012-02-20 926 kvmppc_fill_pt_regs(®s);
4e642ccbd6a3f14 Alexander Graf 2012-02-20 927 doorbell_exception(®s);
d30f6e480055e5b Scott Wood 2011-12-20 928 break;
d30f6e480055e5b Scott Wood 2011-12-20 929 #endif
d30f6e480055e5b Scott Wood 2011-12-20 930 case BOOKE_INTERRUPT_MACHINE_CHECK:
d30f6e480055e5b Scott Wood 2011-12-20 931 /* FIXME */
d30f6e480055e5b Scott Wood 2011-12-20 932 break;
7cc1e8ee78f469e Alexander Graf 2012-02-22 933 case BOOKE_INTERRUPT_PERFORMANCE_MONITOR:
7cc1e8ee78f469e Alexander Graf 2012-02-22 934 kvmppc_fill_pt_regs(®s);
7cc1e8ee78f469e Alexander Graf 2012-02-22 @935 performance_monitor_exception(®s);
7cc1e8ee78f469e Alexander Graf 2012-02-22 936 break;
6328e593c3df5e8 Bharat Bhushan 2012-06-20 937 case BOOKE_INTERRUPT_WATCHDOG:
6328e593c3df5e8 Bharat Bhushan 2012-06-20 938 kvmppc_fill_pt_regs(®s);
6328e593c3df5e8 Bharat Bhushan 2012-06-20 939 #ifdef CONFIG_BOOKE_WDT
6328e593c3df5e8 Bharat Bhushan 2012-06-20 940 WatchdogException(®s);
6328e593c3df5e8 Bharat Bhushan 2012-06-20 941 #else
6328e593c3df5e8 Bharat Bhushan 2012-06-20 @942 unknown_exception(®s);
6328e593c3df5e8 Bharat Bhushan 2012-06-20 943 #endif
6328e593c3df5e8 Bharat Bhushan 2012-06-20 944 break;
6328e593c3df5e8 Bharat Bhushan 2012-06-20 945 case BOOKE_INTERRUPT_CRITICAL:
845ac985cf8e3d5 Tudor Laurentiu 2015-05-18 946 kvmppc_fill_pt_regs(®s);
6328e593c3df5e8 Bharat Bhushan 2012-06-20 947 unknown_exception(®s);
6328e593c3df5e8 Bharat Bhushan 2012-06-20 948 break;
ce11e48b7fdd256 Bharat Bhushan 2013-07-04 949 case BOOKE_INTERRUPT_DEBUG:
ce11e48b7fdd256 Bharat Bhushan 2013-07-04 950 /* Save DBSR before preemption is enabled */
ce11e48b7fdd256 Bharat Bhushan 2013-07-04 951 vcpu->arch.dbsr = mfspr(SPRN_DBSR);
ce11e48b7fdd256 Bharat Bhushan 2013-07-04 952 kvmppc_clear_dbsr();
ce11e48b7fdd256 Bharat Bhushan 2013-07-04 953 break;
d30f6e480055e5b Scott Wood 2011-12-20 954 }
4e642ccbd6a3f14 Alexander Graf 2012-02-20 955 }
4e642ccbd6a3f14 Alexander Graf 2012-02-20 956
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
mtk_iommu.c:undefined reference to `devm_ioremap_resource'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 673cb932b688ad3b03de89dc2b0b97c75ad47112
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers
date: 8 months ago
config: s390-randconfig-r022-20201113 (attached as .config)
compiler: s390-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/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 e93a1695d7fb551376b1c1220a267d032b6ad159
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 errors (new ones prefixed by >>):
s390-linux-ld: irq-al-fic.c:(.init.text+0x28c): undefined reference to `iounmap'
s390-linux-ld: drivers/irqchip/irq-jcore-aic.o: in function `aic_irq_of_init':
irq-jcore-aic.c:(.init.text+0x86): undefined reference to `of_iomap'
s390-linux-ld: irq-jcore-aic.c:(.init.text+0xac): undefined reference to `iounmap'
s390-linux-ld: drivers/irqchip/irq-renesas-irqc.o: in function `irqc_probe':
irq-renesas-irqc.c:(.text+0x26a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/irqchip/irq-renesas-h8s.o: in function `h8s_intc_of_init':
irq-renesas-h8s.c:(.init.text+0xcc): undefined reference to `of_iomap'
s390-linux-ld: drivers/irqchip/irq-uniphier-aidet.o: in function `uniphier_aidet_probe':
irq-uniphier-aidet.c:(.text+0x356): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/broadcom/phy-bcm-cygnus-pcie.o: in function `cygnus_pcie_phy_probe':
phy-bcm-cygnus-pcie.c:(.text+0xb4): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/broadcom/phy-bcm-ns2-usbdrd.o: in function `ns2_drd_phy_probe':
phy-bcm-ns2-usbdrd.c:(.text+0x2ee): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x324): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x35a): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-bcm-ns2-usbdrd.c:(.text+0x390): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/broadcom/phy-brcm-sata.o:phy-brcm-sata.c:(.text+0x11c): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/phy/marvell/phy-mvebu-a3700-utmi.o: in function `mvebu_a3700_utmi_phy_probe':
phy-mvebu-a3700-utmi.c:(.text+0x3bc): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-armada38x-comphy.o: in function `a38x_comphy_probe':
phy-armada38x-comphy.c:(.text+0x126): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/marvell/phy-pxa-usb.o: in function `pxa_usb_phy_probe':
phy-pxa-usb.c:(.text+0x2ce): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/st/phy-stm32-usbphyc.o: in function `stm32_usbphyc_probe':
phy-stm32-usbphyc.c:(.text+0x358): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/ti/phy-omap-control.o: in function `omap_control_phy_probe':
phy-omap-control.c:(.text+0x94): undefined reference to `devm_ioremap_resource'
s390-linux-ld: phy-omap-control.c:(.text+0xca): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/phy/ti/phy-omap-control.o:phy-omap-control.c:(.text+0x118): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/char/ipmi/bt-bmc.o: in function `bt_bmc_probe':
bt-bmc.c:(.text+0xa14): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/soc/bcm/brcmstb/common.o: in function `brcmstb_soc_device_early_init':
common.c:(.init.text+0x6e): undefined reference to `of_iomap'
s390-linux-ld: common.c:(.init.text+0xaa): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/bcm/brcmstb/biuctrl.o: in function `brcmstb_biuctrl_init':
biuctrl.c:(.init.text+0x86): undefined reference to `of_iomap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_close':
dpaa2-console.c:(.text+0x74): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_console_probe':
dpaa2-console.c:(.text+0xc8): undefined reference to `of_address_to_resource'
s390-linux-ld: drivers/soc/fsl/dpaa2-console.o: in function `dpaa2_generic_console_open.isra.0.constprop.0':
dpaa2-console.c:(.text+0x17e): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x1a6): undefined reference to `iounmap'
s390-linux-ld: dpaa2-console.c:(.text+0x1ba): undefined reference to `ioremap'
s390-linux-ld: dpaa2-console.c:(.text+0x210): undefined reference to `iounmap'
s390-linux-ld: drivers/soc/mediatek/mtk-pmic-wrap.o: in function `pwrap_probe':
mtk-pmic-wrap.c:(.text+0x146e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: mtk-pmic-wrap.c:(.text+0x14fe): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/mediatek/mtk-scpsys.o: in function `scpsys_probe':
mtk-scpsys.c:(.text+0x35c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/amlogic/meson-canvas.o: in function `meson_canvas_probe':
meson-canvas.c:(.text+0x5e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/amlogic/meson-clk-measure.o: in function `meson_msr_probe':
meson-clk-measure.c:(.text+0xde): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/soc/qcom/qcom-geni-se.o:qcom-geni-se.c:(.text+0x64): more undefined references to `devm_ioremap_resource' follow
s390-linux-ld: drivers/regulator/stm32-vrefbuf.o: in function `stm32_vrefbuf_probe':
stm32-vrefbuf.c:(.text+0x2e0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-axs10x.o: in function `axs10x_reset_probe':
reset-axs10x.c:(.text+0xce): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-brcmstb-rescal.o: in function `brcm_rescal_reset_probe':
reset-brcmstb-rescal.c:(.text+0x13e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-lpc18xx.o: in function `lpc18xx_rgu_probe':
reset-lpc18xx.c:(.text+0x23e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson.o: in function `meson_reset_probe':
reset-meson.c:(.text+0x8e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-meson-audio-arb.o: in function `meson_audio_arb_probe':
reset-meson-audio-arb.c:(.text+0x1b6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-npcm.o: in function `npcm_rc_probe':
reset-npcm.c:(.text+0x10c): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/reset/reset-qcom-aoss.o: in function `qcom_aoss_reset_probe':
reset-qcom-aoss.c:(.text+0x1b8): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-qcom-pdc.o: in function `qcom_pdc_reset_probe':
reset-qcom-pdc.c:(.text+0x13e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-simple.o: in function `reset_simple_probe':
reset-simple.c:(.text+0x180): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/reset/reset-uniphier-glue.o: in function `uniphier_glue_reset_probe':
reset-uniphier-glue.c:(.text+0x122): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_detach':
main.c:(.text+0x9a): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0xe0): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_attach':
main.c:(.text+0x31e): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x35e): undefined reference to `iounmap'
s390-linux-ld: drivers/tty/ipwireless/main.o: in function `ipwireless_probe':
main.c:(.text+0x4ea): undefined reference to `ioremap'
s390-linux-ld: main.c:(.text+0x59e): undefined reference to `ioremap'
s390-linux-ld: main.c:(.text+0x5f0): undefined reference to `iounmap'
s390-linux-ld: main.c:(.text+0x636): undefined reference to `iounmap'
s390-linux-ld: drivers/char/hw_random/meson-rng.o: in function `meson_rng_probe':
meson-rng.c:(.text+0x72): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/mtk-rng.o: in function `mtk_rng_probe':
mtk-rng.c:(.text+0x246): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/ks-sa-rng.o: in function `ks_sa_rng_probe':
ks-sa-rng.c:(.text+0x2fa): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/hw_random/npcm-rng.o: in function `npcm_rng_probe':
npcm-rng.c:(.text+0x1fc): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/char/xillybus/xillybus_of.o: in function `xilly_drv_probe':
xillybus_of.c:(.text+0x1f0): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/iommu/mtk_iommu.o: in function `mtk_iommu_probe':
>> mtk_iommu.c:(.text+0xb6c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/iommu/qcom_iommu.o: in function `qcom_iommu_ctx_probe':
qcom_iommu.c:(.text+0x1c6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/iommu/qcom_iommu.o: in function `qcom_iommu_device_probe':
qcom_iommu.c:(.text+0x39c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mfd/syscon.o: in function `syscon_probe':
syscon.c:(.text+0xa6): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/mfd/syscon.o: in function `of_syscon_register.isra.0':
syscon.c:(.text+0x19e): undefined reference to `of_address_to_resource'
s390-linux-ld: syscon.c:(.text+0x1c0): undefined reference to `ioremap'
s390-linux-ld: syscon.c:(.text+0x2f4): undefined reference to `iounmap'
s390-linux-ld: drivers/mfd/stm32-timers.o: in function `stm32_timers_probe':
stm32-timers.c:(.text+0xd2): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/net/phy/mdio-mux-bcm-iproc.o: in function `mdio_mux_iproc_probe':
mdio-mux-bcm-iproc.c:(.text+0x2ee): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/net/phy/mdio-sun4i.o: in function `sun4i_mdio_probe':
mdio-sun4i.c:(.text+0x29e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_exit':
arc-rimi.c:(.exit.text+0x3c): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `arc_rimi_init':
arc-rimi.c:(.init.text+0x2b8): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x358): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x548): undefined reference to `iounmap'
s390-linux-ld: arc-rimi.c:(.init.text+0x5e6): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.init.text+0x6ea): undefined reference to `iounmap'
s390-linux-ld: drivers/net/arcnet/arc-rimi.o: in function `check_mirror':
arc-rimi.c:(.text.unlikely+0x54): undefined reference to `ioremap'
s390-linux-ld: arc-rimi.c:(.text.unlikely+0x76): undefined reference to `iounmap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `set_cis_map':
cistpl.c:(.text+0x348): undefined reference to `ioremap'
s390-linux-ld: cistpl.c:(.text+0x37e): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x3a6): undefined reference to `iounmap'
s390-linux-ld: cistpl.c:(.text+0x3b8): undefined reference to `ioremap'
s390-linux-ld: drivers/pcmcia/cistpl.o: in function `release_cis_mem':
cistpl.c:(.text+0xce0): undefined reference to `iounmap'
s390-linux-ld: drivers/input/serio/apbps2.o: in function `apbps2_of_probe':
apbps2.c:(.text+0x25e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/serio/olpc_apsp.o: in function `olpc_apsp_probe':
olpc_apsp.c:(.text+0x294): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/input/touchscreen/imx6ul_tsc.o: in function `imx6ul_tsc_probe':
imx6ul_tsc.c:(.text+0x448): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: imx6ul_tsc.c:(.text+0x46a): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/thermal/broadcom/ns-thermal.o: in function `ns_thermal_remove':
ns-thermal.c:(.text+0x2c): undefined reference to `iounmap'
s390-linux-ld: drivers/thermal/broadcom/ns-thermal.o: in function `ns_thermal_probe':
ns-thermal.c:(.text+0x9c): undefined reference to `of_iomap'
s390-linux-ld: ns-thermal.c:(.text+0xa8): undefined reference to `iounmap'
s390-linux-ld: drivers/thermal/tango_thermal.o: in function `tango_thermal_probe':
tango_thermal.c:(.text+0x5e): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/thermal/zx2967_thermal.o: in function `zx2967_thermal_probe':
zx2967_thermal.c:(.text+0xb6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/watchdog/asm9260_wdt.o: in function `asm9260_wdt_probe':
asm9260_wdt.c:(.text+0x2a2): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/omap_wdt.o: in function `omap_wdt_probe':
omap_wdt.c:(.text+0x68e): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/ftwdt010_wdt.o: in function `ftwdt010_wdt_probe':
ftwdt010_wdt.c:(.text+0x164): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/ep93xx_wdt.o: in function `ep93xx_wdt_probe':
ep93xx_wdt.c:(.text+0xac): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/davinci_wdt.o: in function `davinci_wdt_probe':
davinci_wdt.c:(.text+0x2aa): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/watchdog/sunxi_wdt.o:sunxi_wdt.c:(.text+0x2fa): more undefined references to `devm_platform_ioremap_resource' follow
s390-linux-ld: drivers/watchdog/mv64x60_wdt.o: in function `mv64x60_wdt_probe':
mv64x60_wdt.c:(.text+0x384): undefined reference to `devm_ioremap'
s390-linux-ld: drivers/crypto/atmel-aes.o: in function `atmel_aes_probe':
atmel-aes.c:(.text+0xa46): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-sha.o: in function `atmel_sha_probe':
atmel-sha.c:(.text+0x776): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/atmel-tdes.o: in function `atmel_tdes_probe':
atmel-tdes.c:(.text+0xbfe): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/crypto/mediatek/mtk-platform.o: in function `mtk_crypto_probe':
mtk-platform.c:(.text+0x704): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/crypto/qcom-rng.o: in function `qcom_rng_probe':
qcom-rng.c:(.text+0xb4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_init':
timer-of.c:(.init.text+0x8c): undefined reference to `of_iomap'
s390-linux-ld: timer-of.c:(.init.text+0x2a6): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/timer-of.o: in function `timer_of_cleanup':
timer-of.c:(.init.text+0x3d2): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/bcm2835_timer.o: in function `bcm2835_timer_init':
bcm2835_timer.c:(.init.text+0x48): undefined reference to `of_iomap'
s390-linux-ld: bcm2835_timer.c:(.init.text+0x1e8): undefined reference to `iounmap'
s390-linux-ld: drivers/clocksource/mxs_timer.o: in function `mxs_timer_init':
mxs_timer.c:(.init.text+0x3e): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/bcm_kona_timer.o: in function `kona_timer_init':
bcm_kona_timer.c:(.init.text+0x9a): undefined reference to `of_iomap'
s390-linux-ld: drivers/clocksource/armv7m_systick.o: in function `system_timer_of_register':
armv7m_systick.c:(.init.text+0x48): undefined reference to `of_iomap'
s390-linux-ld: armv7m_systick.c:(.init.text+0xfc): undefined reference to `iounmap'
s390-linux-ld: drivers/mailbox/imx-mailbox.o: in function `imx_mu_probe':
imx-mailbox.c:(.text+0x5c4): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/armada-37xx-rwtm-mailbox.o: in function `armada_37xx_mbox_probe':
armada-37xx-rwtm-mailbox.c:(.text+0x288): undefined reference to `devm_platform_ioremap_resource'
s390-linux-ld: drivers/mailbox/hi3660-mailbox.o: in function `hi3660_mbox_probe':
hi3660-mailbox.c:(.text+0xa6): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/hi6220-mailbox.o: in function `hi6220_mbox_probe':
hi6220-mailbox.c:(.text+0x43c): undefined reference to `devm_ioremap_resource'
s390-linux-ld: hi6220-mailbox.c:(.text+0x470): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/qcom-apcs-ipc-mailbox.o: in function `qcom_apcs_ipc_probe':
qcom-apcs-ipc-mailbox.c:(.text+0x112): undefined reference to `devm_ioremap_resource'
s390-linux-ld: drivers/mailbox/mtk-cmdq-mailbox.o: in function `cmdq_probe':
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months
[sound:test/usb-hacks 31/48] sound/usb/endpoint.c:504:33: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git test/usb-hacks
head: 1f19fce1baf5f21347d1c9697ab9d48a5e25301f
commit: c95d75571aefae9a8c06940486cf066a893aceb3 [31/48] ALSA: usb-audio: Create endpoint objects at parsing phase
config: c6x-randconfig-s031-20201113 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-107-gaf3512a6-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/?i...
git remote add sound https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
git fetch --no-tags sound test/usb-hacks
git checkout c95d75571aefae9a8c06940486cf066a893aceb3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=c6x
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 >>)"
>> sound/usb/endpoint.c:504:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int syncmaxsize @@ got restricted __le16 [usertype] wMaxPacketSize @@
>> sound/usb/endpoint.c:504:33: sparse: expected unsigned int syncmaxsize
>> sound/usb/endpoint.c:504:33: sparse: got restricted __le16 [usertype] wMaxPacketSize
vim +504 sound/usb/endpoint.c
458
459 #define ep_type_name(type) \
460 (type == SND_USB_ENDPOINT_TYPE_DATA ? "data" : "sync")
461
462 static int
463 add_endpoint(struct snd_usb_audio *chip, int ep_num, int type,
464 struct usb_endpoint_descriptor *desc)
465 {
466 struct snd_usb_endpoint *ep;
467 bool is_playback;
468
469 ep = snd_usb_get_endpoint(chip, ep_num);
470 if (ep)
471 return 0;
472
473 usb_audio_dbg(chip, "Creating new %s endpoint #%x\n",
474 ep_type_name(type),
475 ep_num);
476 ep = kzalloc(sizeof(*ep), GFP_KERNEL);
477 if (!ep)
478 return -ENOMEM;
479
480 ep->chip = chip;
481 spin_lock_init(&ep->lock);
482 ep->type = type;
483 ep->ep_num = ep_num;
484 INIT_LIST_HEAD(&ep->ready_playback_urbs);
485
486 is_playback = ((ep_num & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT);
487 ep_num &= USB_ENDPOINT_NUMBER_MASK;
488 if (is_playback)
489 ep->pipe = usb_sndisocpipe(chip->dev, ep_num);
490 else
491 ep->pipe = usb_rcvisocpipe(chip->dev, ep_num);
492
493 if (type == SND_USB_ENDPOINT_TYPE_SYNC) {
494 if (desc->bLength >= USB_DT_ENDPOINT_AUDIO_SIZE &&
495 desc->bRefresh >= 1 && desc->bRefresh <= 9)
496 ep->syncinterval = desc->bRefresh;
497 else if (snd_usb_get_speed(chip->dev) == USB_SPEED_FULL)
498 ep->syncinterval = 1;
499 else if (desc->bInterval >= 1 && desc->bInterval <= 16)
500 ep->syncinterval = desc->bInterval - 1;
501 else
502 ep->syncinterval = 3;
503
> 504 ep->syncmaxsize = desc->wMaxPacketSize;
505 }
506
507 list_add_tail(&ep->list, &chip->ep_list);
508 return 0;
509 }
510
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 10 months