A google search of 'crypto_tfm_ctx' will show that the declaration of this function is located in 'include/crypto/algapi.h' in the linux 6.3.x series.
So this is not complicated to solve : it's enough to add '#include <crypto/algapi.h>' into the magma_generic.c file , after the '#include <linux/crypto.h>' line.