res_ctx->hpo_dp_link_enc_ref_cnts[enc_index]++;
 }
 
+#if defined(CONFIG_DRM_AMD_DC_DCN)
 static inline void release_hpo_dp_link_enc(
                struct resource_context *res_ctx,
                int enc_index)
        ASSERT(res_ctx->hpo_dp_link_enc_ref_cnts[enc_index] > 0);
        res_ctx->hpo_dp_link_enc_ref_cnts[enc_index]--;
 }
+#endif
 
 static bool add_hpo_dp_link_enc_to_ctx(struct resource_context *res_ctx,
                const struct resource_pool *pool,
        return pipe_ctx->link_res.hpo_dp_link_enc != NULL;
 }
 
+#if defined(CONFIG_DRM_AMD_DC_DCN)
 static void remove_hpo_dp_link_enc_from_ctx(struct resource_context *res_ctx,
                struct pipe_ctx *pipe_ctx,
                struct dc_stream_state *stream)
                pipe_ctx->link_res.hpo_dp_link_enc = NULL;
        }
 }
+#endif
 
 /* TODO: release audio object */
 void update_audio_usage(