Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
efivar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
efivar
Commits
a1c14aca
Commit
a1c14aca
authored
Sep 18, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed gcc9 patch
parent
886f8d10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
efivar-37-gcc9_fix.patch
efivar-37-gcc9_fix.patch
+9
-7
No files found.
efivar-37-gcc9_fix.patch
View file @
a1c14aca
diff -uNr efivar-37/src/dp.h efivar-37-gcc9_fix/src/dp.h
diff -uNr efivar-37/src/dp.h efivar-37-gcc9_fix/src/dp.h
--- efivar-37/src/dp.h 2018-12-06 02:47:42.000000000 +1030
--- efivar-37/src/dp.h 2018-12-06 02:47:42.000000000 +1030
+++ efivar-37-gcc9_fix/src/dp.h 2019-09-1
3 13:28:14.062649345
+0930
+++ efivar-37-gcc9_fix/src/dp.h 2019-09-1
7 16:05:39.967328497
+0930
@@ -70,
7 +70,10
@@
@@ -70,
8 +70,11
@@
#define format_guid(buf, size, off, dp_type, guid) ({ \
#define format_guid(buf, size, off, dp_type, guid) ({ \
int _rc; \
int _rc; \
char *_guidstr = NULL; \
char *_guidstr = NULL; \
+ efi_guid_t _guid; \
+ efi_guid_t _guid; \
+ const efi_guid_t * const _guid_p = &_guid; \
+ const efi_guid_t * const _guid_p = &_guid; \
\
\
- _rc = efi_guid_to_str(guid, &_guidstr); \
+ memmove(&_guid, guid, sizeof(_guid)); \
+ memmove(&_guid, guid, sizeof(_guid)); \
_rc = efi_guid_to_str(guid, &_guidstr);
\
+ _rc = efi_guid_to_str(_guid_p, &_guidstr);
\
if (_rc < 0) { \
if (_rc < 0) { \
efi_error("could not build %s GUID DP string", \
efi_error("could not build %s GUID DP string", \
dp_type); \
@@ -79,7 +82,7 @@
@@ -79,7 +82,7 @@
_guidstr = onstack(_guidstr, \
_guidstr = onstack(_guidstr, \
strlen(_guidstr)+1); \
strlen(_guidstr)+1); \
...
@@ -23,7 +25,7 @@ diff -uNr efivar-37/src/dp.h efivar-37-gcc9_fix/src/dp.h
...
@@ -23,7 +25,7 @@ diff -uNr efivar-37/src/dp.h efivar-37-gcc9_fix/src/dp.h
})
})
diff -uNr efivar-37/src/dp-message.c efivar-37-gcc9_fix/src/dp-message.c
diff -uNr efivar-37/src/dp-message.c efivar-37-gcc9_fix/src/dp-message.c
--- efivar-37/src/dp-message.c 2018-12-06 02:47:42.000000000 +1030
--- efivar-37/src/dp-message.c 2018-12-06 02:47:42.000000000 +1030
+++ efivar-37-gcc9_fix/src/dp-message.c 2019-09-1
3 13:23:33.45817096
0 +0930
+++ efivar-37-gcc9_fix/src/dp-message.c 2019-09-1
7 15:57:44.34151729
0 +0930
@@ -620,11 +620,13 @@
@@ -620,11 +620,13 @@
) / sizeof(efi_ip_addr_t);
) / sizeof(efi_ip_addr_t);
format(buf, size, off, "Dns", "Dns(");
format(buf, size, off, "Dns", "Dns(");
...
@@ -42,7 +44,7 @@ diff -uNr efivar-37/src/dp-message.c efivar-37-gcc9_fix/src/dp-message.c
...
@@ -42,7 +44,7 @@ diff -uNr efivar-37/src/dp-message.c efivar-37-gcc9_fix/src/dp-message.c
break;
break;
diff -uNr efivar-37/src/guid.c efivar-37-gcc9_fix/src/guid.c
diff -uNr efivar-37/src/guid.c efivar-37-gcc9_fix/src/guid.c
--- efivar-37/src/guid.c 2018-12-06 02:47:42.000000000 +1030
--- efivar-37/src/guid.c 2018-12-06 02:47:42.000000000 +1030
+++ efivar-37-gcc9_fix/src/guid.c 2019-09-1
3 13:29:54.746765852
+0930
+++ efivar-37-gcc9_fix/src/guid.c 2019-09-1
7 15:57:44.341517290
+0930
@@ -31,7 +31,7 @@
@@ -31,7 +31,7 @@
extern const efi_guid_t efi_guid_zero;
extern const efi_guid_t efi_guid_zero;
...
@@ -54,7 +56,7 @@ diff -uNr efivar-37/src/guid.c efivar-37-gcc9_fix/src/guid.c
...
@@ -54,7 +56,7 @@ diff -uNr efivar-37/src/guid.c efivar-37-gcc9_fix/src/guid.c
}
}
diff -uNr efivar-37/src/include/efivar/efivar.h efivar-37-gcc9_fix/src/include/efivar/efivar.h
diff -uNr efivar-37/src/include/efivar/efivar.h efivar-37-gcc9_fix/src/include/efivar/efivar.h
--- efivar-37/src/include/efivar/efivar.h 2018-12-06 02:47:42.000000000 +1030
--- efivar-37/src/include/efivar/efivar.h 2018-12-06 02:47:42.000000000 +1030
+++ efivar-37-gcc9_fix/src/include/efivar/efivar.h 2019-09-1
3 13:31:06.306491220
+0930
+++ efivar-37-gcc9_fix/src/include/efivar/efivar.h 2019-09-1
7 15:57:44.342517292
+0930
@@ -128,7 +128,7 @@
@@ -128,7 +128,7 @@
extern int efi_guid_is_zero(const efi_guid_t *guid);
extern int efi_guid_is_zero(const efi_guid_t *guid);
...
@@ -66,7 +68,7 @@ diff -uNr efivar-37/src/include/efivar/efivar.h efivar-37-gcc9_fix/src/include/e
...
@@ -66,7 +68,7 @@ diff -uNr efivar-37/src/include/efivar/efivar.h efivar-37-gcc9_fix/src/include/e
typedef struct efi_variable efi_variable_t;
typedef struct efi_variable efi_variable_t;
diff -uNr efivar-37/src/ucs2.h efivar-37-gcc9_fix/src/ucs2.h
diff -uNr efivar-37/src/ucs2.h efivar-37-gcc9_fix/src/ucs2.h
--- efivar-37/src/ucs2.h 2018-12-06 02:47:42.000000000 +1030
--- efivar-37/src/ucs2.h 2018-12-06 02:47:42.000000000 +1030
+++ efivar-37-gcc9_fix/src/ucs2.h 2019-09-1
3 13:37:59.004227023
+0930
+++ efivar-37-gcc9_fix/src/ucs2.h 2019-09-1
7 15:57:44.342517292
+0930
@@ -23,16 +23,21 @@
@@ -23,16 +23,21 @@
(((val) & ((mask) << (shift))) >> (shift))
(((val) & ((mask) << (shift))) >> (shift))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment