]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd: Include <linux/export.h> when needed
authorAndré Almeida <andrealmeid@igalia.com>
Fri, 13 Jun 2025 18:26:51 +0000 (15:26 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Jun 2025 15:53:51 +0000 (11:53 -0400)
Fix the following compile time warning when building with W=1:

warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: André Almeida <andrealmeid@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdxcp/amdgpu_xcp_drv.c

index 3ac52d9b9d308b5db4e4e80003d6c6bd8fc8e906..a0fc4bec5746dd2c4687d3aa3aea6f8a4f21894e 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/list.h>
 #include <linux/slab.h>
 #include <linux/dma-buf.h>
+#include <linux/export.h>
 
 #include <drm/drm_drv.h>
 #include <drm/amdgpu_drm.h>
index faed84172dd43091cb7ff0eb34b0175ada984999..8bc36f04b1b712cb7bfc5d0fe6315e4b915b1711 100644 (file)
@@ -21,6 +21,7 @@
  *
  */
 
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>