projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e921b
)
efi_loader: avoid alignment error
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 14 Jul 2019 16:51:00 +0000
(18:51 +0200)
committer
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Tue, 16 Jul 2019 22:17:22 +0000
(22:17 +0000)
In packed structures GUIDs are not aligned. Avoid a build error with
GCC 9.1 by using const void * as argument for guidcmp().
Reported-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
patch
|
blob
|
history
diff --git
a/include/efi_loader.h
b/include/efi_loader.h
index
6cc6a38
..
5298ea7
100644
(file)
--- a/
include/efi_loader.h
+++ b/
include/efi_loader.h
@@
-567,7
+567,7
@@
static inline void ascii2unicode(u16 *unicode, const char *ascii)
*unicode = 0;
}
-static inline int guidcmp(const
efi_guid_t *g1, const efi_guid_t
*g2)
+static inline int guidcmp(const
void *g1, const void
*g2)
{
return memcmp(g1, g2, sizeof(efi_guid_t));
}