]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: clean up clang build warning
authorColin Ian King <colin.king@canonical.com>
Mon, 18 Sep 2017 09:03:12 +0000 (10:03 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Thu, 21 Sep 2017 16:34:03 +0000 (12:34 -0400)
commit51a9a8284e43642fc3e85810fd54f4c245d23a14
treec432175af134fd1bdb5dd9d6190cfa56f422bd0c
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
x86/xen: clean up clang build warning

In the case where sizeof(maddr) != sizeof(long) p is initialized and
never read and clang throws a warning on this.  Move declaration of
p to clean up the clang build warning:

warning: Value stored to 'p' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/x86/include/asm/xen/hypercall.h