diff options
Diffstat (limited to 'meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch')
-rw-r--r-- | meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch b/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch new file mode 100644 index 0000000000..fa50bc4a6e --- /dev/null +++ b/meta/recipes-bsp/gummiboot/gummiboot/0001-console-Fix-C-syntax-errors-for-function-declaration.patch | |||
@@ -0,0 +1,74 @@ | |||
1 | From 55957faf1272c8f5f304909faeebf647a78e3701 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 9 Sep 2015 07:19:45 +0000 | ||
4 | Subject: [PATCH] console: Fix C syntax errors for function declaration | ||
5 | |||
6 | To address this, the semicolons after the function parameters should be | ||
7 | replaced by commas, and the last one should be omitted | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | src/efi/console.c | 26 +++++++++++++------------- | ||
14 | 1 file changed, 13 insertions(+), 13 deletions(-) | ||
15 | |||
16 | diff --git a/src/efi/console.c b/src/efi/console.c | ||
17 | index 6206c80..66aa88f 100644 | ||
18 | --- a/src/efi/console.c | ||
19 | +++ b/src/efi/console.c | ||
20 | @@ -27,8 +27,8 @@ | ||
21 | struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL; | ||
22 | |||
23 | typedef EFI_STATUS (EFIAPI *EFI_INPUT_RESET_EX)( | ||
24 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
25 | - BOOLEAN ExtendedVerification; | ||
26 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
27 | + BOOLEAN ExtendedVerification | ||
28 | ); | ||
29 | |||
30 | typedef UINT8 EFI_KEY_TOGGLE_STATE; | ||
31 | @@ -44,29 +44,29 @@ typedef struct { | ||
32 | } EFI_KEY_DATA; | ||
33 | |||
34 | typedef EFI_STATUS (EFIAPI *EFI_INPUT_READ_KEY_EX)( | ||
35 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
36 | - EFI_KEY_DATA *KeyData; | ||
37 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
38 | + EFI_KEY_DATA *KeyData | ||
39 | ); | ||
40 | |||
41 | typedef EFI_STATUS (EFIAPI *EFI_SET_STATE)( | ||
42 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
43 | - EFI_KEY_TOGGLE_STATE *KeyToggleState; | ||
44 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
45 | + EFI_KEY_TOGGLE_STATE *KeyToggleState | ||
46 | ); | ||
47 | |||
48 | typedef EFI_STATUS (EFIAPI *EFI_KEY_NOTIFY_FUNCTION)( | ||
49 | - EFI_KEY_DATA *KeyData; | ||
50 | + EFI_KEY_DATA *KeyData | ||
51 | ); | ||
52 | |||
53 | typedef EFI_STATUS (EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY)( | ||
54 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
55 | - EFI_KEY_DATA KeyData; | ||
56 | - EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction; | ||
57 | - VOID **NotifyHandle; | ||
58 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
59 | + EFI_KEY_DATA KeyData, | ||
60 | + EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction, | ||
61 | + VOID **NotifyHandle | ||
62 | ); | ||
63 | |||
64 | typedef EFI_STATUS (EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY)( | ||
65 | - struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This; | ||
66 | - VOID *NotificationHandle; | ||
67 | + struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, | ||
68 | + VOID *NotificationHandle | ||
69 | ); | ||
70 | |||
71 | typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL { | ||
72 | -- | ||
73 | 2.5.1 | ||
74 | |||