drivers/pci/controller/pcie-mt7621.c:224:13: error: implicit declaration of function 'mips_cps_numiocu'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: 2bdd5238e756aac3ecbffc7c22b884485e84062e PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver
date: 3 weeks ago
config: mips-randconfig-r001-20211114 (attached as .config)
compiler: mips64-linux-gcc (GCC) 11.2.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 2bdd5238e756aac3ecbffc7c22b884485e84062e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/pci/controller/pcie-mt7621.c: In function 'setup_cm_memory_region':
>> drivers/pci/controller/pcie-mt7621.c:224:13: error: implicit declaration of function 'mips_cps_numiocu' [-Werror=implicit-function-declaration]
224 | if (mips_cps_numiocu(0)) {
| ^~~~~~~~~~~~~~~~
>> drivers/pci/controller/pcie-mt7621.c:232:17: error: implicit declaration of function 'write_gcr_reg1_base'; did you mean 'write_gc0_ebase'? [-Werror=implicit-function-declaration]
232 | write_gcr_reg1_base(entry->res->start);
| ^~~~~~~~~~~~~~~~~~~
| write_gc0_ebase
>> drivers/pci/controller/pcie-mt7621.c:233:17: error: implicit declaration of function 'write_gcr_reg1_mask'; did you mean 'write_gc0_pagemask'? [-Werror=implicit-function-declaration]
233 | write_gcr_reg1_mask(mask | CM_GCR_REGn_MASK_CMTGT_IOCU0);
| ^~~~~~~~~~~~~~~~~~~
| write_gc0_pagemask
>> drivers/pci/controller/pcie-mt7621.c:233:44: error: 'CM_GCR_REGn_MASK_CMTGT_IOCU0' undeclared (first use in this function)
233 | write_gcr_reg1_mask(mask | CM_GCR_REGn_MASK_CMTGT_IOCU0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/controller/pcie-mt7621.c:233:44: note: each undeclared identifier is reported only once for each function it appears in
In file included from include/linux/device.h:15,
from include/linux/of_platform.h:9,
from drivers/pci/controller/pcie-mt7621.c:26:
>> drivers/pci/controller/pcie-mt7621.c:235:46: error: implicit declaration of function 'read_gcr_reg1_base'; did you mean 'read_gc0_ebase'? [-Werror=implicit-function-declaration]
235 | (unsigned long long)read_gcr_reg1_base(),
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/pci/controller/pcie-mt7621.c:234:17: note: in expansion of macro 'dev_info'
234 | dev_info(dev, "PCI coherence region base: 0x%08llx, mask/settings: 0x%08llx\n",
| ^~~~~~~~
>> drivers/pci/controller/pcie-mt7621.c:236:46: error: implicit declaration of function 'read_gcr_reg1_mask'; did you mean 'read_gc0_pagemask'? [-Werror=implicit-function-declaration]
236 | (unsigned long long)read_gcr_reg1_mask());
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:110:37: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
drivers/pci/controller/pcie-mt7621.c:234:17: note: in expansion of macro 'dev_info'
234 | dev_info(dev, "PCI coherence region base: 0x%08llx, mask/settings: 0x%08llx\n",
| ^~~~~~~~
cc1: some warnings being treated as errors
vim +/mips_cps_numiocu +224 drivers/pci/controller/pcie-mt7621.c
e51844bf825169 drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-24 210
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 211 static int setup_cm_memory_region(struct pci_host_bridge *host)
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 212 {
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 213 struct mt7621_pcie *pcie = pci_host_bridge_priv(host);
d936550784a23b drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-04 214 struct device *dev = pcie->dev;
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 215 struct resource_entry *entry;
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 216 resource_size_t mask;
8571c62d45cb7e drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-08-03 217
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 218 entry = resource_list_first_type(&host->windows, IORESOURCE_MEM);
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 219 if (!entry) {
2bdd5238e756aa drivers/pci/controller/pcie-mt7621.c Sergio Paracuellos 2021-09-22 220 dev_err(dev, "cannot get memory resource\n");
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 221 return -EINVAL;
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 222 }
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 223
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 @224 if (mips_cps_numiocu(0)) {
d2bac2fd6daa91 drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-04 225 /*
d2bac2fd6daa91 drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-04 226 * FIXME: hardware doesn't accept mask values with 1s after
d4e3a1f6cea79e drivers/staging/mt7621-pci/pci-mt7621.c NeilBrown 2018-05-04 227 * 0s (e.g. 0xffef), so it would be great to warn if that's
d2bac2fd6daa91 drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-04 228 * about to happen
d2bac2fd6daa91 drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-04 229 */
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 230 mask = ~(entry->res->end - entry->res->start);
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 231
b15606e63ea90c drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2021-06-14 @232 write_gcr_reg1_base(entry->res->start);
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 @233 write_gcr_reg1_mask(mask | CM_GCR_REGn_MASK_CMTGT_IOCU0);
d936550784a23b drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-11-04 234 dev_info(dev, "PCI coherence region base: 0x%08llx, mask/settings: 0x%08llx\n",
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 @235 (unsigned long long)read_gcr_reg1_base(),
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 @236 (unsigned long long)read_gcr_reg1_mask());
03f152e31f4ae8 drivers/staging/mt7621-pci/pci-mt7621.c John Crispin 2018-03-15 237 }
09dd629eeabb8a drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2020-03-18 238
8571c62d45cb7e drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-08-03 239 return 0;
8571c62d45cb7e drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-08-03 240 }
8571c62d45cb7e drivers/staging/mt7621-pci/pci-mt7621.c Sergio Paracuellos 2018-08-03 241
:::::: The code at line 224 was first introduced by commit
:::::: 03f152e31f4ae89c37ab240f45dd77c8a916dd26 staging: mt7621-pci: MIPS/ralink: add MT7621 pcie driver
:::::: TO: John Crispin <blogic(a)openwrt.org>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
vmlinux.o: warning: objtool: __sev_get_ghcb.isra.0()+0x2c: call to ftrace_likely_update() leaves .noinstr.text section
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: d187f217335dba2b49fc9002aab2004e04acddee x86/sev: Make sure IRQs are disabled while GHCB is active
date: 5 months ago
config: x86_64-buildonly-randconfig-r005-20211028 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/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 d187f217335dba2b49fc9002aab2004e04acddee
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
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 >>):
vmlinux.o: warning: objtool: __wrgsbase_inactive()+0x32: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: __rdgsbase_inactive()+0x31: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: fixup_bad_iret()+0x7b: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: noist_exc_debug()+0x41: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: exc_nmi()+0x4e: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: poke_int3_handler()+0x51: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: mce_check_crashing_cpu()+0x37: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: do_machine_check()+0x1e5: call to {dynamic}() leaves .noinstr.text section
vmlinux.o: warning: objtool: exc_machine_check()+0x9a: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: __sev_get_ghcb.isra.0()+0x2c: call to ftrace_likely_update() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: __sev_put_ghcb.isra.0()+0x2c: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: __sev_es_ist_exit()+0x32: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: exc_vmm_communication()+0x68: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: match_held_lock()+0x11c: call to rcu_read_lock_any_held() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_dynticks_eqs_enter()+0x44: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_dynticks_eqs_exit()+0x48: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_eqs_enter.constprop.0()+0x43: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_eqs_exit.constprop.0()+0x34: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_irq_exit()+0x29: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_nmi_enter()+0x3f: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: rcu_irq_enter()+0x29: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_nmi_enter()+0x54: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_nmi_exit()+0x75: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: enter_from_user_mode()+0x46: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x4b: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x46: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x46: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_exit()+0x35: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: context_tracking_recursion_enter()+0x101: call to ftrace_likely_update() leaves .noinstr.text section
vmlinux.o: warning: objtool: __context_tracking_enter()+0x38: call to ftrace_likely_update() leaves .noinstr.text section
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/dma/mmp_tdma.c:650:10: warning: cast to smaller integer type 'enum mmp_tdma_type' from 'const void *'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: 9f3c14d4433b98c87f958128045539f297a2fa6d dmaengine: mmp_tdma: Allow building as a module
date: 10 months ago
config: riscv-randconfig-r042-20211111 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 63ef0e17e28827eae53133b3467bdac7d9729318)
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 9f3c14d4433b98c87f958128045539f297a2fa6d
# 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 >>):
>> drivers/dma/mmp_tdma.c:650:10: warning: cast to smaller integer type 'enum mmp_tdma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
type = (enum mmp_tdma_type) of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +650 drivers/dma/mmp_tdma.c
f1a7757008b810 Zhangfei Gao 2012-09-03 636
463a1f8b3ceebe Bill Pemberton 2012-11-19 637 static int mmp_tdma_probe(struct platform_device *pdev)
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 638 {
f1a7757008b810 Zhangfei Gao 2012-09-03 639 enum mmp_tdma_type type;
f1a7757008b810 Zhangfei Gao 2012-09-03 640 const struct of_device_id *of_id;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 641 struct mmp_tdma_device *tdev;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 642 struct resource *iores;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 643 int i, ret;
f1a7757008b810 Zhangfei Gao 2012-09-03 644 int irq = 0, irq_num = 0;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 645 int chan_num = TDMA_CHANNEL_NUM;
1eed601a5b02a1 Qiao Zhou 2015-03-03 646 struct gen_pool *pool = NULL;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 647
f1a7757008b810 Zhangfei Gao 2012-09-03 648 of_id = of_match_device(mmp_tdma_dt_ids, &pdev->dev);
f1a7757008b810 Zhangfei Gao 2012-09-03 649 if (of_id)
f1a7757008b810 Zhangfei Gao 2012-09-03 @650 type = (enum mmp_tdma_type) of_id->data;
f1a7757008b810 Zhangfei Gao 2012-09-03 651 else
f1a7757008b810 Zhangfei Gao 2012-09-03 652 type = platform_get_device_id(pdev)->driver_data;
f1a7757008b810 Zhangfei Gao 2012-09-03 653
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 654 /* always have couple channels */
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 655 tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 656 if (!tdev)
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 657 return -ENOMEM;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 658
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 659 tdev->dev = &pdev->dev;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 660
f1a7757008b810 Zhangfei Gao 2012-09-03 661 for (i = 0; i < chan_num; i++) {
f1a7757008b810 Zhangfei Gao 2012-09-03 662 if (platform_get_irq(pdev, i) > 0)
f1a7757008b810 Zhangfei Gao 2012-09-03 663 irq_num++;
f1a7757008b810 Zhangfei Gao 2012-09-03 664 }
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 665
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 666 iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
7331205a9662a7 Thierry Reding 2013-01-21 667 tdev->base = devm_ioremap_resource(&pdev->dev, iores);
7331205a9662a7 Thierry Reding 2013-01-21 668 if (IS_ERR(tdev->base))
7331205a9662a7 Thierry Reding 2013-01-21 669 return PTR_ERR(tdev->base);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 670
f1a7757008b810 Zhangfei Gao 2012-09-03 671 INIT_LIST_HEAD(&tdev->device.channels);
f1a7757008b810 Zhangfei Gao 2012-09-03 672
3b0f4a54f247b2 Nenghua Cao 2013-12-13 673 if (pdev->dev.of_node)
abdd4a7025282f Vladimir Zapolskiy 2015-06-30 674 pool = of_gen_pool_get(pdev->dev.of_node, "asram", 0);
3b0f4a54f247b2 Nenghua Cao 2013-12-13 675 else
3b0f4a54f247b2 Nenghua Cao 2013-12-13 676 pool = sram_get_gpool("asram");
3b0f4a54f247b2 Nenghua Cao 2013-12-13 677 if (!pool) {
3b0f4a54f247b2 Nenghua Cao 2013-12-13 678 dev_err(&pdev->dev, "asram pool not available\n");
3b0f4a54f247b2 Nenghua Cao 2013-12-13 679 return -ENOMEM;
3b0f4a54f247b2 Nenghua Cao 2013-12-13 680 }
3b0f4a54f247b2 Nenghua Cao 2013-12-13 681
f1a7757008b810 Zhangfei Gao 2012-09-03 682 if (irq_num != chan_num) {
f1a7757008b810 Zhangfei Gao 2012-09-03 683 irq = platform_get_irq(pdev, 0);
f1a7757008b810 Zhangfei Gao 2012-09-03 684 ret = devm_request_irq(&pdev->dev, irq,
c09a7ce668a666 Lubomir Rintel 2020-06-01 685 mmp_tdma_int_handler, IRQF_SHARED, "tdma", tdev);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 686 if (ret)
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 687 return ret;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 688 }
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 689
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 690 /* initialize channel parameters */
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 691 for (i = 0; i < chan_num; i++) {
f1a7757008b810 Zhangfei Gao 2012-09-03 692 irq = (irq_num != chan_num) ? 0 : platform_get_irq(pdev, i);
3b0f4a54f247b2 Nenghua Cao 2013-12-13 693 ret = mmp_tdma_chan_init(tdev, i, irq, type, pool);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 694 if (ret)
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 695 return ret;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 696 }
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 697
f1a7757008b810 Zhangfei Gao 2012-09-03 698 dma_cap_set(DMA_SLAVE, tdev->device.cap_mask);
f1a7757008b810 Zhangfei Gao 2012-09-03 699 dma_cap_set(DMA_CYCLIC, tdev->device.cap_mask);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 700 tdev->device.dev = &pdev->dev;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 701 tdev->device.device_alloc_chan_resources =
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 702 mmp_tdma_alloc_chan_resources;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 703 tdev->device.device_free_chan_resources =
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 704 mmp_tdma_free_chan_resources;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 705 tdev->device.device_prep_dma_cyclic = mmp_tdma_prep_dma_cyclic;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 706 tdev->device.device_tx_status = mmp_tdma_tx_status;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 707 tdev->device.device_issue_pending = mmp_tdma_issue_pending;
f43a6fd400ba66 Maxime Ripard 2014-11-17 708 tdev->device.device_config = mmp_tdma_config;
f43a6fd400ba66 Maxime Ripard 2014-11-17 709 tdev->device.device_pause = mmp_tdma_pause_chan;
f43a6fd400ba66 Maxime Ripard 2014-11-17 710 tdev->device.device_resume = mmp_tdma_resume_chan;
f43a6fd400ba66 Maxime Ripard 2014-11-17 711 tdev->device.device_terminate_all = mmp_tdma_terminate_all;
77a68e56aae141 Maxime Ripard 2015-07-20 712 tdev->device.copy_align = DMAENGINE_ALIGN_8_BYTES;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 713
baed6b34ceea87 Lubomir Rintel 2020-04-19 714 tdev->device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
baed6b34ceea87 Lubomir Rintel 2020-04-19 715 if (type == MMP_AUD_TDMA) {
baed6b34ceea87 Lubomir Rintel 2020-04-19 716 tdev->device.max_burst = SZ_128;
baed6b34ceea87 Lubomir Rintel 2020-04-19 717 tdev->device.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
baed6b34ceea87 Lubomir Rintel 2020-04-19 718 tdev->device.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
baed6b34ceea87 Lubomir Rintel 2020-04-19 719 } else if (type == PXA910_SQU) {
baed6b34ceea87 Lubomir Rintel 2020-04-19 720 tdev->device.max_burst = SZ_32;
baed6b34ceea87 Lubomir Rintel 2020-04-19 721 }
baed6b34ceea87 Lubomir Rintel 2020-04-19 722 tdev->device.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
baed6b34ceea87 Lubomir Rintel 2020-04-19 723 tdev->device.descriptor_reuse = true;
baed6b34ceea87 Lubomir Rintel 2020-04-19 724
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 725 dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 726 platform_set_drvdata(pdev, tdev);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 727
a5f99a95869e30 Huang Shijie 2018-08-06 728 ret = dmaenginem_async_device_register(&tdev->device);
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 729 if (ret) {
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 730 dev_err(tdev->device.dev, "unable to register\n");
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 731 return ret;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 732 }
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 733
7dedc002c0ec67 Nenghua Cao 2014-01-20 734 if (pdev->dev.of_node) {
7dedc002c0ec67 Nenghua Cao 2014-01-20 735 ret = of_dma_controller_register(pdev->dev.of_node,
7dedc002c0ec67 Nenghua Cao 2014-01-20 736 mmp_tdma_xlate, tdev);
7dedc002c0ec67 Nenghua Cao 2014-01-20 737 if (ret) {
7dedc002c0ec67 Nenghua Cao 2014-01-20 738 dev_err(tdev->device.dev,
7dedc002c0ec67 Nenghua Cao 2014-01-20 739 "failed to register controller\n");
a5f99a95869e30 Huang Shijie 2018-08-06 740 return ret;
7dedc002c0ec67 Nenghua Cao 2014-01-20 741 }
7dedc002c0ec67 Nenghua Cao 2014-01-20 742 }
7dedc002c0ec67 Nenghua Cao 2014-01-20 743
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 744 dev_info(tdev->device.dev, "initialized\n");
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 745 return 0;
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 746 }
c6da0ba8dfc826 Zhangfei Gao 2012-06-15 747
:::::: The code at line 650 was first introduced by commit
:::::: f1a7757008b810217b2380d01b740244f21c09bd dmaengine: mmp_tdma: add dt support
:::::: TO: Zhangfei Gao <zhangfei.gao(a)marvell.com>
:::::: CC: Vinod Koul <vinod.koul(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[morse:mpam/snapshot/v5.15 70/139] drivers/irqchip/irq-gic-v3.c:1422:22: error: 'GIC_IRQ_TYPE_LPI' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head: ce3629841262f725a5f3a327403fcaf0e604a85e
commit: d69569a733100394b3e22e7fcef6f5013827ac3b [70/139] arm64: irq: Collect GIC_IRQ_TYPE definitions into one place
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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/morse/linux.git/commit/?i...
git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
git fetch --no-tags morse mpam/snapshot/v5.15
git checkout d69569a733100394b3e22e7fcef6f5013827ac3b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/
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/irqchip/irq-gic-v3.c: In function 'gic_irq_domain_translate':
>> drivers/irqchip/irq-gic-v3.c:1422:22: error: 'GIC_IRQ_TYPE_LPI' undeclared (first use in this function)
1422 | case GIC_IRQ_TYPE_LPI: /* LPI */
| ^~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3.c:1422:22: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/irqchip/irq-gic-v3.c:1425:22: error: 'GIC_IRQ_TYPE_PARTITION' undeclared (first use in this function)
1425 | case GIC_IRQ_TYPE_PARTITION:
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3.c: In function '__partition_ppis':
drivers/irqchip/irq-gic-v3.c:1840:43: error: 'GIC_IRQ_TYPE_PARTITION' undeclared (first use in this function)
1840 | [0] = GIC_IRQ_TYPE_PARTITION,
| ^~~~~~~~~~~~~~~~~~~~~~
--
drivers/irqchip/irq-gic-v3-its.c: In function 'its_irq_gic_domain_alloc':
>> drivers/irqchip/irq-gic-v3-its.c:3518:35: error: 'GIC_IRQ_TYPE_LPI' undeclared (first use in this function)
3518 | fwspec.param[0] = GIC_IRQ_TYPE_LPI;
| ^~~~~~~~~~~~~~~~
drivers/irqchip/irq-gic-v3-its.c:3518:35: note: each undeclared identifier is reported only once for each function it appears in
vim +/GIC_IRQ_TYPE_LPI +1422 drivers/irqchip/irq-gic-v3.c
021f653791ad17 Marc Zyngier 2014-06-30 1393
f833f57ff25450 Marc Zyngier 2015-10-13 1394 static int gic_irq_domain_translate(struct irq_domain *d,
f833f57ff25450 Marc Zyngier 2015-10-13 1395 struct irq_fwspec *fwspec,
f833f57ff25450 Marc Zyngier 2015-10-13 1396 unsigned long *hwirq,
f833f57ff25450 Marc Zyngier 2015-10-13 1397 unsigned int *type)
021f653791ad17 Marc Zyngier 2014-06-30 1398 {
64b499d8df40da Marc Zyngier 2020-04-25 1399 if (fwspec->param_count == 1 && fwspec->param[0] < 16) {
64b499d8df40da Marc Zyngier 2020-04-25 1400 *hwirq = fwspec->param[0];
64b499d8df40da Marc Zyngier 2020-04-25 1401 *type = IRQ_TYPE_EDGE_RISING;
64b499d8df40da Marc Zyngier 2020-04-25 1402 return 0;
64b499d8df40da Marc Zyngier 2020-04-25 1403 }
64b499d8df40da Marc Zyngier 2020-04-25 1404
f833f57ff25450 Marc Zyngier 2015-10-13 1405 if (is_of_node(fwspec->fwnode)) {
f833f57ff25450 Marc Zyngier 2015-10-13 1406 if (fwspec->param_count < 3)
021f653791ad17 Marc Zyngier 2014-06-30 1407 return -EINVAL;
021f653791ad17 Marc Zyngier 2014-06-30 1408
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1409 switch (fwspec->param[0]) {
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1410 case 0: /* SPI */
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1411 *hwirq = fwspec->param[1] + 32;
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1412 break;
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1413 case 1: /* PPI */
f833f57ff25450 Marc Zyngier 2015-10-13 1414 *hwirq = fwspec->param[1] + 16;
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1415 break;
211bddd210a674 Marc Zyngier 2019-07-16 1416 case 2: /* ESPI */
211bddd210a674 Marc Zyngier 2019-07-16 1417 *hwirq = fwspec->param[1] + ESPI_BASE_INTID;
211bddd210a674 Marc Zyngier 2019-07-16 1418 break;
5f51f803826e4f Marc Zyngier 2019-07-18 1419 case 3: /* EPPI */
5f51f803826e4f Marc Zyngier 2019-07-18 1420 *hwirq = fwspec->param[1] + EPPI_BASE_INTID;
5f51f803826e4f Marc Zyngier 2019-07-18 1421 break;
db8c70ec1f9d45 Marc Zyngier 2015-10-14 @1422 case GIC_IRQ_TYPE_LPI: /* LPI */
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1423 *hwirq = fwspec->param[1];
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1424 break;
5f51f803826e4f Marc Zyngier 2019-07-18 @1425 case GIC_IRQ_TYPE_PARTITION:
5f51f803826e4f Marc Zyngier 2019-07-18 1426 *hwirq = fwspec->param[1];
5f51f803826e4f Marc Zyngier 2019-07-18 1427 if (fwspec->param[1] >= 16)
5f51f803826e4f Marc Zyngier 2019-07-18 1428 *hwirq += EPPI_BASE_INTID - 16;
5f51f803826e4f Marc Zyngier 2019-07-18 1429 else
5f51f803826e4f Marc Zyngier 2019-07-18 1430 *hwirq += 16;
5f51f803826e4f Marc Zyngier 2019-07-18 1431 break;
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1432 default:
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1433 return -EINVAL;
db8c70ec1f9d45 Marc Zyngier 2015-10-14 1434 }
f833f57ff25450 Marc Zyngier 2015-10-13 1435
f833f57ff25450 Marc Zyngier 2015-10-13 1436 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
6ef6386ef7c15b Marc Zyngier 2018-03-16 1437
65da7d1979c229 Marc Zyngier 2018-03-20 1438 /*
65da7d1979c229 Marc Zyngier 2018-03-20 1439 * Make it clear that broken DTs are... broken.
a359f757965aaf Ingo Molnar 2021-03-22 1440 * Partitioned PPIs are an unfortunate exception.
65da7d1979c229 Marc Zyngier 2018-03-20 1441 */
65da7d1979c229 Marc Zyngier 2018-03-20 1442 WARN_ON(*type == IRQ_TYPE_NONE &&
65da7d1979c229 Marc Zyngier 2018-03-20 1443 fwspec->param[0] != GIC_IRQ_TYPE_PARTITION);
021f653791ad17 Marc Zyngier 2014-06-30 1444 return 0;
021f653791ad17 Marc Zyngier 2014-06-30 1445 }
021f653791ad17 Marc Zyngier 2014-06-30 1446
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1447 if (is_fwnode_irqchip(fwspec->fwnode)) {
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1448 if(fwspec->param_count != 2)
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1449 return -EINVAL;
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1450
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1451 *hwirq = fwspec->param[0];
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1452 *type = fwspec->param[1];
6ef6386ef7c15b Marc Zyngier 2018-03-16 1453
6ef6386ef7c15b Marc Zyngier 2018-03-16 1454 WARN_ON(*type == IRQ_TYPE_NONE);
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1455 return 0;
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1456 }
ffa7d6166a9611 Tomasz Nowicki 2016-01-19 1457
f833f57ff25450 Marc Zyngier 2015-10-13 1458 return -EINVAL;
f833f57ff25450 Marc Zyngier 2015-10-13 1459 }
f833f57ff25450 Marc Zyngier 2015-10-13 1460
:::::: The code at line 1422 was first introduced by commit
:::::: db8c70ec1f9d45e530383204c57f2971df4bd334 irqchip/gic-v3: Fix translation of LPIs after conversion to irq_fwspec
:::::: TO: Marc Zyngier <marc.zyngier(a)arm.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
fs/xfs/xfs_icache.c:321:1: warning: unused function 'xfs_inew_wait'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c8c109546a19613d323a319d0c921cb1f317e629
commit: 777eb1fa857ec38afd518b3adc25cfac0f4af13b xfs: remove xfs_dqrele_all_inodes
date: 3 months ago
config: mips-randconfig-r002-20211113 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/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 777eb1fa857ec38afd518b3adc25cfac0f4af13b
# 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=mips SHELL=/bin/bash drivers/pci/controller/ fs/xfs/
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/xfs/xfs_icache.c:321:1: warning: unused function 'xfs_inew_wait'
xfs_inew_wait(
^
fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 27, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project c3dddeeafb529e769cde87bd29ef6271ac6bfa5c)
Target: mips64el-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-c3dddeeafb/bin
clang-14: note: diagnostic msg:
Makefile arch drivers fs include kernel nr_bisected scripts source usr virt
vim +/xfs_inew_wait +321 fs/xfs/xfs_icache.c
ad438c4038968e Dave Chinner 2016-05-18 319
7fdff52623b4df Darrick J. Wong 2021-05-31 320 static inline void
ae2c4ac2dd39b2 Brian Foster 2017-04-26 @321 xfs_inew_wait(
ae2c4ac2dd39b2 Brian Foster 2017-04-26 322 struct xfs_inode *ip)
ae2c4ac2dd39b2 Brian Foster 2017-04-26 323 {
ae2c4ac2dd39b2 Brian Foster 2017-04-26 324 wait_queue_head_t *wq = bit_waitqueue(&ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 325 DEFINE_WAIT_BIT(wait, &ip->i_flags, __XFS_INEW_BIT);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 326
ae2c4ac2dd39b2 Brian Foster 2017-04-26 327 do {
2141713616c652 Ingo Molnar 2017-03-05 328 prepare_to_wait(wq, &wait.wq_entry, TASK_UNINTERRUPTIBLE);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 329 if (!xfs_iflags_test(ip, XFS_INEW))
ae2c4ac2dd39b2 Brian Foster 2017-04-26 330 break;
ae2c4ac2dd39b2 Brian Foster 2017-04-26 331 schedule();
ae2c4ac2dd39b2 Brian Foster 2017-04-26 332 } while (true);
2141713616c652 Ingo Molnar 2017-03-05 333 finish_wait(wq, &wait.wq_entry);
ae2c4ac2dd39b2 Brian Foster 2017-04-26 334 }
ae2c4ac2dd39b2 Brian Foster 2017-04-26 335
:::::: The code at line 321 was first introduced by commit
:::::: ae2c4ac2dd39b23a87ddb14ceddc3f2872c6aef5 xfs: update ag iterator to support wait on new inodes
:::::: TO: Brian Foster <bfoster(a)redhat.com>
:::::: CC: Darrick J. Wong <darrick.wong(a)oracle.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week