From 54ed9cda5d7512c6cfefb4d205a931e2aff66a8d Mon Sep 17 00:00:00 2001 From: Zonglin Peng Date: Mon, 2 Dec 2024 15:06:03 -0800 Subject: [PATCH] fix D66543187 build-jarvis-xtensa-dsp and lint errros Summary: includes were not sanized. https://www.internalfb.com/sandcastle/workflow/2747195772701278721 bypass-github-export-checks Reviewed By: mcremon-meta Differential Revision: D66561764 --- backends/cadence/hifi/kernels/kernels.h | 6 +++--- .../nnlib/xa_nn_elm_minimum_maximum_f32.c | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backends/cadence/hifi/kernels/kernels.h b/backends/cadence/hifi/kernels/kernels.h index 10927adc2a2..2eabfb95079 100644 --- a/backends/cadence/hifi/kernels/kernels.h +++ b/backends/cadence/hifi/kernels/kernels.h @@ -92,9 +92,9 @@ extern "C" WORD32 xa_nn_elm_mul_broadcast_4D_f32xf32_f32( const WORD32* const p_inp2_shape); extern "C" void xa_nn_elm_pow_f32( - FLOAT32* restrict z, - const FLOAT32* restrict x, - const FLOAT32* restrict y, + FLOAT32* __restrict__ z, + const FLOAT32* __restrict__ x, + const FLOAT32* __restrict__ y, WORD32 N); extern "C" WORD32 xa_nn_elm_where_f32xf32_f32( diff --git a/backends/cadence/hifi/third-party/nnlib/xa_nn_elm_minimum_maximum_f32.c b/backends/cadence/hifi/third-party/nnlib/xa_nn_elm_minimum_maximum_f32.c index 3af93fc00c1..61d7bcf781f 100644 --- a/backends/cadence/hifi/third-party/nnlib/xa_nn_elm_minimum_maximum_f32.c +++ b/backends/cadence/hifi/third-party/nnlib/xa_nn_elm_minimum_maximum_f32.c @@ -19,12 +19,12 @@ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ******************************************************************************/ -#include "nnlib-hifi4/xa_nnlib/include/xa_type_def.h" -#include "nnlib-hifi4/xa_nnlib/algo/common/include/xa_nnlib_common_fpu.h" -#include "nnlib-hifi4/xa_nnlib/algo/common/include/xa_nn_common.h" -#include "nnlib-hifi4/xa_nnlib/algo/common/include/xa_nnlib_err_chk.h" -#include "nnlib-hifi4/xa_nnlib/algo/kernels/basic/hifi4/xa_nn_basic_state.h" -#include "nnlib-hifi4/xa_nnlib/include/nnlib/xa_nnlib_kernels_api.h" +#include "xa_type_def.h" +#include "xa_nnlib_common_fpu.h" +#include "xa_nn_common.h" +#include "xa_nnlib_err_chk.h" +// #include "xa_nn_basic_state.h" +#include "xa_nnlib_kernels_api.h" #if !HAVE_VFPU DISCARD_FUN_FOR_NONVOID_RETURN( @@ -844,4 +844,4 @@ WORD32 xa_nn_elm_minimum_broadcast_4D_f32xf32_f32(FLOAT32 * __restrict__ p_out, } return 0; } -#endif \ No newline at end of file +#endif