From patchwork Fri Jan 11 02:08:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10757207 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 9D49013BF for ; Fri, 11 Jan 2019 02:10:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9045D29C4D for ; Fri, 11 Jan 2019 02:10:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 84E2929C51; Fri, 11 Jan 2019 02:10:19 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42FCC29C4D for ; Fri, 11 Jan 2019 02:10:19 +0000 (UTC) Received: from localhost ([127.0.0.1]:34289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghmH4-0001Om-I1 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 10 Jan 2019 21:10:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghmFs-0008JX-6Z for qemu-devel@nongnu.org; Thu, 10 Jan 2019 21:09:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghmFr-0004cz-Hs for qemu-devel@nongnu.org; Thu, 10 Jan 2019 21:09:04 -0500 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:42369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghmFq-0004bw-4e; Thu, 10 Jan 2019 21:09:02 -0500 Received: by mail-oi1-x243.google.com with SMTP id w13so10985369oiw.9; Thu, 10 Jan 2019 18:09:02 -0800 (PST) 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=YZBhFnunBok1Gmb6mwNusTfLJTnvkZu+Im6xs8b6SQY=; b=lBt1kA3RCVXFNj3gRnDhQNgFUNefKV7sMb3Nb53lAGsuB+sagCu3LZC+zhvTkvYbbD usiOSiKDgYktbVWUjqJErm67MtKEzmVg7TrOE0GgBcWLEaHNRCOzOOzSkRzj59eXVs3o HPeAOymeX0Y2GZcEpXYW/yzRVirVWQuDxpabhGrW8tw2WrEHkHoSvtVAYkwe7mVg3xs7 i7hgg6mkbprD6rOeIbpuoPS0xQ6cLUZdZeLgG3z9SQOduJypXEIDE6r1eZaORyRIJzZg vKi1+xNXfIrf6wUnsFmMj4NXQ5Lsjfu3YuXkB09YaX+L6wCzheEbUfqjmvWbF4aID5eC oN9w== 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=YZBhFnunBok1Gmb6mwNusTfLJTnvkZu+Im6xs8b6SQY=; b=nJIT5iRc4oeHOPrhZ7PLbjz8vQTIMXABO+c9sQbm/Gr5l0y7YUpR6tpj839A2TGXbq nIqYbxmXVatCESvYUI0q6EVdBUGzdwS1wyj/hplBL0D+Z0G6w/WQ72zVSqqLSG1zcTu1 zILy7PTwBFoX0sLhePLQKzZvOvQ65tXJE7VZZro8SSFzY2vB5N/PPGECg6ULCrQLuyln GL0eoBRrwKuHkRLBpOJm0yB2ufkBdA/dvZkpYpGjiq7xTNzYrX0snV4PeBdsoz4dfrtC lEprDsNKJcQDxkEdqREmeACQhbslQD3vcoiEUe1qESlwvu139bECvbMlAUefL1IJVum7 vNoA== X-Gm-Message-State: AJcUukeHJc7gH9Z7HkSrH9PFUVP96B4++aJhEJuZtfkCxUpuOAmomZWm 0mZwsIEymwKWLusXlnqNcMs= X-Google-Smtp-Source: ALg8bN4XocG3u3dMx81t50XjzBfQmRGOK+c8Rl+Jl/lOStTsYJ6OCCvtzFiFTz3Ut+KzfPOSnNCMmA== X-Received: by 2002:a05:6808:89:: with SMTP id s9mr8296318oic.131.1547172541439; Thu, 10 Jan 2019 18:09:01 -0800 (PST) Received: from dockertest-VirtualBox.hz.ali.com ([205.204.117.36]) by smtp.gmail.com with ESMTPSA id u19sm37177122oia.31.2019.01.10.18.08.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 18:09:00 -0800 (PST) From: Li Qiang To: keith.busch@intel.com, kwolf@redhat.com, mreitz@redhat.com Date: Fri, 11 Jan 2019 10:08:47 +0800 Message-Id: <20190111020849.22674-2-liq3ea@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190111020849.22674-1-liq3ea@gmail.com> References: <20190111020849.22674-1-liq3ea@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::243 Subject: [Qemu-devel] [PATCH v2 1/3] 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 Reviewed-by: Philippe Mathieu-Daudé --- 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 7c8c63e8f5..f206391e8e 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -1381,7 +1381,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,