[PATCH 5.15 282/317] kconfig: fix infinite loop when expanding a macro at the end of file