linux/include/drm
Arnd Bergmann b61d565166
drm/pagemap: pass pagemap_addr by reference
Passing a structure by value into a function is sometimes problematic,
for a number of reasons. Of of these is a warning from the 32-bit arm
compiler:

drivers/gpu/drm/drm_gpusvm.c: In function '__drm_gpusvm_unmap_pages':
drivers/gpu/drm/drm_gpusvm.c:1152:33: note: parameter passing for argument of type 'struct drm_pagemap_addr' changed in GCC 9.1
 1152 |                                 dpagemap->ops->device_unmap(dpagemap,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1153 |                                                             dev, *addr);
      |                                                             ~~~~~~~~~~~

This particular problem is harmless since we are not mixing compiler versions
inside of the compiler. However, passing this by reference avoids the warning
along with providing slightly better calling conventions as it avoids an
extra copy on the stack.

Fixes: 75af93b3f5 ("drm/pagemap, drm/xe: Support destination migration over interconnect")
Fixes: 2df55d9e66 ("drm/xe: Support pcie p2p dma as a fast interconnect")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20260216134644.1025365-1-arnd@kernel.org
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
(cherry picked from commit 95162db020)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2026-02-17 19:39:44 -05:00
..
amd
bridge Linux 6.19-rc7 2026-01-28 12:44:28 +10:00
clients
display Linux 6.19-rc7 2026-01-28 12:44:28 +10:00
intel mei: late_bind: fix struct intel_lb_component_ops kernel-doc 2026-01-08 12:23:20 +02:00
ttm
Makefile
amd_asic_type.h
drm_accel.h
drm_atomic.h drm/atomic: convert drm_atomic_get_{old, new}_colorop_state() into proper functions 2025-12-22 15:37:26 +02:00
drm_atomic_helper.h drm/atomic-helper: Export and namespace some functions 2026-01-03 20:08:17 +01:00
drm_atomic_state_helper.h
drm_atomic_uapi.h
drm_audio_component.h
drm_auth.h
drm_blend.h
drm_bridge.h Linux 6.19-rc7 2026-01-28 12:44:28 +10:00
drm_bridge_connector.h
drm_bridge_helper.h
drm_buddy.h
drm_cache.h
drm_client.h
drm_client_event.h
drm_color_mgmt.h
drm_colorop.h
drm_connector.h drm/display: hdmi_state_helper: split InfoFrame functions per type 2026-01-19 13:11:46 +02:00
drm_crtc.h
drm_crtc_helper.h
drm_damage_helper.h
drm_debugfs.h
drm_debugfs_crc.h
drm_device.h drm/gem: Add huge tmpfs mountpoint helpers 2025-12-08 10:52:47 +01:00
drm_drv.h
drm_dumb_buffers.h
drm_edid.h
drm_eld.h
drm_encoder.h
drm_exec.h
drm_fb_dma_helper.h
drm_fb_helper.h
drm_fbdev_dma.h
drm_fbdev_shmem.h
drm_fbdev_ttm.h
drm_file.h drm/syncobj: Convert syncobj idr to xarray 2025-12-18 09:05:30 +00:00
drm_fixed.h
drm_flip_work.h
drm_format_helper.h
drm_fourcc.h
drm_framebuffer.h
drm_gem.h drm/gem: Fix kerneldoc warnings 2025-12-18 11:08:21 +01:00
drm_gem_atomic_helper.h
drm_gem_dma_helper.h
drm_gem_framebuffer_helper.h
drm_gem_shmem_helper.h drm/tests: shmem: Hold reservation lock around purge 2025-12-21 18:21:36 +01:00
drm_gem_ttm_helper.h
drm_gem_vram_helper.h
drm_gpusvm.h drm/gpusvm: Introduce a function to scan the current migration state 2025-12-23 10:00:48 +01:00
drm_gpuvm.h drm/gpuvm: use const for drm_gpuva_op_* ptrs 2026-01-08 18:06:56 +01:00
drm_ioctl.h
drm_kunit_helpers.h
drm_lease.h
drm_managed.h
drm_mipi_dbi.h
drm_mipi_dsi.h
drm_mm.h
drm_mode_config.h
drm_mode_object.h drm/mode_object: add drm_object_immutable_property_get_value() 2026-01-14 02:18:31 +02:00
drm_modes.h
drm_modeset_helper.h
drm_modeset_helper_vtables.h
drm_modeset_lock.h
drm_module.h
drm_of.h drm: of: drm_of_panel_bridge_remove(): convert to of_drm_find_and_get_bridge() 2026-01-20 14:53:45 +01:00
drm_pagemap.h drm/pagemap: pass pagemap_addr by reference 2026-02-17 19:39:44 -05:00
drm_pagemap_util.h drm/pagemap_util: Add a utility to assign an owner to a set of interconnected gpus 2025-12-23 10:00:47 +01:00
drm_panel.h
drm_panic.h
drm_pciids.h
drm_plane.h
drm_plane_helper.h
drm_prime.h
drm_print.h
drm_privacy_screen_consumer.h
drm_privacy_screen_driver.h
drm_privacy_screen_machine.h
drm_probe_helper.h
drm_property.h drm/atomic: add max_size check to drm_property_replace_blob_from_id() 2026-01-14 02:18:31 +02:00
drm_rect.h
drm_self_refresh_helper.h
drm_simple_kms_helper.h
drm_suballoc.h
drm_syncobj.h
drm_sysfs.h
drm_util.h
drm_utils.h
drm_vblank.h drm/vblank: add return value to drm_crtc_wait_one_vblank() 2025-12-11 16:55:36 +02:00
drm_vblank_helper.h
drm_vblank_work.h
drm_vma_manager.h
drm_writeback.h
gpu_scheduler.h drm/sched: Add pending job list iterator 2025-12-13 00:34:21 -08:00
gud.h
spsc_queue.h
task_barrier.h