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: 123191 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9238427qgn; Tue, 2 Jan 2018 09:57:27 -0800 (PST) X-Google-Smtp-Source: ACJfBoum/Zcea9/sVF+h76W/OcntjG2I6uPxJgTOGm+hNrKHLVV9jbo0tIwSP19cfNXc7iyLNDdf X-Received: by 10.159.198.76 with SMTP id y12mr14989715plt.257.1514915847691; Tue, 02 Jan 2018 09:57:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514915847; cv=none; d=google.com; s=arc-20160816; b=k9V7OMr5ugXvco1q2GQwr3IlpFybNUqgPRKUP8ntKLPK3vCIzyLUrQEVdfqVT3fq1l hdRNLI/H1FvJpDeB1M5l6u+DIkSENi2sRTtWV+5sQvubuCKCqmzpZBdTyWZT+bkPmxak MjcXPN+qvoWB6P+XwF8vie69cgKdwpo9fEsi4CugHE01owiW9xLzoe23vTjkQS1VAl98 9PNrSk0iEjdxiv7C0ssPWhCOgRSTBS3/gxg0+IN4FMWhF2cjrDbUx4bh2px4kXiLJRfI 051S4RlaJTQFjqCNO00u7SAydi3Dnx0/Fx4xS8tjWez7+8LD86TxMm2ixXHwV9WoLiu2 UiNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=S+Lokw1NgBQYSufdQ0F7srF7bNhmG3TyvfOC6IG2eyQ=; b=fqp/10dLyEPXfhEsxjnjbIU9I6/Ra7RJq8zuEVi2CxAZ2SkFzUXZKSuwBAsfqzCCib UiibPG27zuS3D33/Vtv3/eqdsKA0qTxaS6BgyL8AX3ovrxRZCKcjg3LdySlBBjaAa5GY HFSqiaoI1Vhck2JYOpPmHo5dfrelB4tAyjRtszq5mKaQOIREDqbTqWxTYKp1ofLO93Nu jYf3rIa2oDxVIPz7MRojyJnMr8RveDgKj/RaiWXr64uL5pbGkK2utkASlYLua4TwZNct lOV8HaoIT7pl9N9xwcHCPXPmdkOrgfqeXUDM+UjgmBZg6qRjdkBr9xqR3Nf8S+EbfUov 7fkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VqxKAbyL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si113212plp.124.2018.01.02.09.57.27; Tue, 02 Jan 2018 09:57:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VqxKAbyL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751459AbeABR5Y (ORCPT + 28 others); Tue, 2 Jan 2018 12:57:24 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40918 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbeABR4h (ORCPT ); Tue, 2 Jan 2018 12:56:37 -0500 Received: by mail-wm0-f68.google.com with SMTP id f206so62047318wmf.5 for ; Tue, 02 Jan 2018 09:56:37 -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=c3F1L2DPFQtGgpGgAgh/fFNRc76S9YvIZWb7ul1gwWnkN3yZkRNa/HRnprlprG4shN iV5Kb93xM1NMTgUZN+8zvo61ZNAwyUE+eUfB7Rcz4aCU6FDNTCISiyi80ZatKVuUfM2G osprhrLMjkLrQKV+NdZ865qt+D/2PkJPsVm4YKu3tbAUuVHgNQtFCjc6pTCk51nUWi2U QimQ0ADkLupUyk0qDESJhAiVthaHXTtKX2HzHYWiJ3K2FOmB51SlzZaeuwnEZsMYkJM5 OEHcTE0IoNB39mk8I+kTyG31J6tcl4V5i45LBQDmZJFDLHlPjSkWbwLQpRUJ9k9HW3Bj svOA== X-Gm-Message-State: AKGB3mILZRmtCj/ZACp/DTSKoLPGCZQscA1LWcv0usjk0F9xayaBkf7x HJmuCL3dH3c6tuCXO9W1MIPC4w== 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 Cc: sdharia@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Colin Ian King , Srinivas Kandagatla Subject: [PATCH 3/6] slimbus: make functions slim_ack_txn and slim_alloc_txbuf static 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.15.0 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;