From patchwork Tue Oct 30 05:18:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10660459 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D7B1613BF for ; Tue, 30 Oct 2018 05:20:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C686029A86 for ; Tue, 30 Oct 2018 05:20:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BACE929AA0; Tue, 30 Oct 2018 05:20:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6CDEA29A86 for ; Tue, 30 Oct 2018 05:20:31 +0000 (UTC) Received: from localhost ([::1]:50833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHMS6-0006vB-2Z for patchwork-qemu-devel@patchwork.kernel.org; Tue, 30 Oct 2018 01:20:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHMQa-0005hC-I6 for qemu-devel@nongnu.org; Tue, 30 Oct 2018 01:18:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHMQZ-0005R4-VH for qemu-devel@nongnu.org; Tue, 30 Oct 2018 01:18:56 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:37595) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHMQY-0005Pn-HE; Tue, 30 Oct 2018 01:18:54 -0400 Received: by mail-pg1-x543.google.com with SMTP id c10-v6so5036629pgq.4; Mon, 29 Oct 2018 22:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FgvdVDUPnI673cSBmsDUsU/PAy+GUv8Lfar0Uhzqfac=; b=QLypHxday00TqgR7oyx5lNeyzithv4BdXW+X+bE0ZKuBiuQ1epMn/wun33W9pljhev Sclt+JM0WwqKnc6A/ca0sKjWA4z5L46zCPk5ofL5Ll9CKLXc5AWSly811tPHC9Al3Rqr bgRmXcsA591QJllS96YreWeg0zEeRnK5Vn+xTXFwIWwywLxKr5HwYwUIui3JvR0FqwND bsbg4y0qX8eT9ZyZbhdPAtAT+xD2TmfC/aYIY1P1TVwatC/eZMmLqD4dYXyKM3TU6FVc 3azQn97DnyvrRSsMHQ/UHr8Um5DZZcdOmlzgpeSnKc8HybWSKiYT1J3y/6BhzeQUoDoq eWNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FgvdVDUPnI673cSBmsDUsU/PAy+GUv8Lfar0Uhzqfac=; b=YS9UrCQusimqaypy3xXgOeWDlI3IchLGeJAZoS2lTjeSBEvwNFSorm4moI6H0d+y8m jabUE6QTpTklHF6VkW93BQi0tvgfOrQtI0hSWq75jau67/oVhEX87vZN2t369cXXAMKa +dtkOmgRvS2Kb60H/BMMwQitXHcY1o8j3O7M1Qduy8CcJXgx2zp/bmnweJ0CbjLaqq1M WZZbiNoNZtSiTsjOqzCGJDkoCBIC5pRp+2F0/dlkhq0Tx6dNOkuim4z1ChYct4WWOKCH T1cXmx8XjKuQ8/yZeySY3rRXLUNdD/WHq4bPtth/DRIgyzJLbZH5zRJkK3QR7qKAVDIN MnqA== X-Gm-Message-State: AGRZ1gLesHU3i7pzgCo36jax7Bfzo8h/B18xDMnJLJW6N1gibOqBL7nF PberwzKRq9YwQ+EaXScusJo= X-Google-Smtp-Source: AJdET5d47HxehRDXZU6qZ2NTCglyanSjlXSxRHwqP3d8/pBbTIbGBiP1nZcBjKzkmMEBbL5he+offQ== X-Received: by 2002:a63:9a09:: with SMTP id o9mr15012274pge.94.1540876733700; Mon, 29 Oct 2018 22:18:53 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.65]) by smtp.gmail.com with ESMTPSA id p129-v6sm11463729pgp.92.2018.10.29.22.18.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Oct 2018 22:18:53 -0700 (PDT) From: Li Qiang To: keith.busch@intel.com, kwolf@redhat.com, mreitz@redhat.com Date: Mon, 29 Oct 2018 22:18:37 -0700 Message-Id: <1540876720-9574-2-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1540876720-9574-1-git-send-email-liq3ea@gmail.com> References: <1540876720-9574-1-git-send-email-liq3ea@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PATCH 1/4] nvme: use TYPE_NVME instead of constant string X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , qemu-devel@nongnu.org, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Li Qiang Reviewed-by: Max Reitz --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index fc7dacb..676cc48 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -1379,7 +1379,7 @@ static void nvme_instance_init(Object *obj) } static const TypeInfo nvme_info = { - .name = "nvme", + .name = TYPE_NVME, .parent = TYPE_PCI_DEVICE, .instance_size = sizeof(NvmeCtrl), .class_init = nvme_class_init,