From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id A08CC7CA3 for ; Thu, 29 Jun 2017 20:22:36 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id j85so4072209wmj.0 for ; Thu, 29 Jun 2017 11:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=DPs825qr8u3W8a7tNaRnPmX49GNa5awTC0lbrNzjbGE=; b=mD0jtRx+XFns2jkFuCVSwbVrxdoGHQ8di9a9eDKi+RM+nmm5nkQXymHEokPBN6/pnI Yh2+Q1taaNabyN2lqLZOuJxaICwmRpZcRi18SPOpepOCRqLZDMyNfwCPcf7/XqZVQZ1E DUu71QofFPqPsx+MlHQppIZlJQKpzWlS7mKFtDXcclCohOCMr8DEz2UZk+34OSmrxXun XZ4oSoDfQdSYGP07QSGjLOaj4uJpR1ALCdk0TqCg6rigFxtWC2z+ZHTYSLjDEzMnQYDO 2McyMxgRRWKxYWeKY9Nqsh6bvetcwA4jNMGW6anQ8ojqe1y2Xif3jgJLZ6HAvKkucDw/ GHiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=DPs825qr8u3W8a7tNaRnPmX49GNa5awTC0lbrNzjbGE=; b=JGYw6kl2BmwbxvwYvo9KliNmQfy+DxvNh5TUPKX1v1w2eAQvhqfW/nvmQxsLdG8D/w YAlfHFqphq/cR0tCFdCAHAGbqk312z5Ka7q2h8/8zdaBasakWuuQzCwCuYZQn6hlRpCR Ix5wQhFY9CmYvayOIxT8WmEE09xZM+baNFOq9xM1HVuoQVYXFHRJpsx4SOqx77pNVLJd KZsMKMKhnmnaQa6uajgAZBbkeISyRi8kDiNqYBd2S36EOE7BYon9SnM2kF6+U/R9evHL EW05pXAdJudLb8aXFB33Dny8+y9WZeZbPKCjuOi79B5bERry/biSRFgfLmB2tw8lutKt LRDw== X-Gm-Message-State: AKS2vOzB13qR5paQaNwrM+tOES+9DiWvXjyYKZNBcIpEA8QV/rHc8P4y IHyD1Ernf0Mx4qWd X-Received: by 10.80.135.13 with SMTP id i13mr2687976edb.148.1498760556098; Thu, 29 Jun 2017 11:22:36 -0700 (PDT) Received: from weierstrass.local ([91.200.110.13]) by smtp.gmail.com with ESMTPSA id e28sm1446366ede.14.2017.06.29.11.22.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jun 2017 11:22:35 -0700 (PDT) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: gaetan.rivet@6wind.com, shreyansh.jain@nxp.com Date: Thu, 29 Jun 2017 20:21:59 +0200 Message-Id: <20170629182206.1072-9-jblunck@infradead.org> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170629182206.1072-1-jblunck@infradead.org> References: <20170629182206.1072-1-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v7 08/15] bus: require buses to implement find_device operation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2017 18:22:37 -0000 Signed-off-by: Jan Blunck --- lib/librte_eal/common/eal_common_bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_eal/common/eal_common_bus.c index 61aa947..d0e652e 100644 --- a/lib/librte_eal/common/eal_common_bus.c +++ b/lib/librte_eal/common/eal_common_bus.c @@ -50,6 +50,7 @@ rte_bus_register(struct rte_bus *bus) /* A bus should mandatorily have the scan implemented */ RTE_VERIFY(bus->scan); RTE_VERIFY(bus->probe); + RTE_VERIFY(bus->find_device); TAILQ_INSERT_TAIL(&rte_bus_list, bus, next); RTE_LOG(DEBUG, EAL, "Registered [%s] bus.\n", bus->name); -- 2.9.4