[PATCH 6.1 394/451] kconfig: fix infinite loop when expanding a macro at the end of file