arm: mark save_boot_params_ret as a function