diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-02-08 11:27:24 -0500 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-04-17 08:25:09 -0400 |
commit | d68772b7c83f4b518be15ae96f4827c8ed02f684 (patch) | |
tree | b3408a750976edf6e0b62bfce3e26d1c9685a907 /fs/efivarfs/internal.h | |
parent | 048517722cde2595a7366d0c3c72b8b1ec142a9c (diff) |
efivarfs: Move to fs/efivarfs
Now that efivarfs uses the efivar API, move it out of efivars.c and
into fs/efivarfs where it belongs. This move will eventually allow us
to enable the efivarfs code without having to also enable
CONFIG_EFI_VARS built, and vice versa.
Furthermore, things like,
mount -t efivarfs none /sys/firmware/efi/efivars
will now work if efivarfs is built as a module without requiring the
use of MODULE_ALIAS(), which would have been necessary when the
efivarfs code was part of efivars.c.
Cc: Matthew Garrett <matthew.garrett@nebula.com>
Cc: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: Tom Gundersen <teg@jklm.no>
Tested-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'fs/efivarfs/internal.h')
-rw-r--r-- | fs/efivarfs/internal.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fs/efivarfs/internal.h b/fs/efivarfs/internal.h new file mode 100644 index 000000000000..b5ff16addb7c --- /dev/null +++ b/fs/efivarfs/internal.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Red Hat, Inc. | ||
3 | * Copyright (C) 2012 Jeremy Kerr <jeremy.kerr@canonical.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 as | ||
7 | * published by the Free Software Foundation. | ||
8 | */ | ||
9 | #ifndef EFIVAR_FS_INTERNAL_H | ||
10 | #define EFIVAR_FS_INTERNAL_H | ||
11 | |||
12 | #include <linux/list.h> | ||
13 | |||
14 | extern const struct file_operations efivarfs_file_operations; | ||
15 | extern const struct inode_operations efivarfs_dir_inode_operations; | ||
16 | extern bool efivarfs_valid_name(const char *str, int len); | ||
17 | extern struct inode *efivarfs_get_inode(struct super_block *sb, | ||
18 | const struct inode *dir, int mode, dev_t dev); | ||
19 | |||
20 | extern struct list_head efivarfs_list; | ||
21 | |||
22 | #endif /* EFIVAR_FS_INTERNAL_H */ | ||