Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5014531imm; Tue, 12 Jun 2018 00:47:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLOpEBulgYyh4c5iVLjTobmv+3cxknZtC9KaEdNcrpd4y7WiPCQm97AlA5AlFC5tr/uDb5d X-Received: by 2002:a63:6f89:: with SMTP id k131-v6mr2234809pgc.345.1528789659192; Tue, 12 Jun 2018 00:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528789659; cv=none; d=google.com; s=arc-20160816; b=uvO49gOjVUJhbPZJ/+phEXF8/8rzQcxprgqxzwP/x+axVoGct4Zp4poYaSu+kK/Trv GAEytRJ2R/ZAIyziV5RsySQOAQCWWW+gz7va8OFnvRNPknPoPoBnYAg3ObTU+0Y9IIi3 2/BVkQNZu8u2Q96lRUtcNh5pbdsCIvObKaNoZHPSRM/pR+sIymuTQZ3f8V7OpM79Dalj yOZMX/1SosCDvVY5Raqljf2oHL1d5mNzebnpyrNUvYG5adrpKgqc+9uInAgJeqF/IyjJ SNEoUvwsJEsxgu426eMUwLUMRx6kSMSjXkHH2CDqQ3t1VmCv0vu+HduL/t9+LBWHx/B8 wkKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=PPfC2pz5IEKLVbg1DLCglsXK23H92gKSVmvvjUU9ugU=; b=pxKIG6Q/04Xv43p1W+2UecLywRrYmB32HlWc+oE6srr6PyK91nFfXaHM5gMl/fvK0j cdp3V7VDpxdJS8CUxBnDLV8XXfnwkpZ+mf7zYiVG4oHHpCUhvHnjc1ZaSHUGyo4f3j0d uJ1+cmB7hpiw/JQn+bdHBsBhFmX6JL2GqxMzcMvuaiCGf5pn2JsE6pAqhUmHSfmMl7xb IEEHFQNYUsfvw6sDZFjGB7UuSP69RfPNoaLrSgzZY9XBQw4+s1gIBLnQtQ/eVfVxMtTS zeI01Y1LmThdUXK/G5MLLb3JeGEwV5HCX48ed/dthts8SaQDxpQeXVh+b3BldhVCYUOX xIlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=k3ljRNtm; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4-v6si297515pfs.157.2018.06.12.00.47.24; Tue, 12 Jun 2018 00:47:39 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=k3ljRNtm; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933453AbeFLHqr (ORCPT + 99 others); Tue, 12 Jun 2018 03:46:47 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:34733 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933183AbeFLHqp (ORCPT ); Tue, 12 Jun 2018 03:46:45 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5C7joR7016854; Tue, 12 Jun 2018 02:45:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528789550; bh=PPfC2pz5IEKLVbg1DLCglsXK23H92gKSVmvvjUU9ugU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=k3ljRNtmICRb1hwY08qklviy2f0QYriegeHZAuQs/5q6YuOXJ4+X3DQlhZadvq9Ax 8o2unsGFWuTheoYbYg87cBf2YUAj1MfYuVZkXnUl7b8Knf7RwCrO+GRSN0EAV3Ckyw 70ScdkGHXejyPJgABBEG+GJ7GRigaog60SAdAPok= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5C7joXi007876; Tue, 12 Jun 2018 02:45:50 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 12 Jun 2018 02:45:50 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 12 Jun 2018 02:45:50 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5C7jlJo015356; Tue, 12 Jun 2018 02:45:48 -0500 Subject: Re: [PATCH] ASoC: twl6040: make pointer dmic_codec_dev static To: Colin King , Jarkko Nikula , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , , CC: , References: <20180606093504.30255-1-colin.king@canonical.com> From: Peter Ujfalusi Message-ID: Date: Tue, 12 Jun 2018 10:46:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180606093504.30255-1-colin.king@canonical.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2018-06-06 12:35, Colin King wrote: > From: Colin Ian King > > The pointer dmic_codec_dev is local to the source and does not need > to be in global scope, so make it static. > > Cleans up sparse warning: > warning: symbol 'dmic_codec_dev' was not declared. Should it be static? can you change the subject to: ASoC: omap-abe-twl6040: make pointer dmic_codec_dev static With that change: Acked-by: Peter Ujfalusi > > Signed-off-by: Colin Ian King > --- > sound/soc/omap/omap-abe-twl6040.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c > index 15ccbf479c96..d5ae9eb8c756 100644 > --- a/sound/soc/omap/omap-abe-twl6040.c > +++ b/sound/soc/omap/omap-abe-twl6040.c > @@ -40,7 +40,7 @@ struct abe_twl6040 { > int mclk_freq; /* MCLK frequency speed for twl6040 */ > }; > > -struct platform_device *dmic_codec_dev; > +static struct platform_device *dmic_codec_dev; > > static int omap_abe_hw_params(struct snd_pcm_substream *substream, > struct snd_pcm_hw_params *params) > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki