Troubleshooting SPI Master Data Transmission with Zephyr and SDK Versions

I want to use SPI Master for data transmission.

I found this link:
https://github.com/too1/ncs-spi-master-slave-example

but I use this example for testing with VS Code Zephyr and SDK 2.5.1, and it compiles successfully. However, if I change it to v2.2.0, the following error occurs:

I haven't made any modifications other than changing the SDK version