All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sasha Levin <sashal@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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...
Date: Mon, 30 Nov 2026 05:34:26 +0100	[thread overview]
Message-ID: <20261130053306.FsqVyCVa-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-11-30  4:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130053306.FsqVyCVa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sashal@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.