[PATCH 6.6 565/638] kconfig: fix infinite loop when expanding a macro at the end of file