aom: av1_block_error_lp_neon: fix block_size param type

From bfd5fa58ddf93f7a716472cddd4fdd9930bd2525 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
---
 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 26d06b46fe..1d4299fec9 100644
--- a/av1/encoder/arm/neon/av1_error_neon.c
+++ b/av1/encoder/arm/neon/av1_error_neon.c
@@ -13,6 +13,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"
@@ -63,7 +64,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) {
   uint64x2_t err_u64 = vdupq_n_u64(0);
 
   assert(block_size >= 16);