All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.4 18/31] drivers/iommu/omap-iommu.c:74:56: error: 'struct dev_archdata' has no member named 'iommu'
@ 2020-07-31  1:47 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-31  1:47 UTC (permalink / raw)
  To: kbuild-all

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

Hi Krzysztof,

First bad commit (maybe != root cause):

tree:   https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head:   ca0e26a7718b27d66efd654d8e48798d6a2f450b
commit: 3fc10df58bc20bedf862d4f31edde00758b17726 [18/31] UPSTREAM: iommu: Enable compile testing for some of drivers
config: ia64-randconfig-r025-20200730 (attached as .config)
compiler: ia64-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
        git checkout 3fc10df58bc20bedf862d4f31edde00758b17726
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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

All errors (new ones prefixed by >>):

   drivers/iommu/omap-iommu.c: In function 'omap_iommu_save_ctx':
>> drivers/iommu/omap-iommu.c:74:56: error: 'struct dev_archdata' has no member named 'iommu'
      74 |  struct omap_iommu_arch_data *arch_data = dev->archdata.iommu;
         |                                                        ^
   drivers/iommu/omap-iommu.c: In function 'omap_iommu_restore_ctx':
   drivers/iommu/omap-iommu.c:104:56: error: 'struct dev_archdata' has no member named 'iommu'
     104 |  struct omap_iommu_arch_data *arch_data = dev->archdata.iommu;
         |                                                        ^
   In file included from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/device.h:16,
                    from include/linux/dma-mapping.h:7,
                    from drivers/iommu/omap-iommu.c:12:
   drivers/iommu/omap-iommu.c: In function 'omap2_iommu_enable':
   drivers/iommu/omap-iommu.c:159:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     159 |  if (!obj->iopgd || !IS_ALIGNED((u32)obj->iopgd,  SZ_16K))
         |                                 ^
   include/linux/kernel.h:37:30: note: in definition of macro 'IS_ALIGNED'
      37 | #define IS_ALIGNED(x, a)  (((x) & ((typeof(x))(a) - 1)) == 0)
         |                              ^
   drivers/iommu/omap-iommu.c:159:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     159 |  if (!obj->iopgd || !IS_ALIGNED((u32)obj->iopgd,  SZ_16K))
         |                                 ^
   include/linux/kernel.h:37:44: note: in definition of macro 'IS_ALIGNED'
      37 | #define IS_ALIGNED(x, a)  (((x) & ((typeof(x))(a) - 1)) == 0)
         |                                            ^
   In file included from include/linux/printk.h:327,
                    from include/linux/kernel.h:15,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/device.h:16,
                    from include/linux/dma-mapping.h:7,
                    from drivers/iommu/omap-iommu.c:12:
   drivers/iommu/omap-iommu.c: In function 'flush_iotlb_page':
   drivers/iommu/omap-iommu.c:426:22: warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
     426 |    dev_dbg(obj->dev, "%s: %08x<=%08x(%x)\n",
         |                      ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
     125 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
     157 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/device.h:1748:2: note: in expansion of macro 'dynamic_dev_dbg'
    1748 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   include/linux/device.h:1748:23: note: in expansion of macro 'dev_fmt'
    1748 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                       ^~~~~~~
   drivers/iommu/omap-iommu.c:426:4: note: in expansion of macro 'dev_dbg'
     426 |    dev_dbg(obj->dev, "%s: %08x<=%08x(%x)\n",
         |    ^~~~~~~
   drivers/iommu/omap-iommu.c:426:39: note: format string is defined here
     426 |    dev_dbg(obj->dev, "%s: %08x<=%08x(%x)\n",
         |                                      ~^
         |                                       |
         |                                       unsigned int
         |                                      %lx
   In file included from include/linux/dma-mapping.h:7,
                    from drivers/iommu/omap-iommu.c:12:
   drivers/iommu/omap-iommu.c: In function 'omap_iommu_map':
   drivers/iommu/omap-iommu.c:1338:16: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
    1338 |   dev_err(dev, "invalid size to map: %d\n", bytes);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1655:22: note: in definition of macro 'dev_fmt'
    1655 | #define dev_fmt(fmt) fmt
         |                      ^~~
   drivers/iommu/omap-iommu.c:1338:3: note: in expansion of macro 'dev_err'
    1338 |   dev_err(dev, "invalid size to map: %d\n", bytes);
         |   ^~~~~~~
   drivers/iommu/omap-iommu.c:1338:39: note: format string is defined here
    1338 |   dev_err(dev, "invalid size to map: %d\n", bytes);
         |                                      ~^
         |                                       |
         |                                       int
         |                                      %ld
   In file included from include/linux/printk.h:327,
                    from include/linux/kernel.h:15,
                    from include/linux/list.h:9,
                    from include/linux/kobject.h:19,
                    from include/linux/device.h:16,
                    from include/linux/dma-mapping.h:7,
                    from drivers/iommu/omap-iommu.c:12:
   drivers/iommu/omap-iommu.c:1342:15: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
    1342 |  dev_dbg(dev, "mapping da 0x%lx to pa %pa size 0x%x\n", da, &pa, bytes);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
     125 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
     157 |  _dynamic_func_call(fmt,__dynamic_dev_dbg,   \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/device.h:1748:2: note: in expansion of macro 'dynamic_dev_dbg'
    1748 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~
   include/linux/device.h:1748:23: note: in expansion of macro 'dev_fmt'
    1748 |  dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                       ^~~~~~~
   drivers/iommu/omap-iommu.c:1342:2: note: in expansion of macro 'dev_dbg'
    1342 |  dev_dbg(dev, "mapping da 0x%lx to pa %pa size 0x%x\n", da, &pa, bytes);
         |  ^~~~~~~
   drivers/iommu/omap-iommu.c:1342:51: note: format string is defined here

vim +74 drivers/iommu/omap-iommu.c

8cf851e09452517 drivers/iommu/omap-iommu.c Joerg Roedel   2015-03-26  64  
a9dcad5e375800f arch/arm/plat-omap/iommu.c Hiroshi DOYU   2009-01-26  65  /**
6c32df437c7c5b1 drivers/iommu/omap-iommu.c Ohad Ben-Cohen 2011-08-17  66   * omap_iommu_save_ctx - Save registers for pm off-mode support
fabdbca8c991dfa drivers/iommu/omap-iommu.c Ohad Ben-Cohen 2011-10-11  67   * @dev:	client device
c4206c4e190bd27 drivers/iommu/omap-iommu.c Suman Anna     2019-08-07  68   *
c4206c4e190bd27 drivers/iommu/omap-iommu.c Suman Anna     2019-08-07  69   * This should be treated as an deprecated API. It is preserved only
c4206c4e190bd27 drivers/iommu/omap-iommu.c Suman Anna     2019-08-07  70   * to maintain existing functionality for OMAP3 ISP driver.
a9dcad5e375800f arch/arm/plat-omap/iommu.c Hiroshi DOYU   2009-01-26  71   **/
fabdbca8c991dfa drivers/iommu/omap-iommu.c Ohad Ben-Cohen 2011-10-11  72  void omap_iommu_save_ctx(struct device *dev)
a9dcad5e375800f arch/arm/plat-omap/iommu.c Hiroshi DOYU   2009-01-26  73  {
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05 @74  	struct omap_iommu_arch_data *arch_data = dev->archdata.iommu;
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  75  	struct omap_iommu *obj;
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  76  	u32 *p;
bd4396f09a4a9e7 drivers/iommu/omap-iommu.c Suman Anna     2014-10-22  77  	int i;
fabdbca8c991dfa drivers/iommu/omap-iommu.c Ohad Ben-Cohen 2011-10-11  78  
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  79  	if (!arch_data)
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  80  		return;
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  81  
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  82  	while (arch_data->iommu_dev) {
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  83  		obj = arch_data->iommu_dev;
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  84  		p = obj->ctx;
bd4396f09a4a9e7 drivers/iommu/omap-iommu.c Suman Anna     2014-10-22  85  		for (i = 0; i < (MMU_REG_SIZE / sizeof(u32)); i++) {
bd4396f09a4a9e7 drivers/iommu/omap-iommu.c Suman Anna     2014-10-22  86  			p[i] = iommu_read_reg(obj, i * sizeof(u32));
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  87  			dev_dbg(obj->dev, "%s\t[%02d] %08x\n", __func__, i,
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  88  				p[i]);
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  89  		}
9d5018deec86673 drivers/iommu/omap-iommu.c Suman Anna     2017-09-05  90  		arch_data++;
bd4396f09a4a9e7 drivers/iommu/omap-iommu.c Suman Anna     2014-10-22  91  	}
a9dcad5e375800f arch/arm/plat-omap/iommu.c Hiroshi DOYU   2009-01-26  92  }
6c32df437c7c5b1 drivers/iommu/omap-iommu.c Ohad Ben-Cohen 2011-08-17  93  EXPORT_SYMBOL_GPL(omap_iommu_save_ctx);
a9dcad5e375800f arch/arm/plat-omap/iommu.c Hiroshi DOYU   2009-01-26  94  

:::::: The code at line 74 was first introduced by commit
:::::: 9d5018deec86673ef8418546a3ac43e47dbff3b9 iommu/omap: Add support to program multiple iommus

:::::: TO: Suman Anna <s-anna@ti.com>
:::::: CC: Joerg Roedel <jroedel@suse.de>

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-31  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31  1:47 [chrome-os:chromeos-5.4 18/31] drivers/iommu/omap-iommu.c:74:56: error: 'struct dev_archdata' has no member named 'iommu' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.