Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1277491rwp; Thu, 13 Jul 2023 08:33:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEn7nWPrdUX716ylNhv/mfn2UeVkru/eOu1J4EwRJHaDzEl5quaA53D2pv75elNIBaEBpIf X-Received: by 2002:a05:6512:3b90:b0:4fb:8fe3:9266 with SMTP id g16-20020a0565123b9000b004fb8fe39266mr2241700lfv.0.1689262436806; Thu, 13 Jul 2023 08:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689262436; cv=none; d=google.com; s=arc-20160816; b=VtWxalHVtmhbxRKKB8eJYxZhj83YGVdd9//nK8G8o9Gk7Tx1aNA1yeKY24SIDR7hJr xXLadLsnrn4wOD68GAEdvvGrIugdnZJHXHQvAZlrQxxiKi5BxN5h+QBoci30kjRxNKMu j/ICsGP0YmdIJe2HGLFdxIRw4ezJS1lHPdoI+34xzA4vqcOFAsVzCnDkeyP8O49VgFca BfobK8TShR6V0VpbmnUVDpHMPPxYniDwmMNMhH3uAk+vV9BjUlcs/X1IHK5q6skPWZvW UaCdKQWDu4gaGkFrGH02HeTdg3ky9ZkHIlbwIiid9EyrrwCfjLZ+xxOK20KJwGSsX7Nf qD8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=fkYvuheuXxUs7lcziZSh45/cEYAEtU5XJFKyTCEdPAw=; fh=mbWpq9XV8amjARPvCwDKoX9ohcVzf9WIoMU0DvtJlJQ=; b=Q83bLYj3irTB+xDoSC4erQylyIhh9egvN6ySTwz60uRkbgXmS91R/hENid2KrEpMZ2 H/+sSy8Pk6tCIFl3Bo73SfcxH/itPABafWh6HB7CF5ep5sKZbpEWbiT0Jqop0HQZ/KBD eem+mUlx/c2F1XBTG4b41y8b16BBWknEqShABvdD2ApboCH7K6gS5ki6KQ1Qqus54mev flmiJLbpPcRo+KfpkMkZEC+HD6w+aId9X7cJ/3p0lC+rCaxItVlybBLkLOBSd1LuJADk Vg18T+6agACHWTTF7ULimUGhePFPJhFy8JSgT6SuRuAihIZMUvJkkQZU57awWif/YWYt QyvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cPJcXmar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020aa7c0ca000000b0051e0eca4c16si7162129edp.529.2023.07.13.08.33.32; Thu, 13 Jul 2023 08:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cPJcXmar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233994AbjGMPSX (ORCPT + 99 others); Thu, 13 Jul 2023 11:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234701AbjGMPSJ (ORCPT ); Thu, 13 Jul 2023 11:18:09 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6729D2713 for ; Thu, 13 Jul 2023 08:17:50 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b852785a65so5437515ad.0 for ; Thu, 13 Jul 2023 08:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689261470; x=1691853470; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fkYvuheuXxUs7lcziZSh45/cEYAEtU5XJFKyTCEdPAw=; b=cPJcXmarGy/THqQS5YeBkXPiaUN6TNcqTUg4N/gUAzoGAZF/YDWi+9CV32JMSIufHf eGsnoa5VCpDibdNPlLNPjuhC9X10Y6IzZKZ5yyqVwPbcisWxLeeFYoeOXaYpVctMNeXc bk0rfmLISbTW1sVPcX48CvKFHh/TxKtg2ph3oCO38dWTM+Nz2U7TgMbCLLf1y0mIeUFs 2JeQ2xUbm9WYLUT3c+PGSaud31GKWHfdJgZGHaQwDvPc5QGQn9hD+tYyISUmqRT9Nbrv BcTDGVhWLoADC58nzgh6sKcjBRZS2gMNCPM3Xrz0j3dkS6FpEiiMWSFYZ1zpRJ6PuBpi 65Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689261470; x=1691853470; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fkYvuheuXxUs7lcziZSh45/cEYAEtU5XJFKyTCEdPAw=; b=aPDRQMGt0FmVdJOUeqLWNHY3xpvC6epxIwPTv7vAzgIkTK8DLMBt2Af1vUaxbSWzLv LKYXCuJO0o5R0GxZPUJeBS39j/0iiSqdq/deoZsAJEQisrAtJIW7qBKwN5ExIEK9vvqY S3cEkl3PR6EFf62EsfSH2U7Seb/8r8myla8Y4n+50m91Tl1172cga1cqmWyU1+9fTqf1 e5gm7y03FXAg/VQwYpCN7vwrw+2Mwj4TvNqX5QXeNqWgJOtrNk92yCpD6uHG1A65iH/4 gqFM9tQHaBtLkPB19H2eFkGP3zWuXjzyOEpnJIQsau+cBpRVseFkXuQYcW2v67mT37lD 4YgA== X-Gm-Message-State: ABy/qLasl5IAYr/U2lyh/q0WRwTrFB17PZu4v5jdMx1EMMMqikNTAmAY t7KsLPorfGImOvkH7kaol2I= X-Received: by 2002:a17:903:41cb:b0:1b8:9846:a3b2 with SMTP id u11-20020a17090341cb00b001b89846a3b2mr2736704ple.14.1689261469776; Thu, 13 Jul 2023 08:17:49 -0700 (PDT) Received: from ubuntu777.domain.name (36-228-70-13.dynamic-ip.hinet.net. [36.228.70.13]) by smtp.gmail.com with ESMTPSA id y4-20020a170902ed4400b001b8a844b023sm6043640plb.272.2023.07.13.08.17.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 08:17:49 -0700 (PDT) From: Min-Hua Chen To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: Min-Hua Chen , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: q6dsp: q6apm: make g_apm static Date: Thu, 13 Jul 2023 23:17:43 +0800 Message-Id: <20230713151744.86072-1-minhuadotchen@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the following sprse warning: sound/soc/qcom/qdsp6/q6apm.c:30:14: sparse: warning: symbol 'g_apm' was not declared. Should it be static? No functional change intended Signed-off-by: Min-Hua Chen --- sound/soc/qcom/qdsp6/q6apm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/qdsp6/q6apm.c b/sound/soc/qcom/qdsp6/q6apm.c index 7bfac9492ab5..d5ad9cbd3c21 100644 --- a/sound/soc/qcom/qdsp6/q6apm.c +++ b/sound/soc/qcom/qdsp6/q6apm.c @@ -27,7 +27,7 @@ struct apm_graph_mgmt_cmd { #define APM_GRAPH_MGMT_PSIZE(p, n) ALIGN(struct_size(p, sub_graph_id_list, n), 8) -struct q6apm *g_apm; +static struct q6apm *g_apm; int q6apm_send_cmd_sync(struct q6apm *apm, struct gpr_pkt *pkt, uint32_t rsp_opcode) { -- 2.34.1