From patchwork Mon Jan 18 16:30:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 8056121 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 12C02BEEE5 for ; Mon, 18 Jan 2016 16:28:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 49EB8204AF for ; Mon, 18 Jan 2016 16:28:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 4C1AB203B1 for ; Mon, 18 Jan 2016 16:28:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7A3B12654F6; Mon, 18 Jan 2016 17:28:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C8988265329; Mon, 18 Jan 2016 17:26:51 +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 BA0EC2652AE; Mon, 18 Jan 2016 17:26:49 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by alsa0.perex.cz (Postfix) with ESMTP id C89C32652C5 for ; Mon, 18 Jan 2016 17:26:32 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 18 Jan 2016 08:26:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,313,1449561600"; d="scan'208";a="893076083" Received: from vkoul-udesk7.iind.intel.com ([10.223.84.34]) by orsmga002.jf.intel.com with ESMTP; 18 Jan 2016 08:26:30 -0800 From: Vinod Koul To: alsa-devel@alsa-project.org Date: Mon, 18 Jan 2016 22:00:03 +0530 Message-Id: <1453134603-25356-4-git-send-email-vinod.koul@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453134603-25356-1-git-send-email-vinod.koul@intel.com> References: <1453134603-25356-1-git-send-email-vinod.koul@intel.com> Cc: tiwai@suse.de, Vinod Koul Subject: [alsa-devel] [PATCH 3/3] tinycompress: crec: make functions static 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 Sparse rightly complains some functions should be static so make them static crec.c:113:26: warning: symbol 'blank_wave_header' was not declared. Should it be static? crec.c:239:6: warning: symbol 'capture_samples' was not declared. Should it be static? Signed-off-by: Vinod Koul --- src/utils/crec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/crec.c b/src/utils/crec.c index 6e8166d8f77b..8d5b7b0b2c30 100644 --- a/src/utils/crec.c +++ b/src/utils/crec.c @@ -110,7 +110,7 @@ struct wave_header { } __attribute__((__packed__)) data; } __attribute__((__packed__)); -const struct wave_header blank_wave_header = { +static const struct wave_header blank_wave_header = { .riff = { .chunk = { .desc = "RIFF", @@ -236,7 +236,7 @@ static int finish_record(void) return 0; } -void capture_samples(char *name, unsigned int card, unsigned int device, +static void capture_samples(char *name, unsigned int card, unsigned int device, unsigned long buffer_size, unsigned int frag, unsigned int length, unsigned int rate, unsigned int channels, unsigned int format)