From: Kefeng Wang Date: Fri, 15 Jan 2021 05:46:03 +0000 (+0800) Subject: initrd: Add the preprocessor guard in initrd.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fade5cad9339a627c5ad029e3577582b6292df03;p=linux.git initrd: Add the preprocessor guard in initrd.h Add the preprocessor guard in initrd.h to prevent possible build error from the multiple inclusion of same header file multiple time. Signed-off-by: Kefeng Wang Signed-off-by: Palmer Dabbelt --- diff --git a/include/linux/initrd.h b/include/linux/initrd.h index 8db6f8c8030b6..fc30ac30e10ea 100644 --- a/include/linux/initrd.h +++ b/include/linux/initrd.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __LINUX_INITRD_H +#define __LINUX_INITRD_H + #define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */ /* starting block # of image */ @@ -24,3 +27,5 @@ extern char __initramfs_start[]; extern unsigned long __initramfs_size; void console_on_rootfs(void); + +#endif /* __LINUX_INITRD_H */