All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linus-next:linus-next 26/46] drivers/gpu/drm/msm/msm_iommu.c:228:19: error: initialization of 'void (*)(void *)' from incompatible pointer type 'int (*)(void *, phys_addr_t,  u64,  size_t,  size_t,  int,  size_t *)' {aka 'int (*)(void *, unsigned int,  long long unsigned int,  unsign...
@ 2026-11-30  4:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-30  4:34 UTC (permalink / raw)
  To: Sasha Levin; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linus-next.git linus-next
head:   49b209f67bef90a1ddb7687439603974630e1737
commit: e8d2357d7226671b45f6d4867157639fcd221cfd [26/46] Merge branch 'mm-next' into all-next
config: arm-randconfig-2200-20261130 (https://download.01.org/0day-ci/archive/20261130/20261130053306.FsqVyCVa-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261130/20261130053306.FsqVyCVa-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261130053306.FsqVyCVa-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/msm/msm_iommu.c:228:2: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     __unmap_pgtable, __map_pgtable, __flush_pgtable
     ^~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/msm_iommu.c:228:2: note: (near initialization for 'pgtable_ops')
   drivers/gpu/drm/msm/msm_iommu.c:228:19: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     __unmap_pgtable, __map_pgtable, __flush_pgtable
                      ^~~~~~~~~~~~~
   drivers/gpu/drm/msm/msm_iommu.c:228:19: note: (near initialization for 'pgtable_ops')
>> drivers/gpu/drm/msm/msm_iommu.c:228:19: error: initialization of 'void (*)(void *)' from incompatible pointer type 'int (*)(void *, phys_addr_t,  u64,  size_t,  size_t,  int,  size_t *)' {aka 'int (*)(void *, unsigned int,  long long unsigned int,  unsigned int,  unsigned int,  int,  unsigned int *)'} [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/msm/msm_iommu.c:228:19: note: (near initialization for 'pgtable_ops.flush')
   drivers/gpu/drm/msm/msm_iommu.c:228:34: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     __unmap_pgtable, __map_pgtable, __flush_pgtable
                                     ^~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/msm_iommu.c:228:34: note: (near initialization for 'pgtable_ops')
   drivers/gpu/drm/msm/msm_iommu.c:228:34: error: initialization of 'int (*)(void *, phys_addr_t,  u64,  size_t,  size_t,  int,  size_t *)' {aka 'int (*)(void *, unsigned int,  long long unsigned int,  unsigned int,  unsigned int,  int,  unsigned int *)'} from incompatible pointer type 'void (*)(void *)' [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/msm/msm_iommu.c:228:34: note: (near initialization for 'pgtable_ops.map')
   drivers/gpu/drm/msm/msm_iommu.c:762:2: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     __unmap_iommu, __map_iommu, __flush_iommu
     ^~~~~~~~~~~~~
   drivers/gpu/drm/msm/msm_iommu.c:762:2: note: (near initialization for 'iommu_ops')
   drivers/gpu/drm/msm/msm_iommu.c:762:17: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     __unmap_iommu, __map_iommu, __flush_iommu
                    ^~~~~~~~~~~
   drivers/gpu/drm/msm/msm_iommu.c:762:17: note: (near initialization for 'iommu_ops')
   drivers/gpu/drm/msm/msm_iommu.c:762:17: error: initialization of 'void (*)(void *)' from incompatible pointer type 'int (*)(void *, phys_addr_t,  u64,  size_t,  size_t,  int,  size_t *)' {aka 'int (*)(void *, unsigned int,  long long unsigned int,  unsigned int,  unsigned int,  int,  unsigned int *)'} [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/msm/msm_iommu.c:762:17: note: (near initialization for 'iommu_ops.flush')
   drivers/gpu/drm/msm/msm_iommu.c:762:30: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
     __unmap_iommu, __map_iommu, __flush_iommu
                                 ^~~~~~~~~~~~~
   drivers/gpu/drm/msm/msm_iommu.c:762:30: note: (near initialization for 'iommu_ops')
   drivers/gpu/drm/msm/msm_iommu.c:762:30: error: initialization of 'int (*)(void *, phys_addr_t,  u64,  size_t,  size_t,  int,  size_t *)' {aka 'int (*)(void *, unsigned int,  long long unsigned int,  unsigned int,  unsigned int,  int,  unsigned int *)'} from incompatible pointer type 'void (*)(void *)' [-Werror=incompatible-pointer-types]
   drivers/gpu/drm/msm/msm_iommu.c:762:30: note: (near initialization for 'iommu_ops.map')
   cc1: some warnings being treated as errors


vim +228 drivers/gpu/drm/msm/msm_iommu.c

b145c6e65eb05e Jordan Crouse 2020-08-17  226  
aa20cf2a2960b1 Rob Clark     2026-10-30  227  static const struct map_ops pgtable_ops = {
aa20cf2a2960b1 Rob Clark     2026-10-30 @228  	__unmap_pgtable, __map_pgtable, __flush_pgtable
aa20cf2a2960b1 Rob Clark     2026-10-30  229  };
2c7ad9925523f6 Rob Clark     2025-06-29  230  

:::::: The code at line 228 was first introduced by commit
:::::: aa20cf2a2960b170c25152ee00cece5f021efc63 drm/msm: Extract out map/unmap helpers

:::::: TO: Rob Clark <robin.clark@oss.qualcomm.com>
:::::: CC: Rob Clark <robin.clark@oss.qualcomm.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2026-11-30  4:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  4:34 [sashal-linus-next:linus-next 26/46] drivers/gpu/drm/msm/msm_iommu.c:228:19: error: initialization of 'void (*)(void *)' from incompatible pointer type 'int (*)(void *, phys_addr_t, u64, size_t, size_t, int, size_t *)' {aka 'int (*)(void *, unsigned int, long long unsigned int, unsign 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.