]> xenbits.xensource.com Git - xen.git/commit
x86: fix build with gcc 7
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Jun 2017 11:58:11 +0000 (13:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Jun 2017 11:58:11 +0000 (13:58 +0200)
commit7a46badcf4eaa337070a6e7dda61698fd5a32cb3
tree8a19e9e484cc212dedb2a068e1f0e206e7778942
parent38e8ab9e1c4f1f876481c2f2ebaf463c31fa7475
x86: fix build with gcc 7

-Wint-in-bool-context, enabled by default in gcc 7, doesn't like
multiplication in conditional operators. "Hide" them, at the risk of
the next compiler version becoming smarter and recognizing even those.
(The hope is that added smartness then would also better deal with
legitimate cases like the ones here.)

The change could have been done in access_ok(), but I think we better
keep it at the places the compiler is actually unhappy about.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: f32400e90c046a9fd76c8917a60d34ade9c02ea2
master date: 2017-05-19 10:11:36 +0200
xen/arch/x86/traps.c
xen/include/asm-x86/x86_64/uaccess.h