From patchwork Thu Nov 5 11:44:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 317869 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB85EC00A89 for ; Thu, 5 Nov 2020 11:45:41 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3FA3720936 for ; Thu, 5 Nov 2020 11:45:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="U8GUEk+J"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vy1NOyfw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FA3720936 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 68133167D; Thu, 5 Nov 2020 12:44:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 68133167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1604576738; bh=I1CCGESUGBaNFr1k4TJ+OLvO1EtGcyzH/f3XeAaZII0=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=U8GUEk+Jlpm9sNPMl4FlwBUhaec1mYSy1zvL2in+YtqAq5zNHCNOiRWjhTQV2xHLJ 93xHaDXkOQ1oExllifpx17iVAA/wY6XgAIE69aR9ITE/iGme99NvfSCpGnjPZ/68MZ ZmZhWMHpIf0wBp+S11B8dP7tqozU7L9OeRkE/jto= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F1E6FF80162; Thu, 5 Nov 2020 12:44:47 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 238F6F80171; Thu, 5 Nov 2020 12:44:46 +0100 (CET) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 83853F800BA for ; Thu, 5 Nov 2020 12:44:40 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 83853F800BA Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vy1NOyfw" Received: by mail-wr1-x443.google.com with SMTP id n18so1385250wrs.5 for ; Thu, 05 Nov 2020 03:44:40 -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:mime-version :content-transfer-encoding; bh=dQI+xeoeMjnqFAD8EMXTyLrlsY/8A0KdRklJEpXUEeA=; b=Vy1NOyfwf55IVp/CkDPtAtkZi1Nvuaf75YpQTY1on9PWT/7ZFz2G1BPRwWzGKZJw1F /3PXxgHk8MR5K2JMJ1+UbuL2uD174grE992YBSjIjEqyZLrWarMiX098HEySoalGfM0Q L9UggjR1i5ETMfYNjXuOpBuzTwkRxUG5WPXASr5ZVViQk3WDJVy2DvDA/TFrOV3zcOuq LGlDZ1lDeTD0+27HE3T5IGCLK1JHEUuZmtm0u9PBP3cpAA3rFOVO3/uzaD4uAo0YFfxH 9cdAcHhiKardjxcTLOkAyzvGjSTNYi7C0yX5BUivRlSfgvOU3FkkWN4p9uy7YDPvEE6T aIrA== 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:mime-version :content-transfer-encoding; bh=dQI+xeoeMjnqFAD8EMXTyLrlsY/8A0KdRklJEpXUEeA=; b=is2AFKhXvVb4SHi3IYr/28mJtxmbhNx4Xkz7bnF1R8B5Bmw/7ZDlJDVtCBNA6ZaIpL zqYyNG7Q254G8LASAWII2XFYH2xxm2BDCKeIuWkSQ9/TQ6zhj7RSOagWH9vEZygPnlop Z+aCXA5vsgy6PqCMukIn8+eQ4nqiykQB5jW6X0Xk+/BAVW8GuIEiZ6POGuBvLJpA4LHz pHgVj8KxRKFNFwfykYb5p+rziyb/T5PtCndDKQOpDC3ePTMCnRCNpH4FriMmyWhMgNVM 2YeP/ixgb5GN131C7ohb9ZM11fMfSONcqUzK8UulttBJNGkhD12JzZMqpzpZRt7kmdxu bXpw== X-Gm-Message-State: AOAM530G9vApnTpR9QTcpktwh5djRpY6sF8VLERHyvPBYz8C5Nt26nC/ puQ/ItldSsBkyY8QOgWdTZWRzQ== X-Google-Smtp-Source: ABdhPJxs8JnizH47p+OY/DC8h4ITaUWYYNCnLNzcg81MnA9t4I+UOt53fcynmrE6Ua6x328YXdeZVg== X-Received: by 2002:a05:6000:1084:: with SMTP id y4mr2297571wrw.138.1604576678220; Thu, 05 Nov 2020 03:44:38 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id n17sm1944845wrw.69.2020.11.05.03.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 03:44:37 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Subject: [PATCH] ASoC: q6afe-clocks: fix warning on symbol scope Date: Thu, 5 Nov 2020 11:44:35 +0000 Message-Id: <20201105114435.22860-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: lgirdwood@gmail.com, alsa-devel@alsa-project.org, Srinivas Kandagatla , linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" This patch fixes below warning when module is compiled with W=1 C=1 sound/soc/qcom/qdsp6/q6afe-clocks.c:122:18: warning: symbol 'q6afe_clks' was not declared. Should it be static? Fixes: 520a1c396d196 ("ASoC: q6afe-clocks: add q6afe clock controller") Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe-clocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6afe-clocks.c b/sound/soc/qcom/qdsp6/q6afe-clocks.c index 2efc2eaa0424..87e4633afe2c 100644 --- a/sound/soc/qcom/qdsp6/q6afe-clocks.c +++ b/sound/soc/qcom/qdsp6/q6afe-clocks.c @@ -119,7 +119,7 @@ static const struct clk_ops clk_vote_q6afe_ops = { .unprepare = clk_unvote_q6afe_block, }; -struct q6afe_clk *q6afe_clks[Q6AFE_MAX_CLK_ID] = { +static struct q6afe_clk *q6afe_clks[Q6AFE_MAX_CLK_ID] = { [LPASS_CLK_ID_PRI_MI2S_IBIT] = Q6AFE_CLK(LPASS_CLK_ID_PRI_MI2S_IBIT), [LPASS_CLK_ID_PRI_MI2S_EBIT] = Q6AFE_CLK(LPASS_CLK_ID_PRI_MI2S_EBIT), [LPASS_CLK_ID_SEC_MI2S_IBIT] = Q6AFE_CLK(LPASS_CLK_ID_SEC_MI2S_IBIT),