]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
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)
commit1fd0c5c91e1c735edd6714e2269a7c734ab895b7
tree79eaf95a76df4260e1702a520d854d1e78820ef8
parent1e65171a1daccaf2b37c8b1b2f9df71e550e75c8
drm/amd/display: Remove redundant includes from DC

[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