* [vsyrjala:remap_tile_ys_64 18/30] drivers/gpu/drm/i915/i915_vma.c:968:1: error: conflicting types for 'add_pages'; have 'struct scatterlist *(dma_addr_t, unsigned int, struct sg_table *, struct scatterlist *)' {aka 'struct scatterlist *(long long unsigned int, unsigned int, struct sg_...
@ 2026-04-08 1:42 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-08 1:42 UTC (permalink / raw)
To: Ville Syrjälä ; +Cc: oe-kbuild-all
tree: https://github.com/vsyrjala/linux.git remap_tile_ys_64
head: 9a8f5dc5c6e5da24a2df0e93fda770ab217b0886
commit: 539e2225c8d7e19d4095bace6c48ec8d3d434e93 [18/30] drm/i915/vma: Extract add_pages()
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260408/202604080343.eLWuZISe-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260408/202604080343.eLWuZISe-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/202604080343.eLWuZISe-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_vma.c:968:1: error: conflicting types for 'add_pages'; have 'struct scatterlist *(dma_addr_t, unsigned int, struct sg_table *, struct scatterlist *)' {aka 'struct scatterlist *(long long unsigned int, unsigned int, struct sg_table *, struct scatterlist *)'}
968 | add_pages(dma_addr_t addr, unsigned int count,
| ^~~~~~~~~
In file included from include/linux/mmzone.h:1534,
from include/linux/gfp.h:7,
from include/linux/sched/mm.h:9,
from drivers/gpu/drm/i915/i915_vma.c:25:
include/linux/memory_hotplug.h:153:5: note: previous declaration of 'add_pages' with type 'int(int, long unsigned int, long unsigned int, struct mhp_params *)'
153 | int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
| ^~~~~~~~~
vim +968 drivers/gpu/drm/i915/i915_vma.c
966
967 static struct scatterlist *
> 968 add_pages(dma_addr_t addr, unsigned int count,
969 struct sg_table *st, struct scatterlist *sg)
970 {
971 st->nents++;
972
973 sg_set_page(sg, NULL, count * I915_GTT_PAGE_SIZE, 0);
974 sg_dma_address(sg) = addr;
975 sg_dma_len(sg) = count * I915_GTT_PAGE_SIZE;
976
977 return sg_next(sg);
978 }
979
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [vsyrjala:remap_tile_ys_64 18/30] drivers/gpu/drm/i915/i915_vma.c:968:1: error: conflicting types for 'add_pages'; have 'struct scatterlist *(dma_addr_t, unsigned int, struct sg_table *, struct scatterlist *)' {aka 'struct scatterlist *(long long unsigned int, unsigned int, struct sg_...
@ 2026-04-08 12:02 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-08 12:02 UTC (permalink / raw)
To: Ville Syrjälä ; +Cc: oe-kbuild-all
tree: https://github.com/vsyrjala/linux.git remap_tile_ys_64
head: 9a8f5dc5c6e5da24a2df0e93fda770ab217b0886
commit: 539e2225c8d7e19d4095bace6c48ec8d3d434e93 [18/30] drm/i915/vma: Extract add_pages()
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260408/202604082018.XK73A8ei-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260408/202604082018.XK73A8ei-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/202604082018.XK73A8ei-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/i915/i915_vma.c:968:1: error: conflicting types for 'add_pages'; have 'struct scatterlist *(dma_addr_t, unsigned int, struct sg_table *, struct scatterlist *)' {aka 'struct scatterlist *(long long unsigned int, unsigned int, struct sg_table *, struct scatterlist *)'}
968 | add_pages(dma_addr_t addr, unsigned int count,
| ^~~~~~~~~
In file included from include/linux/mmzone.h:1534,
from include/linux/gfp.h:7,
from include/linux/sched/mm.h:9,
from drivers/gpu/drm/i915/i915_vma.c:25:
include/linux/memory_hotplug.h:153:5: note: previous declaration of 'add_pages' with type 'int(int, long unsigned int, long unsigned int, struct mhp_params *)'
153 | int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
| ^~~~~~~~~
vim +968 drivers/gpu/drm/i915/i915_vma.c
966
967 static struct scatterlist *
> 968 add_pages(dma_addr_t addr, unsigned int count,
969 struct sg_table *st, struct scatterlist *sg)
970 {
971 st->nents++;
972
973 sg_set_page(sg, NULL, count * I915_GTT_PAGE_SIZE, 0);
974 sg_dma_address(sg) = addr;
975 sg_dma_len(sg) = count * I915_GTT_PAGE_SIZE;
976
977 return sg_next(sg);
978 }
979
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-08 12:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-08 12:02 [vsyrjala:remap_tile_ys_64 18/30] drivers/gpu/drm/i915/i915_vma.c:968:1: error: conflicting types for 'add_pages'; have 'struct scatterlist *(dma_addr_t, unsigned int, struct sg_table *, struct scatterlist *)' {aka 'struct scatterlist *(long long unsigned int, unsigned int, struct sg_ kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-04-08 1:42 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.