summaryrefslogtreecommitdiffstats
path: root/fs/efi.c
diff options
context:
space:
mode:
authorDu Huanpeng <u74147@gmail.com>2016-04-13 20:35:18 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-14 08:07:13 +0200
commit556459f022d68ddd6ad87e68aef63c2dc52a8a43 (patch)
tree501232e81477f3dfa14ecf823ad9f3651234acc7 /fs/efi.c
parentb86834423f856aecf733ddc8c8c1fb1d075f8e6e (diff)
downloadbarebox-556459f022d68ddd6ad87e68aef63c2dc52a8a43.tar.gz
barebox-556459f022d68ddd6ad87e68aef63c2dc52a8a43.tar.xz
wchar_t: wchar_t should go to stddef.h
according to C99 standard, the definition of wchar_t should go stddef.h this patch also remove wchar_t local definition and use stddef.h instead. Signed-off-by: Du Huanpeng <u74147@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/efi.c')
-rw-r--r--fs/efi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/efi.c b/fs/efi.c
index 0f74cdafff..83c46826d5 100644
--- a/fs/efi.c
+++ b/fs/efi.c
@@ -32,6 +32,7 @@
#include <efi.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
+#include <linux/stddef.h>
/* Open modes */
#define EFI_FILE_MODE_READ 0x0000000000000001
@@ -92,8 +93,6 @@ struct efi_file_info {
s16 FileName[1];
};
-typedef unsigned short wchar_t;
-
struct efifs_priv {
struct efi_file_handle *root_dir;
struct efi_file_io_interface *protocol;