From patchwork Wed Feb 4 17:29:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 5778391 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 95F779F269 for ; Wed, 4 Feb 2015 17:30:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0B8020259 for ; Wed, 4 Feb 2015 17:30:17 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 66C832022D for ; Wed, 4 Feb 2015 17:30:16 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2B562260586; Wed, 4 Feb 2015 18:30:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id E1B842604BE; Wed, 4 Feb 2015 18:30:06 +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 EAC412604D0; Wed, 4 Feb 2015 18:30:05 +0100 (CET) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by alsa0.perex.cz (Postfix) with ESMTP id 3EC9E260490 for ; Wed, 4 Feb 2015 18:30:00 +0100 (CET) Received: by mail-wg0-f50.google.com with SMTP id b13so3029076wgh.9 for ; Wed, 04 Feb 2015 09:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=PMurlAbxtAJzTyiPg6b6o7U7hT+nDU9ccKvgch1eIBw=; b=dxuXlEm2upujr9oH7/LDI8KPBzBZyDm5hTPXJk8kjf1xbQXb3fA1jiiIltjKcoeEas PlHUXKC7jd9/+bPG70+XyDjZ6gNMbC/4s08GZSxYvl6Ggkd6QA2aelDT38TgCXMeEvFw NXKb0ZCxDcc+SwUpI6TyWCCMYzemSUsYfgdyZI47mxniYDrd9eW5u80UQwkEm+p5a7Z2 +OzbOSoiI/zt3qpg1j70qD3JcVOD04QmtehDyOaaAniOTewmGPLr+bYHKtepIZtmd9CY 0GtbQ2iwkLnUlgngAABQtjLBcnrjMUM/owxyAn4c4vexzGpwZlGn0iO48/l22XYfnAfw MefA== X-Received: by 10.180.80.163 with SMTP id s3mr46972008wix.59.1423070999685; Wed, 04 Feb 2015 09:29:59 -0800 (PST) Received: from tango-charlie.RL.local ([194.72.83.162]) by mx.google.com with ESMTPSA id fq10sm29333995wib.3.2015.02.04.09.29.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 09:29:58 -0800 (PST) From: Lad Prabhakar To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Date: Wed, 4 Feb 2015 17:29:30 +0000 Message-Id: <1423070970-24164-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: "Lad, Prabhakar" , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] sound: soc: codecs/ts3a227e: fix sparse warning 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: "Lad, Prabhakar" this patch fixes following sparse warning: ts3a227e.c:222:5: warning: symbol 'ts3a227e_enable_jack_detect' was not declared. Should it be static? Signed-off-by: Lad, Prabhakar --- Found this issue on linux-next (gcc version 4.8.2, sparse version 0.4.5-rc1)and applies on top linux-next. sound/soc/codecs/ts3a227e.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/ts3a227e.c b/sound/soc/codecs/ts3a227e.c index 5ecfa31..9fd80ac 100644 --- a/sound/soc/codecs/ts3a227e.c +++ b/sound/soc/codecs/ts3a227e.c @@ -20,6 +20,8 @@ #include #include +#include "ts3a227e.h" + struct ts3a227e { struct regmap *regmap; struct snd_soc_jack *jack;