Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initramfs: avoid "label at end of compound statement" error
Commit 17a9be3 ("initramfs: Always do fput() and load modules after rootfs populate") introduced an error for the CONFIG_BLK_DEV_RAM=y case, because even though the code looks fine, the compiler really wants a statement after a label, or you'll get complaints: init/initramfs.c: In function 'populate_rootfs': init/initramfs.c:644:2: error: label at end of compound statement That commit moved the subsequent statements to outside the compound statement, leaving the label without any associated statements. Reported-by: Jörg Otte <[email protected]> Fixes: 17a9be3 ("initramfs: Always do fput() and load modules after rootfs populate") Cc: Al Viro <[email protected]> Cc: Stafford Horne <[email protected]> Cc: [email protected] # if 17a9be3 gets backported Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information