Hi Mullati,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip v5.16-rc1 next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    
https://github.com/0day-ci/linux/commits/Mullati-Siva/drm-i915-Skip-remap_io-calls-for-non-x86-platforms/20211118-191629
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-a002-20211118 (attached as .config)
reproduce (this is a W=1 build):
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # 
https://github.com/0day-ci/linux/commit/3cc867f614222b682fb1f739ff6db5133d9352ad
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review 
Mullati-Siva/drm-i915-Skip-remap_io-calls-for-non-x86-platforms/20211118-191629
        git checkout 3cc867f614222b682fb1f739ff6db5133d9352ad
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 
ARCH=i386 

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

All errors (new ones prefixed by >>):

   In file included from <built-in>:4:
>> drivers/gpu/drm/i915/i915_mm.h:10:29: error: declaration of 'struct 
>> vm_area_struct' will not be visible outside of this function 
>> [-Werror,-Wvisibility]
   int remap_io_mapping(struct vm_area_struct *vma,
                               ^
>> drivers/gpu/drm/i915/i915_mm.h:12:29: error: declaration of 'struct 
>> io_mapping' will not be visible outside of this function 
>> [-Werror,-Wvisibility]
                        struct io_mapping *iomap);
                               ^
   drivers/gpu/drm/i915/i915_mm.h:13:24: error: declaration of 'struct 
vm_area_struct' will not be visible outside of this function 
[-Werror,-Wvisibility]
   int remap_io_sg(struct vm_area_struct *vma,
                          ^
>> drivers/gpu/drm/i915/i915_mm.h:15:24: error: declaration of 'struct 
>> scatterlist' will not be visible outside of this function 
>> [-Werror,-Wvisibility]
                   struct scatterlist *sgl, resource_size_t iobase);
                          ^
>> drivers/gpu/drm/i915/i915_mm.h:15:42: error: unknown type name 
>> 'resource_size_t'
                   struct scatterlist *sgl, resource_size_t iobase);
                                            ^
   5 errors generated.


vim +10 drivers/gpu/drm/i915/i915_mm.h

     8  
     9  #if IS_ENABLED(CONFIG_X86)
  > 10  int remap_io_mapping(struct vm_area_struct *vma,
    11                       unsigned long addr, unsigned long pfn, unsigned 
long size,
  > 12                       struct io_mapping *iomap);
    13  int remap_io_sg(struct vm_area_struct *vma,
    14                  unsigned long addr, unsigned long size,
  > 15                  struct scatterlist *sgl, resource_size_t iobase);
    16  #else
    17  static inline int remap_io_mapping(struct vm_area_struct *vma,
    18                       unsigned long addr, unsigned long pfn, unsigned 
long size,
    19                       struct io_mapping *iomap)
    20  {
    21          return 0;
    22  }
    23  static inline int remap_io_sg(struct vm_area_struct *vma,
    24                  unsigned long addr, unsigned long size,
    25                  struct scatterlist *sgl, resource_size_t iobase)
    26  {
    27          return 0;
    28  }
    29  #endif
    30  

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

Attachment: .config.gz
Description: application/gzip

Reply via email to