Update DSP library for additional platforms

The `tmp` variable was unused if `!__aarch64__` and it was causing a compile warning.
Also, replace the compile definitions to include `__GNUC_PYTHON__` for all non ARM platforms.

(cherry picked from commit 74981bf893e8b10931464b9945e2143d99a3f0a3)

Original-Signed-off-by: Yuval Peress <peress@google.com>
GitOrigin-RevId: 74981bf893e8b10931464b9945e2143d99a3f0a3
Change-Id: I0f5a1e6153b8f7eec56bf4f500a80dc97da339be
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/cmsis/+/4016462
Tested-by: CopyBot Service Account <copybot.service@gmail.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
diff --git a/CMSIS/DSP/CMakeLists.txt b/CMSIS/DSP/CMakeLists.txt
index c02c4b8..7e4ea0c 100644
--- a/CMSIS/DSP/CMakeLists.txt
+++ b/CMSIS/DSP/CMakeLists.txt
@@ -9,4 +9,4 @@
 
 add_subdirectory(Source)
 
-zephyr_compile_definitions_ifdef(CONFIG_ARCH_POSIX __GNUC_PYTHON__)
+zephyr_compile_definitions_ifndef(CONFIG_ARM __GNUC_PYTHON__)
diff --git a/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_f32.c b/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_f32.c
index df568f3..5a0fef4 100644
--- a/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_f32.c
+++ b/CMSIS/DSP/Source/BasicMathFunctions/arm_dot_prod_f32.c
@@ -132,7 +132,9 @@
     f32x4_t vec1;
     f32x4_t vec2;
     f32x4_t accum = vdupq_n_f32(0);   
+#if !__aarch64__
     f32x2_t tmp = vdup_n_f32(0);    
+#endif
 
     /* Compute 4 outputs at a time */
     blkCnt = blockSize >> 2U;