Fix coreboot-utils to build with latest llvm
cbfs-payload-linux.c:255:43: note: add parentheses around left
hand side expression to silence this warning
if ((hdr->protocol_version >= 0x200) && (!hdr->loadflags & 1)) {
BUG=chromium:665657
TEST=coreboot-utils builds
Change-Id: I8758e7d158ca32e87107797f2a33b9d9a0e4676f
Reviewed-on: https://chromium-review.googlesource.com/411335
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
38d34ed0a0
commit
35c4935f2a
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ int parse_bzImage_to_payload(const struct buffer *input,
|
|||
}
|
||||
|
||||
unsigned long kernel_base = 0x100000;
|
||||
if ((hdr->protocol_version >= 0x200) && (!hdr->loadflags & 1)) {
|
||||
if ((hdr->protocol_version >= 0x200) && (!hdr->loadflags)) {
|
||||
kernel_base = 0x1000; /* zImage kernel */
|
||||
}
|
||||
/* kernel prefers an address, so listen */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue