mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu'
@ 2020-05-15 18:59 kbuild test robot
  2020-05-18 12:20 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-05-15 18:59 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: kbuild-all, linux-kernel, Joerg Roedel

[-- Attachment #1: Type: text/plain, Size: 2838 bytes --]

Hi Krzysztof,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   051e6b7e34b9bd24f46725f74994a4d3a653966e
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers
date:   2 months ago
config: ia64-randconfig-r015-20200515 (attached as .config)
compiler: ia64-linux-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
        git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>, old ones prefixed by <<):

drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_from_dev':
>> drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu'
839 |  struct rk_iommudata *data = dev->archdata.iommu;
|                                           ^
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_add_device':
drivers/iommu/rockchip-iommu.c:1063:22: error: 'struct dev_archdata' has no member named 'iommu'
1063 |  data = dev->archdata.iommu;
|                      ^
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_remove_device':
drivers/iommu/rockchip-iommu.c:1084:43: error: 'struct dev_archdata' has no member named 'iommu'
1084 |  struct rk_iommudata *data = dev->archdata.iommu;
|                                           ^
drivers/iommu/rockchip-iommu.c: In function 'rk_iommu_of_xlate':
drivers/iommu/rockchip-iommu.c:1115:15: error: 'struct dev_archdata' has no member named 'iommu'
1115 |  dev->archdata.iommu = data;
|               ^

vim +839 drivers/iommu/rockchip-iommu.c

c68a292152d322 Daniel Kurtz 2014-11-03  836  
c68a292152d322 Daniel Kurtz 2014-11-03  837  static struct rk_iommu *rk_iommu_from_dev(struct device *dev)
c68a292152d322 Daniel Kurtz 2014-11-03  838  {
5fd577c3eac3bd Jeffy Chen   2018-03-23 @839  	struct rk_iommudata *data = dev->archdata.iommu;
c68a292152d322 Daniel Kurtz 2014-11-03  840  
5fd577c3eac3bd Jeffy Chen   2018-03-23  841  	return data ? data->iommu : NULL;
c68a292152d322 Daniel Kurtz 2014-11-03  842  }
c68a292152d322 Daniel Kurtz 2014-11-03  843  

:::::: The code at line 839 was first introduced by commit
:::::: 5fd577c3eac3bdb9aebfec01e9b3d7f07a14f2dd iommu/rockchip: Use OF_IOMMU to attach devices automatically

:::::: TO: Jeffy Chen <jeffy.chen@rock-chips.com>
:::::: CC: Joerg Roedel <jroedel@suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35779 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu'
  2020-05-15 18:59 drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu' kbuild test robot
@ 2020-05-18 12:20 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2020-05-18 12:20 UTC (permalink / raw)
  To: kbuild test robot; +Cc: kbuild-all, linux-kernel, Joerg Roedel

On Fri, 15 May 2020 at 21:00, kbuild test robot <lkp@intel.com> wrote:
>
> Hi Krzysztof,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   051e6b7e34b9bd24f46725f74994a4d3a653966e
> commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers
> date:   2 months ago
> config: ia64-randconfig-r015-20200515 (attached as .config)
> compiler: ia64-linux-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
>         git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kbuild test robot <lkp@intel.com>

Hi all,

I fixed this and Exynos IOMMU compile-test error with the patch here:
https://lore.kernel.org/linux-iommu/20200518120855.27822-1-krzk@kernel.org/T/#t

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-18 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-15 18:59 drivers/iommu/rockchip-iommu.c:839:43: error: 'struct dev_archdata' has no member named 'iommu' kbuild test robot
2020-05-18 12:20 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®