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