From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751428AbbLUSrd (ORCPT ); Mon, 21 Dec 2015 13:47:33 -0500 Received: from p3plsmtps2ded04.prod.phx3.secureserver.net ([208.109.80.198]:41009 "EHLO p3plsmtps2ded04.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbbLUSrW (ORCPT ); Mon, 21 Dec 2015 13:47:22 -0500 x-originating-ip: 72.167.245.219 From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com Cc: Dexuan Cui , "K. Y. Srinivasan" Subject: [PATCH 1/1] Drivers: hv: vmbus: fix the building warning with hyperv-keyboard Date: Mon, 21 Dec 2015 12:21:22 -0800 Message-Id: <1450729282-27849-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 X-CMAE-Envelope: MS4wfO4CbySYAgCZD5it5ShW4J1H/E8uaHtT87vzyWT5cSOtIK/jZDW2T4Bc+nVpGyXJ31tVzEhFLOlMHoMc0RZRJAUfRG0cNvDwafscyKv3XAwyMmRP36U2 SEOF2DBjADHN+NLz39NmjFZUy0r1pZ39jQnbbIxr82lowVvovoIpoUFtGny4ieAl/+qJ88n2Y4sSdbusm9O3Q7x+nnKETYtSUhEGB3L7ZZg0bT1XZxVDIxT4 DrxfYvuJL1ayHQK8KUqico5f+vQVMdYQjFj25rqsii/HHyuFKf/ducWzNjtR0sgJ6wqc+yG9lbdbvDdpx1FgmYS/Sm2KlK+9Bp3kzt7HUmZKEafVUdDpmPF1 9tfLuSzwdpj+M7+eYruR697qReEOdIs0q6nc9CoXvvC1sV1pNF2lLA+ztc7ueu7wOioWF3fM7pMbq35ZU4Pqw8nFrPW0EQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dexuan Cui With the recent change af3ff643ea91ba64dd8d0b1cbed54d44512f96cd (Drivers: hv: vmbus: Use uuid_le type consistently), we always get this warning: CC [M] drivers/input/serio/hyperv-keyboard.o drivers/input/serio/hyperv-keyboard.c:427:2: warning: missing braces around initializer [-Wmissing-braces] { HV_KBD_GUID, }, ^ drivers/input/serio/hyperv-keyboard.c:427:2: warning: (near initialization for .id_table[0].guid.b.) [-Wmissing-braces] The patch fixes the warning. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/input/serio/hyperv-keyboard.c | 10 ---------- include/linux/hyperv.h | 8 ++++++++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c index e74e5d6..c948866 100644 --- a/drivers/input/serio/hyperv-keyboard.c +++ b/drivers/input/serio/hyperv-keyboard.c @@ -412,16 +412,6 @@ static int hv_kbd_remove(struct hv_device *hv_dev) return 0; } -/* - * Keyboard GUID - * {f912ad6d-2b17-48ea-bd65-f927a61c7684} - */ -#define HV_KBD_GUID \ - .guid = { \ - 0x6d, 0xad, 0x12, 0xf9, 0x17, 0x2b, 0xea, 0x48, \ - 0xbd, 0x65, 0xf9, 0x27, 0xa6, 0x1c, 0x76, 0x84 \ - } - static const struct hv_vmbus_device_id id_table[] = { /* Keyboard guid */ { HV_KBD_GUID, }, diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 179ff33..753dbad 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -1079,6 +1079,14 @@ u64 hv_do_hypercall(u64 control, void *input, void *output); 0x8b, 0xa1, 0xa1, 0xf3, 0xf9, 0x5a) /* + * Keyboard GUID + * {f912ad6d-2b17-48ea-bd65-f927a61c7684} + */ +#define HV_KBD_GUID \ + .guid = UUID_LE(0xf912ad6d, 0x2b17, 0x48ea, 0xbd, 0x65, \ + 0xf9, 0x27, 0xa6, 0x1c, 0x76, 0x84) + +/* * VSS (Backup/Restore) GUID */ #define HV_VSS_GUID \ -- 1.7.4.1