diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2021-01-15 08:46:03 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-02-19 10:17:55 +0300 |
commit | fade5cad9339a627c5ad029e3577582b6292df03 (patch) | |
tree | 5f6fb420e82a663780357388ba12c070c02a0995 /include/linux/initrd.h | |
parent | f105aa940e78a87b6b6c82d7c230db86386ff013 (diff) | |
download | linux-fade5cad9339a627c5ad029e3577582b6292df03.tar.xz |
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 <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'include/linux/initrd.h')
-rw-r--r-- | include/linux/initrd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/initrd.h b/include/linux/initrd.h index 8db6f8c8030b..fc30ac30e10e 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 */ |