[dpdk-dev] librte_pmd_null: Fix build issue with icc

Message ID 1425014375-15052-1-git-send-email-mukawa@igel.co.jp (mailing list archive)
State Accepted, archived
Headers

Commit Message

Tetsuya Mukawa Feb. 27, 2015, 5:19 a.m. UTC
  This patch fixes following errors with icc.

 rte_eth_null.c(47): error #83:
     type qualifier specified more than once

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

Comments

John McNamara Feb. 27, 2015, 4:57 p.m. UTC | #1
> -----Original Message-----
> From: Tetsuya Mukawa [mailto:mukawa@igel.co.jp]
> Sent: Friday, February 27, 2015 5:20 AM
> To: dev@dpdk.org
> Cc: Mcnamara, John; Tetsuya Mukawa
> Subject: [PATCH] librte_pmd_null: Fix build issue with icc
> 
> This patch fixes following errors with icc.


Confirmed that this fixes the issue with ICC 13.1.1.

Acked-by: John McNamara <john.mcnamara@intel.com>

--
  
Thomas Monjalon Feb. 27, 2015, 11:21 p.m. UTC | #2
> > This patch fixes following errors with icc.
> 
> 
> Confirmed that this fixes the issue with ICC 13.1.1.
> 
> Acked-by: John McNamara <john.mcnamara@intel.com>

Applied, thanks
  

Patch

diff --git a/lib/librte_pmd_null/rte_eth_null.c b/lib/librte_pmd_null/rte_eth_null.c
index f8d7023..f7ef904 100644
--- a/lib/librte_pmd_null/rte_eth_null.c
+++ b/lib/librte_pmd_null/rte_eth_null.c
@@ -44,7 +44,7 @@ 
 static unsigned default_packet_size = 64;
 static unsigned default_packet_copy;
 
-static const char const *valid_arguments[] = {
+static const char *valid_arguments[] = {
 	ETH_NULL_PACKET_SIZE_ARG,
 	ETH_NULL_PACKET_COPY_ARG,
 	NULL