static void __init efi_arch_handle_cmdline(CHAR16 *image_name,
CHAR16 *cmdline_options,
- char *cfgfile_options)
+ const char *cfgfile_options)
{
union string name;
char *buf;
efi_bs->FreePool(buf);
}
-static void __init efi_arch_handle_module(struct file *file, const CHAR16 *name,
- char *options)
+static void __init efi_arch_handle_module(const struct file *file,
+ const CHAR16 *name,
+ const char *options)
{
int node;
int chosen;
static void __init efi_arch_handle_cmdline(CHAR16 *image_name,
CHAR16 *cmdline_options,
- char *cfgfile_options)
+ const char *cfgfile_options)
{
union string name;
#undef l2_4G_offset
}
-static void __init efi_arch_handle_module(struct file *file, const CHAR16 *name,
- char *options)
+static void __init efi_arch_handle_module(const struct file *file,
+ const CHAR16 *name,
+ const char *options)
{
union string local_name;
void *ptr;
static CHAR16 *s2w(union string *str);
static char *w2s(const union string *str);
static bool read_file(EFI_FILE_HANDLE dir_handle, CHAR16 *name,
- struct file *file, char *options);
+ struct file *file, const char *options);
static size_t wstrlen(const CHAR16 * s);
static int set_color(u32 mask, int bpp, u8 *pos, u8 *sz);
static bool match_guid(const EFI_GUID *guid1, const EFI_GUID *guid2);
}
static bool __init read_file(EFI_FILE_HANDLE dir_handle, CHAR16 *name,
- struct file *file, char *options)
+ struct file *file, const char *options)
{
EFI_FILE_HANDLE FileHandle = NULL;
UINT64 size;
EFI_GRAPHICS_OUTPUT_PROTOCOL *gop = NULL;
union string section = { NULL }, name;
bool base_video = false;
- char *option_str;
+ const char *option_str;
bool use_cfg_file;
__set_bit(EFI_BOOT, &efi_flags);