From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id 52CCF3781 for ; Fri, 27 Feb 2015 06:20:40 +0100 (CET) Received: by pdev10 with SMTP id v10so18426564pde.10 for ; Thu, 26 Feb 2015 21:20:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Ignt/PcwDnE7i5SFRbyvtkGMmysnw9A7S8QSlUcReB8=; b=e4Rcz2v9B+6XqlGoJegIkVRQzZK7GtGmXlhWyV3ldUlyzBCjAwDz/53x+G5y3jZuIA qfQu0aILSJtqWCekLfdqXi+wOemjlXVU82pr1DTCgWzM4M12hJS5t7TvG7mOk73EiPgt dxxGSUZTmSoNiMZd36qR+uRe7KfT1hd0kTAsFKnMDGbmLp4K5s3TmEXDpbOAKhGT7IjK DAazGKRRVM53sbeL2Lw2Cc4zxt7cG8DVbcdqQeKmlTTZHZ4sEKCYQy/bh83uE8KO3R6q IdqV9PYN7UJ6O/PyehtyQeBswXhdNfMGXXHkBG3kteRymQpDnadc1IuS1BpMdsv7I0R0 ZMIg== X-Gm-Message-State: ALoCoQk8dOQ3VX+8vMFwqUp32XmOqERikQBITF5j5p0TFsUKXEGaIiwJXeb+cEnW1sngJhw8IHS8 X-Received: by 10.68.206.101 with SMTP id ln5mr20842422pbc.156.1425014439700; Thu, 26 Feb 2015 21:20:39 -0800 (PST) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id uc10sm2540103pbc.87.2015.02.26.21.20.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Feb 2015 21:20:39 -0800 (PST) From: Tetsuya Mukawa To: dev@dpdk.org Date: Fri, 27 Feb 2015 14:20:34 +0900 Message-Id: <1425014434-15147-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] eal: Fix build issue of hotplug with icc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 05:20:40 -0000 This patch fixes following errors with icc. error #188: enumerated type mixed with another type return -1; Reported-by: Mcnamara, John Signed-off-by: Tetsuya Mukawa --- 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