aom: av1_block_error_lp_sve: fix block_size param type (584d4)

From 584d47a41ea4c0f254cd7802286b9aacc307e326 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Tue, 28 May 2024 15:58:26 -0700
Subject: [PATCH] av1_block_error_lp_sve: fix block_size param type

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

This also fixes a -Wmissing-prototypes warning. The _neon version was
fixed in:
b44333201b *_neon.c: add missing rtcd includes & CONFIG check

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

diff --git a/av1/encoder/arm/neon/av1_error_sve.c b/av1/encoder/arm/neon/av1_error_sve.c
index 52803a983..5a1ad2f48 100644
--- a/av1/encoder/arm/neon/av1_error_sve.c
+++ b/av1/encoder/arm/neon/av1_error_sve.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/aom_neon_sve_bridge.h"
@@ -49,7 +50,7 @@ int64_t av1_block_error_sve(const tran_low_t *coeff, const tran_low_t *dqcoeff,
 }
 
 int64_t av1_block_error_lp_sve(const int16_t *coeff, const int16_t *dqcoeff,
-                               int block_size) {
+                               intptr_t block_size) {
   if (block_size % 32 == 0) {
     int64x2_t error[4] = { vdupq_n_s64(0), vdupq_n_s64(0), vdupq_n_s64(0),
                            vdupq_n_s64(0) };