diff --git a/msm/dp/dp_audio.c b/msm/dp/dp_audio.c index cd665aa44e..57d5b74bf6 100644 --- a/msm/dp/dp_audio.c +++ b/msm/dp/dp_audio.c @@ -6,8 +6,13 @@ #include #include +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include "dp_catalog.h" #include "dp_audio.h" diff --git a/msm/dp/dp_aux.h b/msm/dp/dp_aux.h index 4a922d55ca..512254aa4d 100644 --- a/msm/dp/dp_aux.h +++ b/msm/dp/dp_aux.h @@ -8,7 +8,11 @@ #define _DP_AUX_H_ #include "dp_catalog.h" -#include "drm/drm_dp_helper.h" +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else +#include +#endif #include "dp_aux_bridge.h" #define DP_STATE_NOTIFICATION_SENT BIT(0) diff --git a/msm/dp/dp_aux_bridge.h b/msm/dp/dp_aux_bridge.h index 294bb36d5c..d39a63fddf 100644 --- a/msm/dp/dp_aux_bridge.h +++ b/msm/dp/dp_aux_bridge.h @@ -38,8 +38,13 @@ #ifndef _DP_AUX_BRIDGE_H_ #define _DP_AUX_BRIDGE_H_ +#include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif /** * enum dp_aux_bridge_flag - DP aux bridge capability flag diff --git a/msm/dp/dp_catalog.h b/msm/dp/dp_catalog.h index dad18559a4..e5c91a590c 100644 --- a/msm/dp/dp_catalog.h +++ b/msm/dp/dp_catalog.h @@ -7,7 +7,12 @@ #ifndef _DP_CATALOG_H_ #define _DP_CATALOG_H_ +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include #include "dp_parser.h" diff --git a/msm/dp/dp_debug.c b/msm/dp/dp_debug.c index 1ee39a6852..58c4870cad 100644 --- a/msm/dp/dp_debug.c +++ b/msm/dp/dp_debug.c @@ -6,7 +6,12 @@ #include #include +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include #include "dp_power.h" diff --git a/msm/dp/dp_hdcp2p2.c b/msm/dp/dp_hdcp2p2.c index 4e2531eb6a..bf9f4894de 100644 --- a/msm/dp/dp_hdcp2p2.c +++ b/msm/dp/dp_hdcp2p2.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. */ @@ -11,7 +12,12 @@ #include #include #include +#include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include "sde_hdcp_2x.h" #include "dp_debug.h" diff --git a/msm/dp/dp_mst_drm.c b/msm/dp/dp_mst_drm.c index 477b5f5d54..e9d1ae94e0 100644 --- a/msm/dp/dp_mst_drm.c +++ b/msm/dp/dp_mst_drm.c @@ -29,14 +29,21 @@ #include #include #include +#include #include #include #include -#include #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#include +#else #include +#include +#endif + #include #include "msm_drv.h" diff --git a/msm/dp/dp_mst_sim.c b/msm/dp/dp_mst_sim.c index 1be4422e20..b7bc0caf11 100644 --- a/msm/dp/dp_mst_sim.c +++ b/msm/dp/dp_mst_sim.c @@ -17,9 +17,14 @@ #include #include #include +#include #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include "dp_debug.h" #include "dp_mst_sim.h" diff --git a/msm/dp/dp_mst_sim_helper.c b/msm/dp/dp_mst_sim_helper.c index 505a2de92f..0b92c648be 100644 --- a/msm/dp/dp_mst_sim_helper.c +++ b/msm/dp/dp_mst_sim_helper.c @@ -38,9 +38,14 @@ #include #include #include +#include #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include "dp_mst_sim_helper.h" #include "dp_debug.h" diff --git a/msm/dp/dp_mst_sim_helper.h b/msm/dp/dp_mst_sim_helper.h index 7a28f4e2de..b8ba834315 100644 --- a/msm/dp/dp_mst_sim_helper.h +++ b/msm/dp/dp_mst_sim_helper.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify @@ -38,7 +39,11 @@ #define _DP_MST_SIM_HELPER_H_ #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif /** * struct dp_mst_sim_port - MST port configuration diff --git a/msm/dp/dp_panel.c b/msm/dp/dp_panel.c index b9862f893c..6825ceefa7 100644 --- a/msm/dp/dp_panel.c +++ b/msm/dp/dp_panel.c @@ -8,7 +8,11 @@ #include #include #include "dp_debug.h" +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include "sde_dsc_helper.h" #include diff --git a/msm/msm_drv.h b/msm/msm_drv.h index 16e91cb049..4f766839aa 100644 --- a/msm/msm_drv.h +++ b/msm/msm_drv.h @@ -48,7 +48,11 @@ #include #include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include #include "sde_power_handle.h" diff --git a/msm/sde_hdcp_1x.c b/msm/sde_hdcp_1x.c index a03f8af0f4..9bb058ad63 100644 --- a/msm/sde_hdcp_1x.c +++ b/msm/sde_hdcp_1x.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. * Copyright (c) 2010-2021, The Linux Foundation. All rights reserved. */ @@ -11,8 +12,13 @@ #include #include #include +#include #include +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0)) +#include +#else #include +#endif #include "sde_hdcp.h" #include "hdcp/msm_hdmi_hdcp_mgr.h" #include "dp/dp_reg.h"