aom: av1_block_error_lp_neon: fix block_size param type (43500)

From 43500614aad8a2e3d740ca5b3f1451f82046e238 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Wed, 29 May 2024 13:26:24 -0700
Subject: [PATCH] av1_block_error_lp_neon: fix block_size param type

int -> intptr_t. This fixes a Control Flow Integrity (CFI) sanitizer
failure.

This also fixes a -Wmissing-prototypes warning.

This is a port of a broader change that contained the fix:
b44333201b *_neon.c: add missing rtcd includes & CONFIG check

Bug: aomedia:3416
Change-Id: I2e6980fba33631f5bb612d40dfc83b6f2527fe4b
(cherry picked from commit bfd5fa58ddf93f7a716472cddd4fdd9930bd2525)
---
 av1/encoder/arm/neon/av1_error_neon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/av1/encoder/arm/neon/av1_error_neon.c b/av1/encoder/arm/neon/av1_error_neon.c
index 7d24c7d7af..84c896736e 100644
--- a/av1/encoder/arm/neon/av1_error_neon.c
+++ b/av1/encoder/arm/neon/av1_error_neon.c
@@ -12,6 +12,7 @@
 #include <assert.h>
 
 #include "config/aom_config.h"
+#include "config/av1_rtcd.h"
 
 #include "aom_dsp/aom_dsp_common.h"
 #include "aom_dsp/arm/mem_neon.h"
@@ -60,7 +61,7 @@ int64_t av1_block_error_neon(const tran_low_t *coeff, const tran_low_t *dqcoeff,
 }
 
 int64_t av1_block_error_lp_neon(const int16_t *coeff, const int16_t *dqcoeff,
-                                int block_size) {
+                                intptr_t block_size) {
   int64x2_t error = vdupq_n_s64(0);
 
   assert(block_size >= 8);