]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Remove redundant includes from DC
authorRoman Li <Roman.Li@amd.com>
Thu, 9 Apr 2026 17:37:36 +0000 (13:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:21:52 +0000 (15:21 -0400)
[Why]
The explicit include of linux/array_size.h in Display Core (DC) is
redundant. The ARRAY_SIZE macro is already provided by dm_services.h
(via os_types.h) which DC includes.

[How]
Remove the unnecessary #include <linux/array_size.h> from
dc_hw_sequencer.c and dce_clock_source.c.

Fixes: 2d2366176445 ("drm/amd/display: Replace inline NUM_ELEMENTS macro with ARRAY_SIZE")
CC: Linus Probert <linus.probert@gmail.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c

index 952968ecd46eb6a7f5d0bd8b8235be9eed9bd2dd..7333f5905330c654faa1315743db30ba6d736f3a 100644 (file)
@@ -23,8 +23,6 @@
  *
  */
 
-#include <linux/array_size.h>
-
 #include "dm_services.h"
 #include "core_types.h"
 #include "timing_generator.h"
index 71a876e3dfd462df952fe811b00bd0a3b6de81c4..25c13822fedef74f365836b0fc6c4476c95d8145 100644 (file)
@@ -23,8 +23,6 @@
  *
  */
 
-#include <linux/array_size.h>
-
 #include "dm_services.h"