DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] eal: Fix build issue of hotplug with icc
@ 2015-02-27  5:20 Tetsuya Mukawa
  2015-02-27 16:58 ` Mcnamara, John
  0 siblings, 1 reply; 3+ messages in thread
From: Tetsuya Mukawa @ 2015-02-27  5:20 UTC (permalink / raw)
  To: dev

This patch fixes following errors with icc.

 error #188: enumerated type mixed with another type
  		return -1;

Reported-by: Mcnamara, John <john.mcnamara@intel.com>
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
---
 lib/librte_ether/rte_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index bb94ccb..6ea7a17 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -433,7 +433,7 @@ static enum rte_eth_dev_type
 rte_eth_dev_get_device_type(uint8_t port_id)
 {
 	if (!rte_eth_dev_is_valid_port(port_id))
-		return -1;
+		return RTE_ETH_DEV_UNKNOWN;
 	return rte_eth_devices[port_id].dev_type;
 }
 
-- 
1.9.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-27 23:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-27  5:20 [dpdk-dev] [PATCH] eal: Fix build issue of hotplug with icc Tetsuya Mukawa
2015-02-27 16:58 ` Mcnamara, John
2015-02-27 23:18   ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).