From patchwork Thu Oct 25 16:38:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10656195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8820017F3 for ; Thu, 25 Oct 2018 16:38:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 720D2298D4 for ; Thu, 25 Oct 2018 16:38:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63712296B0; Thu, 25 Oct 2018 16:38:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02E0728D05 for ; Thu, 25 Oct 2018 16:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727576AbeJZBLv (ORCPT ); Thu, 25 Oct 2018 21:11:51 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36152 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727319AbeJZBLv (ORCPT ); Thu, 25 Oct 2018 21:11:51 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C4F6C60CEB; Thu, 25 Oct 2018 16:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1540485498; bh=vQHTGT05Ylgf90+0iPJhSKIlz6suYyy4yS8zyzWMq1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SpNtstXmwoqBOcypaxa5uVxO1Dm1XwPFeUwhjcjbkVlUzYfR7KC28yAaphkozXVSl TjjNyl0hCglEs02ZpWUKeY8cuVmllJQjp3m5AEzRzrPZh5SIm6yfmLkNhVrNGCyGF4 LU4yaMakq9re304KqKJsCz5w/snFhrbrCMfQr/NU= Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 83F6A612EE; Thu, 25 Oct 2018 16:38:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1540485498; bh=vQHTGT05Ylgf90+0iPJhSKIlz6suYyy4yS8zyzWMq1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SpNtstXmwoqBOcypaxa5uVxO1Dm1XwPFeUwhjcjbkVlUzYfR7KC28yAaphkozXVSl TjjNyl0hCglEs02ZpWUKeY8cuVmllJQjp3m5AEzRzrPZh5SIm6yfmLkNhVrNGCyGF4 LU4yaMakq9re304KqKJsCz5w/snFhrbrCMfQr/NU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 83F6A612EE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: linux-arm-msm@vger.kernel.org Cc: andy.gross@linaro.org, david.brown@linaro.org, linux-soc@vger.kernel.org, dianders@chromium.org, ckadabi@codeaurora.org, hoegsberg@chromium.org Subject: [PATCH 3/3] qcom: soc: llcc-slice: Return correct error for llcc_slice_getd stub Date: Thu, 25 Oct 2018 10:38:11 -0600 Message-Id: <20181025163811.17316-4-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181025163811.17316-1-jcrouse@codeaurora.org> References: <20181025163811.17316-1-jcrouse@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The real llcc_slide_getd() function returns ERR_PTR() encoded errors so the stub function should too. Signed-off-by: Jordan Crouse Reviewed-by: Douglas Anderson --- include/linux/soc/qcom/llcc-qcom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/soc/qcom/llcc-qcom.h b/include/linux/soc/qcom/llcc-qcom.h index eb71a50b8afc..e9806d548834 100644 --- a/include/linux/soc/qcom/llcc-qcom.h +++ b/include/linux/soc/qcom/llcc-qcom.h @@ -171,7 +171,7 @@ int qcom_llcc_remove(struct platform_device *pdev); #else static inline struct llcc_slice_desc *llcc_slice_getd(u32 uid) { - return NULL; + return ERR_PTR(-ENODEV); } static inline void llcc_slice_putd(struct llcc_slice_desc *desc)