Skip to contentSkip to conversation

ip_pipeline: fix build error for 32 bit gcc target

PATCH Applied Jasvinder Singh 4 participants 4 messages Apr 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip_pipeline: fix build error for 32 bit gcc target

error log:
ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is too large for 'long' type compilation terminated due to -Wfatal-errors

Fixes 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing pipeline")
---
 examples/ip_pipeline/pipeline/pipeline_routing_be.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/pipeline/pipeline_routing_be.c +1 -1
index 431c636..bc5bf7a 100644
@@ -65,7 +65,7 @@
 	((((uint64_t) (pipe)) & 0xFFFFFFFF) << 32))
 
 
-#define MAC_SRC_DEFAULT 0x112233445566
+#define MAC_SRC_DEFAULT 0x112233445566ULL
 
 #ifndef PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s
 #define PIPELINE_ROUTING_LPM_TABLE_NUMBER_TABLE8s 256
Signature · 1 line
2.5.5
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Jasvinder Singh
Sent: Friday, April 08, 2016 6:13 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] ip_pipeline: fix build error for 32 bit gcc target

Quoted 8 lines

error log:
ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is too large for 'long' type compilation terminated due to -Wfatal-errors

Fixes 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing

pipeline")

Acked-by on v1 1/1
#3 lore raw
In reply to Jasvinder Singh
Quoted 7 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Jasvinder Singh
Sent: Friday, April 8, 2016 6:13 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] ip_pipeline: fix build error for 32 bit gcc target

Quoted 8 lines

error log:
ip_pipeline/pipeline/pipeline_routing_be.c:1537: integer constant is too large for 'long' type compilation terminated due to -Wfatal-errors

Fixes 0ae7275810f1 ("examples/ip_pipeline: add more functions to routing

pipeline")