arm: Fixed undeclared variable build error

Change-Id: I31c53f7f33b0377e5c8926af4c17987bf5875d93
Signed-off-by: zwliew <zhaoweiliew@gmail.com>