From 2ac7e03c0bc07cbf33887c574f1b0c4640f3ebb3 Mon Sep 17 00:00:00 2001 From: Patrick Daly Date: Fri, 25 Mar 2022 20:53:11 -0700 Subject: [PATCH] dma-heaps: Fix compiler warning with function stubs Fixes: error: unused function 'qcom_carveout_heap_create'. Change-Id: I1525a3455b045c2e527847b26bfa7df5b6cf19dc Signed-off-by: Patrick Daly --- drivers/dma-buf/heaps/qcom_carveout_heap.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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