From patchwork Tue Jul 19 09:05:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 9237815 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2ABCF602F0 for ; Tue, 19 Jul 2016 16:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C75D26B4A for ; Tue, 19 Jul 2016 16:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1123126E81; Tue, 19 Jul 2016 16:25:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83EBB26B4A for ; Tue, 19 Jul 2016 16:25:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 6993526646A; Tue, 19 Jul 2016 18:25:32 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C43172665DC; Tue, 19 Jul 2016 13:39:01 +0200 (CEST) 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 359FF2665DC; Tue, 19 Jul 2016 13:39:00 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by alsa0.perex.cz (Postfix) with ESMTP id 7117E26739C for ; Tue, 19 Jul 2016 10:58:03 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 19 Jul 2016 01:58:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,388,1464678000"; d="scan'208";a="998105490" Received: from vkoul-udesk7.iind.intel.com ([10.223.84.143]) by orsmga001.jf.intel.com with ESMTP; 19 Jul 2016 01:57:57 -0700 From: Vinod Koul To: alsa-devel@alsa-project.org Date: Tue, 19 Jul 2016 14:35:09 +0530 Message-Id: <1468919109-28287-1-git-send-email-vinod.koul@intel.com> X-Mailer: git-send-email 1.9.1 Cc: tiwai@suse.de, han.lu@intel.com, Vinod Koul Subject: [alsa-devel] [PATCH] alsabat: make snr_is_valid 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 The compilation fails due to multiple defination of snr_is_valid common.o: In function `snr_is_valid': bat/common.h:99: multiple definition of `snr_is_valid' bat.o:bat/common.h:99: first defined here signal.o: In function `snr_is_valid': bat/common.h:99: multiple definition of `snr_is_valid' bat.o:bat/common.h:99: first defined here latencytest.o: In function `snr_is_valid': bat/common.h:99: multiple definition of `snr_is_valid' bat.o:bat/common.h:99: first defined here analyze.o: In function `snr_is_valid': bat/common.h:99: multiple definition of `snr_is_valid' bat.o:bat/common.h:99: first defined here alsa.o: In function `snr_is_valid': bat/common.h:99: multiple definition of `snr_is_valid' bat.o:bat/common.h:99: first defined here Signed-off-by: Vinod Koul --- bat/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bat/common.h b/bat/common.h index db49868a419a..1b07fbeb7755 100644 --- a/bat/common.h +++ b/bat/common.h @@ -94,7 +94,7 @@ #define SNR_DB_MIN 0.0 #define SNR_DB_MAX 200.0 -inline bool snr_is_valid(float db) +static inline bool snr_is_valid(float db) { return (db > SNR_DB_MIN && db < SNR_DB_MAX); }