diff options
author | Vincent Whitchurch <vincent.whitchurch@axis.com> | 2021-12-08 16:11:22 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-12-22 20:32:36 +0100 |
commit | 361640b4fdc86167b0c25d8e73c08dcaa4ecd28a (patch) | |
tree | 36af31f11c70be3c0e135c6c56a5bc569acef444 /arch/um/kernel/um_arch.h | |
parent | 8bb227ac34c062b466a0d5fd21f060010375880b (diff) | |
download | linux-361640b4fdc86167b0c25d8e73c08dcaa4ecd28a.tar.gz linux-361640b4fdc86167b0c25d8e73c08dcaa4ecd28a.tar.bz2 linux-361640b4fdc86167b0c25d8e73c08dcaa4ecd28a.zip |
um: Extract load file helper from initrd.c
The file loading support in initrd.c can be re-used for
loading devicetrees. Move it out of initrd.c.
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/um_arch.h')
-rw-r--r-- | arch/um/kernel/um_arch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/um/kernel/um_arch.h b/arch/um/kernel/um_arch.h new file mode 100644 index 000000000000..b195df3a09a0 --- /dev/null +++ b/arch/um/kernel/um_arch.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef __UML_ARCH_H__ +#define __UML_ARCH_H__ + +extern void * __init uml_load_file(const char *filename, unsigned long long *size); + +#endif |