提交 42a8e8ea 编写于 作者: K Kefeng Wang 提交者: Hongchen Zhang

initrd: Add the preprocessor guard in initrd.h

mainline inclusion
from mainline-v5.12-rc1-dontuse
commit fade5cad
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB
CVE: NA

--------------------------------

Add the preprocessor guard in initrd.h to prevent possible
build error from the multiple inclusion of same header file
multiple time.

Change-Id: I0644dec3e728545b6fb0fd451ffc454b3d09fc64
Signed-off-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: NHuacai Chen <chenhuacai@loongson.cn>
上级 7d78f964
/* SPDX-License-Identifier: GPL-2.0 */ /* 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 ... */ #define INITRD_MINOR 250 /* shouldn't collide with /dev/ram* too soon ... */
/* starting block # of image */ /* starting block # of image */
...@@ -24,3 +27,5 @@ extern char __initramfs_start[]; ...@@ -24,3 +27,5 @@ extern char __initramfs_start[];
extern unsigned long __initramfs_size; extern unsigned long __initramfs_size;
void console_on_rootfs(void); void console_on_rootfs(void);
#endif /* __LINUX_INITRD_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册