From patchwork Tue Jan 2 17:54:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10141153 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7AD9C6020A for ; Tue, 2 Jan 2018 17:57:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68CEE28C6B for ; Tue, 2 Jan 2018 17:57:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D20828C9D; Tue, 2 Jan 2018 17:57:26 +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=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A039C28C6B for ; Tue, 2 Jan 2018 17:57:25 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C350426748A; Tue, 2 Jan 2018 18:56:42 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 37F91267463; Tue, 2 Jan 2018 18:56:40 +0100 (CET) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id 1446526718D for ; Tue, 2 Jan 2018 18:56:36 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id f140so62051943wmd.2 for ; Tue, 02 Jan 2018 09:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S+Lokw1NgBQYSufdQ0F7srF7bNhmG3TyvfOC6IG2eyQ=; b=VqxKAbyLkXPYQG0XpAOsHA5/EEZTaHsHhxVsL9bBkL0pkpV8cTRllqxpo5yZ3Jv4GK vP2YdcnhRK41RmfBh4Hr7bVyoDRkYmjroRrlkFosZQ5mT+w4C8DnqGCvsHxZbZFdYwxS vtNDJKorShKnnCI8B5+Na6v+31yvbmTHbcHQ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=S+Lokw1NgBQYSufdQ0F7srF7bNhmG3TyvfOC6IG2eyQ=; b=Iq8gngMsRODk9/VtZPQK/mq//ndS2ivwhHdkniVxYM8etNUo9z+hOggF0ub5mxqOBl SgvIXf+BZw2gSaZXafHxg3uwXNx6TwbBAvVFh+I2dt6ayIVRNLbfutIB1T+uaBIhdZ3w l4fVRDimVx0GlkhYRjE3nctV19P7pjzJ5HImRKpUyYCa4w88HCvJbbj2U0Sf7mCK0WPJ sylpg/a6jKOFGIfBwxmhzhBXc67tEU2cmRDt6q50NqVK7uOIEl9XR4R0qydsic3L9K4R xfRNaFEboV5g6FxGHwMfZWI+LfADf8WvbUkZeW3F9tcHehPedXVMRayfayWfBjnhwurL fUIg== X-Gm-Message-State: AKGB3mIBT1B2GzhW8fUkvnUxCHPzMsKNuH4kJXdJ5dUSAxsz+CF74/J/ QP9qQFczFCv5u568t4px1HgMmw== X-Google-Smtp-Source: ACJfBova06DO9kg+iPEjTUojctRhvBv7G8FdpsAvEK+QAl/84Kqh9qY4my6G+W+Lp3LQ7BhDIcMENg== X-Received: by 10.28.88.137 with SMTP id m131mr37336304wmb.48.1514915796515; Tue, 02 Jan 2018 09:56:36 -0800 (PST) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id u54sm21895240wrf.77.2018.01.02.09.56.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 09:56:35 -0800 (PST) From: srinivas.kandagatla@linaro.org To: Greg Kroah-Hartman Date: Tue, 2 Jan 2018 17:54:21 +0000 Message-Id: <20180102175424.14391-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20180102175424.14391-1-srinivas.kandagatla@linaro.org> References: <20180102175424.14391-1-srinivas.kandagatla@linaro.org> Cc: alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla , Colin Ian King , sdharia@codeaurora.org Subject: [alsa-devel] [PATCH 3/6] slimbus: make functions slim_ack_txn and slim_alloc_txbuf static X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Colin Ian King The functions slim_ack_txn and slim_alloc_txbuf are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'slim_ack_txn' was not declared. Should it be static? symbol 'slim_alloc_txbuf' was not declared. Should it be static? Signed-off-by: Colin Ian King Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ctrl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c index 2d67419a3c37..8d12baae4119 100644 --- a/drivers/slimbus/qcom-ctrl.c +++ b/drivers/slimbus/qcom-ctrl.c @@ -146,7 +146,7 @@ static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) return ctrl->rx.base + (idx * ctrl->rx.sl_sz); } -void slim_ack_txn(struct qcom_slim_ctrl *ctrl, int err) +static void slim_ack_txn(struct qcom_slim_ctrl *ctrl, int err) { struct completion *comp; unsigned long flags; @@ -299,8 +299,9 @@ static int qcom_clk_pause_wakeup(struct slim_controller *sctrl) return 0; } -void *slim_alloc_txbuf(struct qcom_slim_ctrl *ctrl, struct slim_msg_txn *txn, - struct completion *done) +static void *slim_alloc_txbuf(struct qcom_slim_ctrl *ctrl, + struct slim_msg_txn *txn, + struct completion *done) { unsigned long flags; int idx;