diff mbox

alsabat: make snr_is_valid static

Message ID 1468919109-28287-1-git-send-email-vinod.koul@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Vinod Koul July 19, 2016, 9:05 a.m. UTC
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 <vinod.koul@intel.com>
---
 bat/common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai July 20, 2016, 5:23 a.m. UTC | #1
On Tue, 19 Jul 2016 11:05:09 +0200,
Vinod Koul wrote:
> 
> 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 <vinod.koul@intel.com>

Applied, thanks.


Takashi
diff mbox

Patch

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);
 }