From: A. Maitland Bottoms Date: Wed, 28 Mar 2018 02:02:59 +0000 (-0400) Subject: [PATCH 2/6] make acc happy X-Git-Tag: archive/raspbian/2.5.2-1+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=76485320acf1fce10bd21f30fa89b4f9567626cf;p=volk.git [PATCH 2/6] make acc happy The abi-compliance-checker grabs all the .h files it finds and tries to compile them all. Even though some are not appropriate for the architecture being run on. Being careful with preprocessor protections avoids problems. Gbp-Pq: Name make-acc-happy --- diff --git a/include/volk/volk_neon_intrinsics.h b/include/volk/volk_neon_intrinsics.h index 3c8032a..b97247a 100644 --- a/include/volk/volk_neon_intrinsics.h +++ b/include/volk/volk_neon_intrinsics.h @@ -66,6 +66,7 @@ #ifndef INCLUDE_VOLK_VOLK_NEON_INTRINSICS_H_ #define INCLUDE_VOLK_VOLK_NEON_INTRINSICS_H_ +#ifdef LV_HAVE_NEON #include @@ -281,4 +282,5 @@ static inline float32x4_t _neon_accumulate_square_sum_f32(float32x4_t sq_acc, #endif } +#endif /*LV_HAVE_NEON*/ #endif /* INCLUDE_VOLK_VOLK_NEON_INTRINSICS_H_ */ diff --git a/kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h b/kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h index e5e113d..2381dd3 100644 --- a/kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h +++ b/kernels/volk/volk_32f_8u_polarbutterflypuppet_32f.h @@ -18,6 +18,7 @@ #include #include #include +#include static inline void sanitize_bytes(unsigned char* u, const int elements) diff --git a/kernels/volk/volk_8u_x2_encodeframepolar_8u.h b/kernels/volk/volk_8u_x2_encodeframepolar_8u.h index a7d4031..11078ae 100644 --- a/kernels/volk/volk_8u_x2_encodeframepolar_8u.h +++ b/kernels/volk/volk_8u_x2_encodeframepolar_8u.h @@ -47,8 +47,6 @@ static inline void encodepolar_single_stage(unsigned char* frame_ptr, } } -#ifdef LV_HAVE_GENERIC - static inline void volk_8u_x2_encodeframepolar_8u_generic(unsigned char* frame, unsigned char* temp, unsigned int frame_size) @@ -68,7 +66,6 @@ static inline void volk_8u_x2_encodeframepolar_8u_generic(unsigned char* frame, --stage; } } -#endif /* LV_HAVE_GENERIC */ #ifdef LV_HAVE_SSSE3 #include