[drm-drm-intel:topic/core-for-CI 18/20] init/Kconfig:77: symbol BROKEN is selected by DRM_I915_DEBUG
by kbuild test robot
tree: git://anongit.freedesktop.org/drm/drm-intel topic/core-for-CI
head: 8a61c65409b1993abccc2c379f30a047972a0622
commit: 19f102d485b9f5e03677f73133d9922e2650686f [18/20] Revert "drm/i915: Don't select BROKEN"
config: powerpc-allyesconfig
compiler: clang version 11.0.0 (git://gitmirror/llvm_project fed2acc7f53cd0699a4ddbe96ae18487e9580c3e)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/platforms/embedded6xx/Kconfig:2:error: recursive dependency detected!
>> arch/powerpc/platforms/embedded6xx/Kconfig:2: symbol EMBEDDED6xx depends on BROKEN_ON_SMP
>> init/Kconfig:80: symbol BROKEN_ON_SMP depends on BROKEN
>> init/Kconfig:77: symbol BROKEN is selected by DRM_I915_DEBUG
>> drivers/gpu/drm/i915/Kconfig.debug:19: symbol DRM_I915_DEBUG depends on DRM_I915
>> drivers/gpu/drm/i915/Kconfig:2: symbol DRM_I915 depends on DRM
>> drivers/gpu/drm/Kconfig:8: symbol DRM depends on AGP
>> drivers/char/agp/Kconfig:2: symbol AGP depends on PCI
>> drivers/pci/Kconfig:16: symbol PCI depends on HAVE_PCI
>> drivers/pci/Kconfig:7: symbol HAVE_PCI is selected by FORCE_PCI
>> drivers/pci/Kconfig:11: symbol FORCE_PCI is selected by MVME5100
>> arch/powerpc/platforms/embedded6xx/Kconfig:51: symbol MVME5100 depends on EMBEDDED6xx
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"
vim +77 init/Kconfig
^1da177e4c3f41 Linus Torvalds 2005-04-16 76
^1da177e4c3f41 Linus Torvalds 2005-04-16 @77 config BROKEN
^1da177e4c3f41 Linus Torvalds 2005-04-16 78 bool
^1da177e4c3f41 Linus Torvalds 2005-04-16 79
^1da177e4c3f41 Linus Torvalds 2005-04-16 @80 config BROKEN_ON_SMP
^1da177e4c3f41 Linus Torvalds 2005-04-16 81 bool
^1da177e4c3f41 Linus Torvalds 2005-04-16 82 depends on BROKEN || !SMP
^1da177e4c3f41 Linus Torvalds 2005-04-16 83 default y
^1da177e4c3f41 Linus Torvalds 2005-04-16 84
:::::: The code at line 77 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[dm:for-next 30/32] drivers/md/dm-bio-record.h:45:7: error: 'struct bio' has no member named 'bi_integrity'; did you mean 'bi_iter'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head: 8a71e3cd0499fd9bfe1a99cda6a62fe83f80d622
commit: 6e18585702772969431c269438cb828a5e3d9db6 [30/32] dm bio record: save/restore bi_integrity and bi_end_io
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
git checkout 6e18585702772969431c269438cb828a5e3d9db6
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/md/dm-raid1.c:8:0:
drivers/md/dm-bio-record.h: In function 'dm_bio_restore':
>> drivers/md/dm-bio-record.h:45:7: error: 'struct bio' has no member named 'bi_integrity'; did you mean 'bi_iter'?
bio->bi_integrity = bd->bi_integrity;
^~~~~~~~~~~~
bi_iter
vim +45 drivers/md/dm-bio-record.h
38
39 static inline void dm_bio_restore(struct dm_bio_details *bd, struct bio *bio)
40 {
41 bio->bi_disk = bd->bi_disk;
42 bio->bi_partno = bd->bi_partno;
43 bio->bi_flags = bd->bi_flags;
44 bio->bi_iter = bd->bi_iter;
> 45 bio->bi_integrity = bd->bi_integrity;
46 if (bio->bi_end_io != bd->bi_end_io) {
47 /* BIO_CHAIN may have been used, reset __bi_remaining */
48 atomic_set(&bio->__bi_remaining, 1);
49 bio->bi_end_io = bd->bi_end_io;
50 }
51 }
52
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 3/3] proc: Remove the now unnecessary internal mount of proc
by kbuild test robot
Hi "Eric,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on uml/linux-next]
[also build test ERROR on linux/master kees/for-next/pstore linus/master v5.6-rc3 next-20200228]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Eric-W-Biederman/proc-Actually-h...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git linux-next
config: nds32-defconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/proc/base.c: In function 'proc_flush_task':
>> fs/proc/base.c:3217:31: error: 'struct pid_namespace' has no member named 'proc_mnt'
3217 | proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr,
| ^~
vim +3217 fs/proc/base.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 3180
0895e91d60ef9b Randy Dunlap 2007-10-21 3181 /**
0895e91d60ef9b Randy Dunlap 2007-10-21 3182 * proc_flush_task - Remove dcache entries for @task from the /proc dcache.
0895e91d60ef9b Randy Dunlap 2007-10-21 3183 * @task: task that should be flushed.
0895e91d60ef9b Randy Dunlap 2007-10-21 3184 *
0895e91d60ef9b Randy Dunlap 2007-10-21 3185 * When flushing dentries from proc, one needs to flush them from global
60347f6716aa49 Pavel Emelyanov 2007-10-18 3186 * proc (proc_mnt) and from all the namespaces' procs this task was seen
0895e91d60ef9b Randy Dunlap 2007-10-21 3187 * in. This call is supposed to do all of this job.
0895e91d60ef9b Randy Dunlap 2007-10-21 3188 *
0895e91d60ef9b Randy Dunlap 2007-10-21 3189 * Looks in the dcache for
0895e91d60ef9b Randy Dunlap 2007-10-21 3190 * /proc/@pid
0895e91d60ef9b Randy Dunlap 2007-10-21 3191 * /proc/@tgid/task/@pid
0895e91d60ef9b Randy Dunlap 2007-10-21 3192 * if either directory is present flushes it and all of it'ts children
0895e91d60ef9b Randy Dunlap 2007-10-21 3193 * from the dcache.
0895e91d60ef9b Randy Dunlap 2007-10-21 3194 *
0895e91d60ef9b Randy Dunlap 2007-10-21 3195 * It is safe and reasonable to cache /proc entries for a task until
0895e91d60ef9b Randy Dunlap 2007-10-21 3196 * that task exits. After that they just clog up the dcache with
0895e91d60ef9b Randy Dunlap 2007-10-21 3197 * useless entries, possibly causing useful dcache entries to be
0895e91d60ef9b Randy Dunlap 2007-10-21 3198 * flushed instead. This routine is proved to flush those useless
0895e91d60ef9b Randy Dunlap 2007-10-21 3199 * dcache entries at process exit time.
0895e91d60ef9b Randy Dunlap 2007-10-21 3200 *
0895e91d60ef9b Randy Dunlap 2007-10-21 3201 * NOTE: This routine is just an optimization so it does not guarantee
0895e91d60ef9b Randy Dunlap 2007-10-21 3202 * that no dcache entries will exist at process exit time it
0895e91d60ef9b Randy Dunlap 2007-10-21 3203 * just makes it very unlikely that any will persist.
60347f6716aa49 Pavel Emelyanov 2007-10-18 3204 */
60347f6716aa49 Pavel Emelyanov 2007-10-18 3205
60347f6716aa49 Pavel Emelyanov 2007-10-18 3206 void proc_flush_task(struct task_struct *task)
60347f6716aa49 Pavel Emelyanov 2007-10-18 3207 {
9fcc2d15b14894 Eric W. Biederman 2007-11-14 3208 int i;
9b4d1cbef8f41a Oleg Nesterov 2009-09-22 3209 struct pid *pid, *tgid;
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3210 struct upid *upid;
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3211
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3212 pid = task_pid(task);
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3213 tgid = task_tgid(task);
9fcc2d15b14894 Eric W. Biederman 2007-11-14 3214
9fcc2d15b14894 Eric W. Biederman 2007-11-14 3215 for (i = 0; i <= pid->level; i++) {
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3216 upid = &pid->numbers[i];
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 @3217 proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr,
9b4d1cbef8f41a Oleg Nesterov 2009-09-22 3218 tgid->numbers[i].nr);
130f77ecb2e7d5 Pavel Emelyanov 2007-10-18 3219 }
60347f6716aa49 Pavel Emelyanov 2007-10-18 3220 }
60347f6716aa49 Pavel Emelyanov 2007-10-18 3221
:::::: The code at line 3217 was first introduced by commit
:::::: 130f77ecb2e7d5ac3e53e620f55e374f4a406b20 pid namespaces: make proc_flush_task() actually from entries from multiple namespaces
:::::: TO: Pavel Emelyanov <xemul(a)openvz.org>
:::::: CC: Linus Torvalds <torvalds(a)woody.linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[mptcp:t/mptcp-Implement-path-manager-interface-commands 20/25] net/mptcp/pm.c:31:7: error: no member named 'addr_signal' in 'struct mptcp_sock'
by kbuild test robot
tree: https://github.com/multipath-tcp/mptcp_net-next.git t/mptcp-Implement-path-manager-interface-commands
head: a28e79bf6de027fea5d0522a32a686aacf5658a7
commit: 781d512532236fdeb2038457060aa4a470e01f7e [20/25] tgupdate: merge t/mptcp-Implement-path-manager-interface-commands base into t/mptcp-Implement-path-manager-interface-commands
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 949134e2fefd34a38ed71de90dffe2300e2e1139)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the mptcp/t/mptcp-Implement-path-manager-interface-commands HEAD a28e79bf6de027fea5d0522a32a686aacf5658a7 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
>> net/mptcp/pm.c:31:7: error: no member named 'addr_signal' in 'struct mptcp_sock'
msk->addr_signal = 1;
~~~ ^
net/mptcp/pm.c:57:7: error: no member named 'addr_signal' in 'struct mptcp_sock'
msk->addr_signal = 1;
~~~ ^
2 errors generated.
vim +31 net/mptcp/pm.c
532e0037f0c3af Peter Krystad 2020-02-26 12
532e0037f0c3af Peter Krystad 2020-02-26 13 int mptcp_pm_announce_addr(u32 token, u8 local_id, struct in_addr *addr)
532e0037f0c3af Peter Krystad 2020-02-26 14 {
4b738110d9bfa5 Peter Krystad 2020-02-26 15 struct mptcp_sock *msk = mptcp_token_get_sock(token);
4b738110d9bfa5 Peter Krystad 2020-02-26 16 int err = 0;
4b738110d9bfa5 Peter Krystad 2020-02-26 17
4b738110d9bfa5 Peter Krystad 2020-02-26 18 if (!msk)
4b738110d9bfa5 Peter Krystad 2020-02-26 19 return -EINVAL;
4b738110d9bfa5 Peter Krystad 2020-02-26 20
4b738110d9bfa5 Peter Krystad 2020-02-26 21 if (msk->pm.local_valid) {
4b738110d9bfa5 Peter Krystad 2020-02-26 22 err = -EBADR;
4b738110d9bfa5 Peter Krystad 2020-02-26 23 goto announce_put;
4b738110d9bfa5 Peter Krystad 2020-02-26 24 }
4b738110d9bfa5 Peter Krystad 2020-02-26 25
4b738110d9bfa5 Peter Krystad 2020-02-26 26 pr_debug("msk=%p, local_id=%d", msk, local_id);
4b738110d9bfa5 Peter Krystad 2020-02-26 27 msk->pm.local_valid = 1;
4b738110d9bfa5 Peter Krystad 2020-02-26 28 msk->pm.local_id = local_id;
4b738110d9bfa5 Peter Krystad 2020-02-26 29 msk->pm.local_family = AF_INET;
4b738110d9bfa5 Peter Krystad 2020-02-26 30 msk->pm.local_addr = *addr;
4b738110d9bfa5 Peter Krystad 2020-02-26 @31 msk->addr_signal = 1;
4b738110d9bfa5 Peter Krystad 2020-02-26 32
4b738110d9bfa5 Peter Krystad 2020-02-26 33 announce_put:
4b738110d9bfa5 Peter Krystad 2020-02-26 34 sock_put((struct sock *)msk);
4b738110d9bfa5 Peter Krystad 2020-02-26 35 return err;
532e0037f0c3af Peter Krystad 2020-02-26 36 }
532e0037f0c3af Peter Krystad 2020-02-26 37
:::::: The code at line 31 was first introduced by commit
:::::: 4b738110d9bfa5e1a763123e0ef6d0d2f5852782 mptcp: Implement path manager interface commands
:::::: TO: Peter Krystad <peter.krystad(a)linux.intel.com>
:::::: CC: Matthieu Baerts <matthieu.baerts(a)tessares.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 02/14] drm/msm/mdp5: Remove direct access of dev->iommu_fwspec
by kbuild test robot
Hi Joerg,
I love your patch! Yet something to improve:
[auto build test ERROR on pm/linux-next]
[also build test ERROR on tegra/for-next linux/master linus/master v5.6-rc3 next-20200228]
[cannot apply to iommu/next]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Joerg-Roedel/iommu-Move-iommu_fw...
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: arm-imx_v6_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c: In function 'mdp5_kms_init':
>> drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c:728:8: error: implicit declaration of function 'dev_iommu_fwspec_get'; did you mean 'iommu_fwspec_free'? [-Werror=implicit-function-declaration]
if (!dev_iommu_fwspec_get(iommu_dev))
^~~~~~~~~~~~~~~~~~~~
iommu_fwspec_free
cc1: some warnings being treated as errors
vim +728 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c
677
678 struct msm_kms *mdp5_kms_init(struct drm_device *dev)
679 {
680 struct msm_drm_private *priv = dev->dev_private;
681 struct platform_device *pdev;
682 struct mdp5_kms *mdp5_kms;
683 struct mdp5_cfg *config;
684 struct msm_kms *kms;
685 struct msm_gem_address_space *aspace;
686 int irq, i, ret;
687 struct device *iommu_dev;
688
689 /* priv->kms would have been populated by the MDP5 driver */
690 kms = priv->kms;
691 if (!kms)
692 return NULL;
693
694 mdp5_kms = to_mdp5_kms(to_mdp_kms(kms));
695
696 mdp_kms_init(&mdp5_kms->base, &kms_funcs);
697
698 pdev = mdp5_kms->pdev;
699
700 irq = irq_of_parse_and_map(pdev->dev.of_node, 0);
701 if (irq < 0) {
702 ret = irq;
703 DRM_DEV_ERROR(&pdev->dev, "failed to get irq: %d\n", ret);
704 goto fail;
705 }
706
707 kms->irq = irq;
708
709 config = mdp5_cfg_get_config(mdp5_kms->cfg);
710
711 /* make sure things are off before attaching iommu (bootloader could
712 * have left things on, in which case we'll start getting faults if
713 * we don't disable):
714 */
715 pm_runtime_get_sync(&pdev->dev);
716 for (i = 0; i < MDP5_INTF_NUM_MAX; i++) {
717 if (mdp5_cfg_intf_is_virtual(config->hw->intf.connect[i]) ||
718 !config->hw->intf.base[i])
719 continue;
720 mdp5_write(mdp5_kms, REG_MDP5_INTF_TIMING_ENGINE_EN(i), 0);
721
722 mdp5_write(mdp5_kms, REG_MDP5_INTF_FRAME_LINE_COUNT_EN(i), 0x3);
723 }
724 mdelay(16);
725
726 if (config->platform.iommu) {
727 iommu_dev = &pdev->dev;
> 728 if (!dev_iommu_fwspec_get(iommu_dev))
729 iommu_dev = iommu_dev->parent;
730
731 aspace = msm_gem_address_space_create(iommu_dev,
732 config->platform.iommu, "mdp5");
733 if (IS_ERR(aspace)) {
734 ret = PTR_ERR(aspace);
735 goto fail;
736 }
737
738 kms->aspace = aspace;
739
740 ret = aspace->mmu->funcs->attach(aspace->mmu);
741 if (ret) {
742 DRM_DEV_ERROR(&pdev->dev, "failed to attach iommu: %d\n",
743 ret);
744 goto fail;
745 }
746 } else {
747 DRM_DEV_INFO(&pdev->dev,
748 "no iommu, fallback to phys contig buffers for scanout\n");
749 aspace = NULL;
750 }
751
752 pm_runtime_put_sync(&pdev->dev);
753
754 ret = modeset_init(mdp5_kms);
755 if (ret) {
756 DRM_DEV_ERROR(&pdev->dev, "modeset_init failed: %d\n", ret);
757 goto fail;
758 }
759
760 dev->mode_config.min_width = 0;
761 dev->mode_config.min_height = 0;
762 dev->mode_config.max_width = 0xffff;
763 dev->mode_config.max_height = 0xffff;
764
765 dev->driver->get_vblank_timestamp = drm_calc_vbltimestamp_from_scanoutpos;
766 dev->driver->get_scanout_position = mdp5_get_scanoutpos;
767 dev->driver->get_vblank_counter = mdp5_get_vblank_counter;
768 dev->max_vblank_count = 0; /* max_vblank_count is set on each CRTC */
769 dev->vblank_disable_immediate = true;
770
771 return kms;
772 fail:
773 if (kms)
774 mdp5_kms_destroy(kms);
775 return ERR_PTR(ret);
776 }
777
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[mptcp:t/mptcp-Implement-path-manager-interface-commands 23/25] net//mptcp/pm.c:46:8: error: implicit declaration of function 'mptcp_subflow_connect'
by kbuild test robot
tree: https://github.com/multipath-tcp/mptcp_net-next.git t/mptcp-Implement-path-manager-interface-commands
head: a28e79bf6de027fea5d0522a32a686aacf5658a7
commit: eba1df51e6151d1cc04a559911cf905992581b22 [23/25] tgupdate: merge t/mptcp-Implement-path-manager-interface-commands base into t/mptcp-Implement-path-manager-interface-commands
config: mips-randconfig-a001-20200228 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 5.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout eba1df51e6151d1cc04a559911cf905992581b22
# save the attached .config to linux build tree
GCC_VERSION=5.5.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the mptcp/t/mptcp-Implement-path-manager-interface-commands HEAD a28e79bf6de027fea5d0522a32a686aacf5658a7 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
net//mptcp/pm.c: In function 'mptcp_pm_announce_addr':
net//mptcp/pm.c:18:21: error: 'msk' redeclared as different kind of symbol
struct mptcp_sock *msk = mptcp_token_get_sock(token);
^
net//mptcp/pm.c:15:47: note: previous definition of 'msk' was here
int mptcp_pm_announce_addr(struct mptcp_sock *msk,
^
net//mptcp/pm.c:18:48: error: 'token' undeclared (first use in this function)
struct mptcp_sock *msk = mptcp_token_get_sock(token);
^
net//mptcp/pm.c:18:48: note: each undeclared identifier is reported only once for each function it appears in
net//mptcp/pm.c:30:14: error: 'struct mptcp_pm_data' has no member named 'remote_valid'
if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
^
net//mptcp/pm.c:30:31: error: 'remote_id' undeclared (first use in this function)
if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
^
net//mptcp/pm.c:30:51: error: 'struct mptcp_pm_data' has no member named 'remote_id'
if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
^
net//mptcp/pm.c:38:18: error: incompatible types when assigning to type 'struct in_addr' from type 'const struct mptcp_addr_info'
local.sin_addr = *addr;
^
net//mptcp/pm.c:42:29: error: 'struct mptcp_pm_data' has no member named 'remote_family'
remote.sin_family = msk->pm.remote_family;
^
net//mptcp/pm.c:44:27: error: 'struct mptcp_pm_data' has no member named 'remote_addr'
remote.sin_addr = msk->pm.remote_addr;
^
>> net//mptcp/pm.c:46:8: error: implicit declaration of function 'mptcp_subflow_connect' [-Werror=implicit-function-declaration]
err = mptcp_subflow_connect(sk, (struct sockaddr *)&local,
^
net//mptcp/pm.c: In function 'mptcp_pm_remove_addr':
net//mptcp/pm.c:56:21: error: 'msk' redeclared as different kind of symbol
struct mptcp_sock *msk = mptcp_token_get_sock(token);
^
net//mptcp/pm.c:54:45: note: previous definition of 'msk' was here
int mptcp_pm_remove_addr(struct mptcp_sock *msk, u8 local_id)
^
net//mptcp/pm.c:56:48: error: 'token' undeclared (first use in this function)
struct mptcp_sock *msk = mptcp_token_get_sock(token);
^
net//mptcp/pm.c:68:14: error: 'struct mptcp_pm_data' has no member named 'remote_valid'
if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
^
net//mptcp/pm.c:68:31: error: 'remote_id' undeclared (first use in this function)
if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
^
net//mptcp/pm.c:68:51: error: 'struct mptcp_pm_data' has no member named 'remote_id'
if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
^
net//mptcp/pm.c:75:6: error: 'addr' undeclared (first use in this function)
if (addr)
^
net//mptcp/pm.c:80:30: error: 'struct mptcp_pm_data' has no member named 'remote_family'
remote.sin6_family = msk->pm.remote_family;
^
net//mptcp/pm.c:82:28: error: 'struct mptcp_pm_data' has no member named 'remote_addr6'
remote.sin6_addr = msk->pm.remote_addr6;
^
cc1: some warnings being treated as errors
vim +/mptcp_subflow_connect +46 net//mptcp/pm.c
532e0037f0c3af Peter Krystad 2020-02-26 14
cb6c1764eb317d Paolo Abeni 2020-02-24 15 int mptcp_pm_announce_addr(struct mptcp_sock *msk,
cb6c1764eb317d Paolo Abeni 2020-02-24 16 const struct mptcp_addr_info *addr)
532e0037f0c3af Peter Krystad 2020-02-26 17 {
4b738110d9bfa5 Peter Krystad 2020-02-26 18 struct mptcp_sock *msk = mptcp_token_get_sock(token);
4b738110d9bfa5 Peter Krystad 2020-02-26 19 struct sockaddr_in remote;
4b738110d9bfa5 Peter Krystad 2020-02-26 20 struct sockaddr_in local;
4b738110d9bfa5 Peter Krystad 2020-02-26 21 struct sock *sk;
4b738110d9bfa5 Peter Krystad 2020-02-26 22 int err;
4b738110d9bfa5 Peter Krystad 2020-02-26 23
4b738110d9bfa5 Peter Krystad 2020-02-26 24 if (!msk)
4b738110d9bfa5 Peter Krystad 2020-02-26 25 return -EINVAL;
4b738110d9bfa5 Peter Krystad 2020-02-26 26
4b738110d9bfa5 Peter Krystad 2020-02-26 27 pr_debug("msk=%p", msk);
4b738110d9bfa5 Peter Krystad 2020-02-26 28
4b738110d9bfa5 Peter Krystad 2020-02-26 29 sk = (struct sock *)msk;
4b738110d9bfa5 Peter Krystad 2020-02-26 30 if (!msk->pm.remote_valid || remote_id != msk->pm.remote_id) {
4b738110d9bfa5 Peter Krystad 2020-02-26 31 err = -EBADR;
4b738110d9bfa5 Peter Krystad 2020-02-26 32 goto create_put;
4b738110d9bfa5 Peter Krystad 2020-02-26 33 }
4b738110d9bfa5 Peter Krystad 2020-02-26 34
4b738110d9bfa5 Peter Krystad 2020-02-26 35 local.sin_family = AF_INET;
4b738110d9bfa5 Peter Krystad 2020-02-26 36 local.sin_port = 0;
4b738110d9bfa5 Peter Krystad 2020-02-26 37 if (addr)
4b738110d9bfa5 Peter Krystad 2020-02-26 @38 local.sin_addr = *addr;
4b738110d9bfa5 Peter Krystad 2020-02-26 39 else
4b738110d9bfa5 Peter Krystad 2020-02-26 40 local.sin_addr.s_addr = htonl(INADDR_ANY);
4b738110d9bfa5 Peter Krystad 2020-02-26 41
4b738110d9bfa5 Peter Krystad 2020-02-26 42 remote.sin_family = msk->pm.remote_family;
4b738110d9bfa5 Peter Krystad 2020-02-26 43 remote.sin_port = inet_sk(sk)->inet_dport;
4b738110d9bfa5 Peter Krystad 2020-02-26 44 remote.sin_addr = msk->pm.remote_addr;
4b738110d9bfa5 Peter Krystad 2020-02-26 45
4b738110d9bfa5 Peter Krystad 2020-02-26 @46 err = mptcp_subflow_connect(sk, (struct sockaddr *)&local,
4b738110d9bfa5 Peter Krystad 2020-02-26 47 (struct sockaddr *)&remote, remote_id);
4b738110d9bfa5 Peter Krystad 2020-02-26 48
4b738110d9bfa5 Peter Krystad 2020-02-26 49 create_put:
4b738110d9bfa5 Peter Krystad 2020-02-26 50 sock_put(sk);
4b738110d9bfa5 Peter Krystad 2020-02-26 51 return err;
532e0037f0c3af Peter Krystad 2020-02-26 52 }
532e0037f0c3af Peter Krystad 2020-02-26 53
:::::: The code at line 46 was first introduced by commit
:::::: 4b738110d9bfa5e1a763123e0ef6d0d2f5852782 mptcp: Implement path manager interface commands
:::::: TO: Peter Krystad <peter.krystad(a)linux.intel.com>
:::::: CC: Matthieu Baerts <matthieu.baerts(a)tessares.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 37/51] drm/rockchip: Drop explicit drm_mode_config_cleanup call
by kbuild test robot
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on drm-tip/drm-tip]
[also build test ERROR on next-20200228]
[cannot apply to drm-intel/for-linux-next linus/master pinchartl-media/drm/du/next v5.6-rc3]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Daniel-Vetter/drm-managed-resour...
base: git://anongit.freedesktop.org/drm/drm-tip drm-tip
config: arm64-defconfig (attached as .config)
compiler: clang version 11.0.0 (git://gitmirror/llvm_project 949134e2fefd34a38ed71de90dffe2300e2e1139)
reproduce:
# FIXME the reproduce steps for clang is not ready yet
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/rockchip/rockchip_drm_drv.c:147:8: error: use of undeclared label 'err_mode_config_cleanup'
goto err_mode_config_cleanup;
^
1 error generated.
vim +/err_mode_config_cleanup +147 drivers/gpu/drm/rockchip/rockchip_drm_drv.c
2048e3286f347d Mark Yao 2014-08-22 110
f706974a69b6e2 Tomeu Vizoso 2016-06-10 111 static int rockchip_drm_bind(struct device *dev)
2048e3286f347d Mark Yao 2014-08-22 112 {
f706974a69b6e2 Tomeu Vizoso 2016-06-10 113 struct drm_device *drm_dev;
2048e3286f347d Mark Yao 2014-08-22 114 struct rockchip_drm_private *private;
2048e3286f347d Mark Yao 2014-08-22 115 int ret;
2048e3286f347d Mark Yao 2014-08-22 116
f706974a69b6e2 Tomeu Vizoso 2016-06-10 117 drm_dev = drm_dev_alloc(&rockchip_drm_driver, dev);
0f2886057be322 Tom Gundersen 2016-09-21 118 if (IS_ERR(drm_dev))
0f2886057be322 Tom Gundersen 2016-09-21 119 return PTR_ERR(drm_dev);
2048e3286f347d Mark Yao 2014-08-22 120
f706974a69b6e2 Tomeu Vizoso 2016-06-10 121 dev_set_drvdata(dev, drm_dev);
f706974a69b6e2 Tomeu Vizoso 2016-06-10 122
f706974a69b6e2 Tomeu Vizoso 2016-06-10 123 private = devm_kzalloc(drm_dev->dev, sizeof(*private), GFP_KERNEL);
f706974a69b6e2 Tomeu Vizoso 2016-06-10 124 if (!private) {
f706974a69b6e2 Tomeu Vizoso 2016-06-10 125 ret = -ENOMEM;
9127f99c4801f3 Tomasz Figa 2016-06-21 126 goto err_free;
f706974a69b6e2 Tomeu Vizoso 2016-06-10 127 }
f706974a69b6e2 Tomeu Vizoso 2016-06-10 128
2048e3286f347d Mark Yao 2014-08-22 129 drm_dev->dev_private = private;
2048e3286f347d Mark Yao 2014-08-22 130
5182c1a556d7ff Yakir Yang 2016-07-24 131 INIT_LIST_HEAD(&private->psr_list);
60beeccc72cabe Sean Paul 2018-03-05 132 mutex_init(&private->psr_list_lock);
5182c1a556d7ff Yakir Yang 2016-07-24 133
ccea91998c8f14 Jeffy Chen 2017-04-06 134 ret = rockchip_drm_init_iommu(drm_dev);
ccea91998c8f14 Jeffy Chen 2017-04-06 135 if (ret)
ccea91998c8f14 Jeffy Chen 2017-04-06 136 goto err_free;
ccea91998c8f14 Jeffy Chen 2017-04-06 137
7db42e97bb41bd Daniel Vetter 2020-02-27 138 ret = drm_mode_config_init(drm_dev);
7db42e97bb41bd Daniel Vetter 2020-02-27 139 if (ret)
7db42e97bb41bd Daniel Vetter 2020-02-27 140 goto err_iommu_cleanup;
2048e3286f347d Mark Yao 2014-08-22 141
2048e3286f347d Mark Yao 2014-08-22 142 rockchip_drm_mode_config_init(drm_dev);
2048e3286f347d Mark Yao 2014-08-22 143
2048e3286f347d Mark Yao 2014-08-22 144 /* Try to bind all sub drivers. */
2048e3286f347d Mark Yao 2014-08-22 145 ret = component_bind_all(dev, drm_dev);
2048e3286f347d Mark Yao 2014-08-22 146 if (ret)
ccea91998c8f14 Jeffy Chen 2017-04-06 @147 goto err_mode_config_cleanup;
2048e3286f347d Mark Yao 2014-08-22 148
ccea91998c8f14 Jeffy Chen 2017-04-06 149 ret = drm_vblank_init(drm_dev, drm_dev->mode_config.num_crtc);
ccea91998c8f14 Jeffy Chen 2017-04-06 150 if (ret)
ccea91998c8f14 Jeffy Chen 2017-04-06 151 goto err_unbind_all;
ccea91998c8f14 Jeffy Chen 2017-04-06 152
ccea91998c8f14 Jeffy Chen 2017-04-06 153 drm_mode_config_reset(drm_dev);
2048e3286f347d Mark Yao 2014-08-22 154
2048e3286f347d Mark Yao 2014-08-22 155 /*
2048e3286f347d Mark Yao 2014-08-22 156 * enable drm irq mode.
2048e3286f347d Mark Yao 2014-08-22 157 * - with irq_enabled = true, we can use the vblank feature.
2048e3286f347d Mark Yao 2014-08-22 158 */
2048e3286f347d Mark Yao 2014-08-22 159 drm_dev->irq_enabled = true;
2048e3286f347d Mark Yao 2014-08-22 160
2048e3286f347d Mark Yao 2014-08-22 161 ret = rockchip_drm_fbdev_init(drm_dev);
2048e3286f347d Mark Yao 2014-08-22 162 if (ret)
8415ab565da966 Mark Yao 2017-08-01 163 goto err_unbind_all;
8415ab565da966 Mark Yao 2017-08-01 164
8415ab565da966 Mark Yao 2017-08-01 165 /* init kms poll for handling hpd */
8415ab565da966 Mark Yao 2017-08-01 166 drm_kms_helper_poll_init(drm_dev);
2048e3286f347d Mark Yao 2014-08-22 167
9127f99c4801f3 Tomasz Figa 2016-06-21 168 ret = drm_dev_register(drm_dev, 0);
9127f99c4801f3 Tomasz Figa 2016-06-21 169 if (ret)
8415ab565da966 Mark Yao 2017-08-01 170 goto err_kms_helper_poll_fini;
9127f99c4801f3 Tomasz Figa 2016-06-21 171
2048e3286f347d Mark Yao 2014-08-22 172 return 0;
2048e3286f347d Mark Yao 2014-08-22 173 err_kms_helper_poll_fini:
2048e3286f347d Mark Yao 2014-08-22 174 drm_kms_helper_poll_fini(drm_dev);
8415ab565da966 Mark Yao 2017-08-01 175 rockchip_drm_fbdev_fini(drm_dev);
ccea91998c8f14 Jeffy Chen 2017-04-06 176 err_unbind_all:
2048e3286f347d Mark Yao 2014-08-22 177 component_unbind_all(dev, drm_dev);
7db42e97bb41bd Daniel Vetter 2020-02-27 178 err_iommu_cleanup:
ccea91998c8f14 Jeffy Chen 2017-04-06 179 rockchip_iommu_cleanup(drm_dev);
f706974a69b6e2 Tomeu Vizoso 2016-06-10 180 err_free:
574e0fbfc95e7f Thomas Zimmermann 2018-07-17 181 drm_dev_put(drm_dev);
2048e3286f347d Mark Yao 2014-08-22 182 return ret;
2048e3286f347d Mark Yao 2014-08-22 183 }
2048e3286f347d Mark Yao 2014-08-22 184
:::::: The code at line 147 was first introduced by commit
:::::: ccea91998c8f140bc3e324bbb3c3fb7148e72d31 drm/rockchip: Reorder drm bind/unbind sequence
:::::: TO: Jeffy Chen <jeffy.chen(a)rock-chips.com>
:::::: CC: Sean Paul <seanpaul(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v3 3/7] kunit: test: create a single centralized executor for all tests
by kbuild test robot
Hi Brendan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on a2f0b878c3ca531a1706cb2a8b079cea3b17bafc]
url: https://github.com/0day-ci/linux/commits/Brendan-Higgins/kunit-create-a-c...
base: a2f0b878c3ca531a1706cb2a8b079cea3b17bafc
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from fs/ext4/inode-test.c:7:0:
fs/ext4/inode-test.c: In function 'kunit_test_suites_init':
include/kunit/test.h:211:34: error: invalid initializer
struct kunit_suite *suites[] = (__suites); \
^
include/kunit/test.h:231:2: note: in expansion of macro 'kunit_test_suites_for_module'
kunit_test_suites_for_module(unique_array); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:254:2: note: in expansion of macro '__kunit_test_suites'
__kunit_test_suites(__UNIQUE_ID(array), \
^~~~~~~~~~~~~~~~~~~
>> fs/ext4/inode-test.c:272:1: note: in expansion of macro 'kunit_test_suites'
kunit_test_suites(&ext4_inode_test_suite);
^~~~~~~~~~~~~~~~~
vim +/kunit_test_suites +272 fs/ext4/inode-test.c
1cbeab1b242d16 Iurii Zaikin 2019-10-17 271
c475c77d5b5639 Alan Maguire 2020-01-06 @272 kunit_test_suites(&ext4_inode_test_suite);
c475c77d5b5639 Alan Maguire 2020-01-06 273
:::::: The code at line 272 was first introduced by commit
:::::: c475c77d5b56398303e726969e81208196b3aab3 kunit: allow kunit tests to be loaded as a module
:::::: TO: Alan Maguire <alan.maguire(a)oracle.com>
:::::: CC: Shuah Khan <skhan(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
arch/mips/include/asm/emma/emma2rh.h:120:3: error: cast to pointer from integer of different size
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 29795de0d242a5ba45904b36a5fb67e38a304cb7
commit: 3ed6751bb8fa89c3014399bb0414348499ee202a mips: fix build when "48 bits virtual memory" is enabled
date: 3 months ago
config: mips-randconfig-a001-20200229 (attached as .config)
compiler: mips64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3ed6751bb8fa89c3014399bb0414348499ee202a
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/net/ethernet/xilinx/xilinx_emaclite.c: In function 'xemaclite_send_data':
>> drivers/net/ethernet/xilinx/xilinx_emaclite.c:341:35: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
addr = (void __iomem __force *)((u32 __force)addr ^
^
>> drivers/net/ethernet/xilinx/xilinx_emaclite.c:341:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
addr = (void __iomem __force *)((u32 __force)addr ^
^
drivers/net/ethernet/xilinx/xilinx_emaclite.c: In function 'xemaclite_recv_data':
drivers/net/ethernet/xilinx/xilinx_emaclite.c:402:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
addr = (void __iomem __force *)((u32 __force)addr ^
^
drivers/net/ethernet/xilinx/xilinx_emaclite.c:402:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
addr = (void __iomem __force *)((u32 __force)addr ^
^
drivers/net/ethernet/xilinx/xilinx_emaclite.c: In function 'xemaclite_rx_handler':
drivers/net/ethernet/xilinx/xilinx_emaclite.c:100:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
#define BUFFER_ALIGN(adr) ((ALIGNMENT - ((u32)adr)) % ALIGNMENT)
^
>> drivers/net/ethernet/xilinx/xilinx_emaclite.c:616:10: note: in expansion of macro 'BUFFER_ALIGN'
align = BUFFER_ALIGN(skb->data);
^~~~~~~~~~~~
In file included from include/linux/dma-mapping.h:7:0,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:19,
from include/uapi/linux/ethtool.h:19,
from include/linux/ethtool.h:18,
from include/linux/netdevice.h:37,
from drivers/net/ethernet/xilinx/xilinx_emaclite.c:13:
drivers/net/ethernet/xilinx/xilinx_emaclite.c: In function 'xemaclite_of_probe':
drivers/net/ethernet/xilinx/xilinx_emaclite.c:1196:4: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(unsigned int __force)lp->base_addr, ndev->irq);
^
include/linux/device.h:1747:33: note: in definition of macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
{standard input}: Assembler messages:
{standard input}:169: Error: found '(', expected: ')'
{standard input}:169: Error: found '(', expected: ')'
{standard input}:169: Error: non-constant expression in ".if" statement
{standard input}:169: Error: junk at end of line, first unrecognized character is `('
{standard input}:258: Error: found '(', expected: ')'
{standard input}:258: Error: found '(', expected: ')'
{standard input}:258: Error: non-constant expression in ".if" statement
{standard input}:258: Error: junk at end of line, first unrecognized character is `('
{standard input}:4151: Error: found '(', expected: ')'
{standard input}:4151: Error: found '(', expected: ')'
{standard input}:4151: Error: non-constant expression in ".if" statement
{standard input}:4151: Error: junk at end of line, first unrecognized character is `('
{standard input}:4612: Error: found '(', expected: ')'
{standard input}:4612: Error: found '(', expected: ')'
{standard input}:4612: Error: non-constant expression in ".if" statement
{standard input}:4612: Error: junk at end of line, first unrecognized character is `('
{standard input}:5000: Error: found '(', expected: ')'
{standard input}:5000: Error: found '(', expected: ')'
{standard input}:5000: Error: non-constant expression in ".if" statement
{standard input}:5000: Error: junk at end of line, first unrecognized character is `('
{standard input}:5361: Error: found '(', expected: ')'
{standard input}:5361: Error: found '(', expected: ')'
{standard input}:5361: Error: non-constant expression in ".if" statement
{standard input}:5361: Error: junk at end of line, first unrecognized character is `('
--
In file included from arch/mips//emma/common/prom.c:16:0:
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out32':
>> arch/mips/include/asm/emma/emma2rh.h:120:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u32 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in32':
arch/mips/include/asm/emma/emma2rh.h:126:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u32 val = *(volatile u32 *)(EMMA2RH_BASE | offset);
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out16':
arch/mips/include/asm/emma/emma2rh.h:132:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u16 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in16':
arch/mips/include/asm/emma/emma2rh.h:138:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u16 val = *(volatile u16 *)(EMMA2RH_BASE | offset);
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out8':
arch/mips/include/asm/emma/emma2rh.h:144:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u8 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in8':
arch/mips/include/asm/emma/emma2rh.h:150:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u8 val = *(volatile u8 *)(EMMA2RH_BASE | offset);
^
cc1: all warnings being treated as errors
--
In file included from arch/mips//emma/markeins/setup.c:16:0:
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out32':
>> arch/mips/include/asm/emma/emma2rh.h:120:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u32 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in32':
arch/mips/include/asm/emma/emma2rh.h:126:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u32 val = *(volatile u32 *)(EMMA2RH_BASE | offset);
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out16':
arch/mips/include/asm/emma/emma2rh.h:132:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u16 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in16':
arch/mips/include/asm/emma/emma2rh.h:138:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u16 val = *(volatile u16 *)(EMMA2RH_BASE | offset);
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out8':
arch/mips/include/asm/emma/emma2rh.h:144:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u8 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in8':
arch/mips/include/asm/emma/emma2rh.h:150:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u8 val = *(volatile u8 *)(EMMA2RH_BASE | offset);
^
arch/mips//emma/markeins/setup.c: In function 'plat_mem_setup':
>> arch/mips//emma/markeins/setup.c:89:19: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
set_io_port_base(KSEG1ADDR(EMMA2RH_PCI_IO_BASE));
^~~~~~~~~
CKSEG1ADDR
cc1: all warnings being treated as errors
--
In file included from arch/mips//emma/markeins/platform.c:23:0:
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out32':
>> arch/mips/include/asm/emma/emma2rh.h:120:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u32 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in32':
arch/mips/include/asm/emma/emma2rh.h:126:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u32 val = *(volatile u32 *)(EMMA2RH_BASE | offset);
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out16':
arch/mips/include/asm/emma/emma2rh.h:132:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u16 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in16':
arch/mips/include/asm/emma/emma2rh.h:138:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u16 val = *(volatile u16 *)(EMMA2RH_BASE | offset);
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_out8':
arch/mips/include/asm/emma/emma2rh.h:144:3: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
*(volatile u8 *)(EMMA2RH_BASE | offset) = val;
^
arch/mips/include/asm/emma/emma2rh.h: In function 'emma2rh_in8':
arch/mips/include/asm/emma/emma2rh.h:150:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
u8 val = *(volatile u8 *)(EMMA2RH_BASE | offset);
^
arch/mips//emma/markeins/platform.c: At top level:
>> arch/mips//emma/markeins/platform.c:96:28: error: implicit declaration of function 'KSEG1ADDR'; did you mean 'CKSEG1ADDR'? [-Werror=implicit-function-declaration]
.membase= (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR0_BASE + 3),
^~~~~~~~~
CKSEG1ADDR
>> arch/mips//emma/markeins/platform.c:96:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
.membase= (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR0_BASE + 3),
^
>> arch/mips//emma/markeins/platform.c:96:13: error: initializer element is not constant
arch/mips//emma/markeins/platform.c:96:13: note: (near initialization for 'platform_serial_ports[0].membase')
arch/mips//emma/markeins/platform.c:104:14: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
.membase = (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR1_BASE + 3),
^
arch/mips//emma/markeins/platform.c:104:14: error: initializer element is not constant
arch/mips//emma/markeins/platform.c:104:14: note: (near initialization for 'platform_serial_ports[1].membase')
arch/mips//emma/markeins/platform.c:112:14: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
.membase = (void __iomem*)KSEG1ADDR(EMMA2RH_PFUR2_BASE + 3),
^
arch/mips//emma/markeins/platform.c:112:14: error: initializer element is not constant
arch/mips//emma/markeins/platform.c:112:14: note: (near initialization for 'platform_serial_ports[2].membase')
cc1: all warnings being treated as errors
vim +120 arch/mips/include/asm/emma/emma2rh.h
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 117
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 118 static inline void emma2rh_out32(u32 offset, u32 val)
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 119 {
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 @120 *(volatile u32 *)(EMMA2RH_BASE | offset) = val;
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 121 emma2rh_sync();
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 122 }
355c471f2ff324 include/asm-mips/emma2rh/emma2rh.h dmitry pervushin 2006-05-21 123
:::::: The code at line 120 was first introduced by commit
:::::: 355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68 [MIPS] Support for the R5500-based NEC EMMA2RH Mark-eins board
:::::: TO: dmitry pervushin <dpervushin(a)ru.mvista.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 2/2] pinctrl: sprd: Allow the SPRD pinctrl driver building into a module
by kbuild test robot
Hi Baolin,
I love your patch! Yet something to improve:
[auto build test ERROR on pinctrl/devel]
[also build test ERROR on v5.6-rc3 next-20200228]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Baolin-Wang/pinctrl-Export-some-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git devel
config: i386-randconfig-d003-20200229 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/pinctrl/sprd/pinctrl-sprd.c: In function 'sprd_dt_node_to_map':
>> drivers/pinctrl/sprd/pinctrl-sprd.c:282:8: error: implicit declaration of function 'pinconf_generic_parse_dt_config'; did you mean 'pinconf_generic_dump_config'? [-Werror=implicit-function-declaration]
ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pinconf_generic_dump_config
cc1: some warnings being treated as errors
vim +282 drivers/pinctrl/sprd/pinctrl-sprd.c
41d32cfce1ae61 Baolin Wang 2017-08-17 241
41d32cfce1ae61 Baolin Wang 2017-08-17 242 static int sprd_dt_node_to_map(struct pinctrl_dev *pctldev,
41d32cfce1ae61 Baolin Wang 2017-08-17 243 struct device_node *np,
41d32cfce1ae61 Baolin Wang 2017-08-17 244 struct pinctrl_map **map,
41d32cfce1ae61 Baolin Wang 2017-08-17 245 unsigned int *num_maps)
41d32cfce1ae61 Baolin Wang 2017-08-17 246 {
41d32cfce1ae61 Baolin Wang 2017-08-17 247 struct sprd_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev);
41d32cfce1ae61 Baolin Wang 2017-08-17 248 const struct sprd_pin_group *grp;
41d32cfce1ae61 Baolin Wang 2017-08-17 249 unsigned long *configs = NULL;
41d32cfce1ae61 Baolin Wang 2017-08-17 250 unsigned int num_configs = 0;
41d32cfce1ae61 Baolin Wang 2017-08-17 251 unsigned int reserved_maps = 0;
41d32cfce1ae61 Baolin Wang 2017-08-17 252 unsigned int reserve = 0;
41d32cfce1ae61 Baolin Wang 2017-08-17 253 const char *function;
41d32cfce1ae61 Baolin Wang 2017-08-17 254 enum pinctrl_map_type type;
41d32cfce1ae61 Baolin Wang 2017-08-17 255 int ret;
41d32cfce1ae61 Baolin Wang 2017-08-17 256
41d32cfce1ae61 Baolin Wang 2017-08-17 257 grp = sprd_pinctrl_find_group_by_name(pctl, np->name);
41d32cfce1ae61 Baolin Wang 2017-08-17 258 if (!grp) {
41d32cfce1ae61 Baolin Wang 2017-08-17 259 dev_err(pctl->dev, "unable to find group for node %s\n",
41d32cfce1ae61 Baolin Wang 2017-08-17 260 of_node_full_name(np));
41d32cfce1ae61 Baolin Wang 2017-08-17 261 return -EINVAL;
41d32cfce1ae61 Baolin Wang 2017-08-17 262 }
41d32cfce1ae61 Baolin Wang 2017-08-17 263
41d32cfce1ae61 Baolin Wang 2017-08-17 264 ret = of_property_count_strings(np, "pins");
41d32cfce1ae61 Baolin Wang 2017-08-17 265 if (ret < 0)
41d32cfce1ae61 Baolin Wang 2017-08-17 266 return ret;
41d32cfce1ae61 Baolin Wang 2017-08-17 267
41d32cfce1ae61 Baolin Wang 2017-08-17 268 if (ret == 1)
41d32cfce1ae61 Baolin Wang 2017-08-17 269 type = PIN_MAP_TYPE_CONFIGS_PIN;
41d32cfce1ae61 Baolin Wang 2017-08-17 270 else
41d32cfce1ae61 Baolin Wang 2017-08-17 271 type = PIN_MAP_TYPE_CONFIGS_GROUP;
41d32cfce1ae61 Baolin Wang 2017-08-17 272
41d32cfce1ae61 Baolin Wang 2017-08-17 273 ret = of_property_read_string(np, "function", &function);
41d32cfce1ae61 Baolin Wang 2017-08-17 274 if (ret < 0) {
41d32cfce1ae61 Baolin Wang 2017-08-17 275 if (ret != -EINVAL)
41d32cfce1ae61 Baolin Wang 2017-08-17 276 dev_err(pctl->dev,
41d32cfce1ae61 Baolin Wang 2017-08-17 277 "%s: could not parse property function\n",
41d32cfce1ae61 Baolin Wang 2017-08-17 278 of_node_full_name(np));
41d32cfce1ae61 Baolin Wang 2017-08-17 279 function = NULL;
41d32cfce1ae61 Baolin Wang 2017-08-17 280 }
41d32cfce1ae61 Baolin Wang 2017-08-17 281
41d32cfce1ae61 Baolin Wang 2017-08-17 @282 ret = pinconf_generic_parse_dt_config(np, pctldev, &configs,
41d32cfce1ae61 Baolin Wang 2017-08-17 283 &num_configs);
41d32cfce1ae61 Baolin Wang 2017-08-17 284 if (ret < 0) {
41d32cfce1ae61 Baolin Wang 2017-08-17 285 dev_err(pctl->dev, "%s: could not parse node property\n",
41d32cfce1ae61 Baolin Wang 2017-08-17 286 of_node_full_name(np));
41d32cfce1ae61 Baolin Wang 2017-08-17 287 return ret;
41d32cfce1ae61 Baolin Wang 2017-08-17 288 }
41d32cfce1ae61 Baolin Wang 2017-08-17 289
41d32cfce1ae61 Baolin Wang 2017-08-17 290 *map = NULL;
41d32cfce1ae61 Baolin Wang 2017-08-17 291 *num_maps = 0;
41d32cfce1ae61 Baolin Wang 2017-08-17 292
41d32cfce1ae61 Baolin Wang 2017-08-17 293 if (function != NULL)
41d32cfce1ae61 Baolin Wang 2017-08-17 294 reserve++;
41d32cfce1ae61 Baolin Wang 2017-08-17 295 if (num_configs)
41d32cfce1ae61 Baolin Wang 2017-08-17 296 reserve++;
41d32cfce1ae61 Baolin Wang 2017-08-17 297
41d32cfce1ae61 Baolin Wang 2017-08-17 298 ret = pinctrl_utils_reserve_map(pctldev, map, &reserved_maps,
41d32cfce1ae61 Baolin Wang 2017-08-17 299 num_maps, reserve);
41d32cfce1ae61 Baolin Wang 2017-08-17 300 if (ret < 0)
41d32cfce1ae61 Baolin Wang 2017-08-17 301 goto out;
41d32cfce1ae61 Baolin Wang 2017-08-17 302
41d32cfce1ae61 Baolin Wang 2017-08-17 303 if (function) {
41d32cfce1ae61 Baolin Wang 2017-08-17 304 ret = pinctrl_utils_add_map_mux(pctldev, map,
41d32cfce1ae61 Baolin Wang 2017-08-17 305 &reserved_maps, num_maps,
41d32cfce1ae61 Baolin Wang 2017-08-17 306 grp->name, function);
41d32cfce1ae61 Baolin Wang 2017-08-17 307 if (ret < 0)
41d32cfce1ae61 Baolin Wang 2017-08-17 308 goto out;
41d32cfce1ae61 Baolin Wang 2017-08-17 309 }
41d32cfce1ae61 Baolin Wang 2017-08-17 310
41d32cfce1ae61 Baolin Wang 2017-08-17 311 if (num_configs) {
41d32cfce1ae61 Baolin Wang 2017-08-17 312 const char *group_or_pin;
41d32cfce1ae61 Baolin Wang 2017-08-17 313 unsigned int pin_id;
41d32cfce1ae61 Baolin Wang 2017-08-17 314
41d32cfce1ae61 Baolin Wang 2017-08-17 315 if (type == PIN_MAP_TYPE_CONFIGS_PIN) {
41d32cfce1ae61 Baolin Wang 2017-08-17 316 pin_id = grp->pins[0];
41d32cfce1ae61 Baolin Wang 2017-08-17 317 group_or_pin = pin_get_name(pctldev, pin_id);
41d32cfce1ae61 Baolin Wang 2017-08-17 318 } else {
41d32cfce1ae61 Baolin Wang 2017-08-17 319 group_or_pin = grp->name;
41d32cfce1ae61 Baolin Wang 2017-08-17 320 }
41d32cfce1ae61 Baolin Wang 2017-08-17 321
41d32cfce1ae61 Baolin Wang 2017-08-17 322 ret = pinctrl_utils_add_map_configs(pctldev, map,
41d32cfce1ae61 Baolin Wang 2017-08-17 323 &reserved_maps, num_maps,
41d32cfce1ae61 Baolin Wang 2017-08-17 324 group_or_pin, configs,
41d32cfce1ae61 Baolin Wang 2017-08-17 325 num_configs, type);
41d32cfce1ae61 Baolin Wang 2017-08-17 326 }
41d32cfce1ae61 Baolin Wang 2017-08-17 327
41d32cfce1ae61 Baolin Wang 2017-08-17 328 out:
41d32cfce1ae61 Baolin Wang 2017-08-17 329 kfree(configs);
41d32cfce1ae61 Baolin Wang 2017-08-17 330 return ret;
41d32cfce1ae61 Baolin Wang 2017-08-17 331 }
41d32cfce1ae61 Baolin Wang 2017-08-17 332
:::::: The code at line 282 was first introduced by commit
:::::: 41d32cfce1ae616413761d07986e1fb4b907e808 pinctrl: sprd: Add Spreadtrum pin control driver
:::::: TO: Baolin Wang <baolin.wang(a)spreadtrum.com>
:::::: CC: Linus Walleij <linus.walleij(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months