diff --git a/drivers/dma-buf/heaps/qcom_carveout_heap.h b/drivers/dma-buf/heaps/qcom_carveout_heap.h index 6bd8c3478dae..a67e1ce0eb52 100644 --- a/drivers/dma-buf/heaps/qcom_carveout_heap.h +++ b/drivers/dma-buf/heaps/qcom_carveout_heap.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #ifndef _QCOM_CARVEOUT_HEAP_H @@ -12,13 +13,13 @@ int qcom_secure_carveout_heap_create(struct platform_heap *heap_data); int qcom_carveout_heap_create(struct platform_heap *heap_data); #else -static int qcom_secure_carveout_heap_create(struct platform_heap *heap_data) +static inline int qcom_secure_carveout_heap_create(struct platform_heap *heap_data) { - return 1; + return -EINVAL; } -static int qcom_carveout_heap_create(struct platform_heap *heap_data) +static inline int qcom_carveout_heap_create(struct platform_heap *heap_data) { - return 1; + return -EINVAL; } #endif