diff --git a/src/ipa/rkisp1/algorithms/goc.cpp b/src/ipa/rkisp1/algorithms/goc.cpp
index e98c9526722f..a82cee3bbf61 100644
--- a/src/ipa/rkisp1/algorithms/goc.cpp
+++ b/src/ipa/rkisp1/algorithms/goc.cpp
@@ -112,7 +112,7 @@ void GammaOutCorrection::prepare(IPAContext &context,
 		64, 64, 64, 64, 128, 128, 128, 128, 256,
 		256, 256, 512, 512, 512, 512, 512, 0
 	};
-	auto gamma_y = params->others.goc_config.gamma_y;
+	__u16 *gamma_y = params->others.goc_config.gamma_y;
 
 	if (!frameContext.goc.update)
 		return;
