HAL_TIM_ConfigClockSource needs these values to be filled in with something:
While you're in there,
stm32f4xx_hal_spi.c has an unused variable at line 2118 (tmpreg)
If warnings are treated as errors, this causes compiles to bomb.
Finally, getting rid of the dates and times in the Inc and Src files is highly appreciated.