Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Roman Li and committed by
Alex Deucher
1fd0c5c9 1e65171a

-4
-2
drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c
··· 23 23 * 24 24 */ 25 25 26 - #include <linux/array_size.h> 27 - 28 26 #include "dm_services.h" 29 27 #include "core_types.h" 30 28 #include "timing_generator.h"
-2
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c
··· 23 23 * 24 24 */ 25 25 26 - #include <linux/array_size.h> 27 - 28 26 #include "dm_services.h" 29 27 30 28