[dpdk-dev] ip_pipeline: fix build error for 32 bit gcc target

Message ID 1460135607-147140-1-git-send-email-jasvinder.singh@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Jasvinder Singh April 8, 2016, 5:13 p.m. UTC
  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")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
---
 examples/ip_pipeline/pipeline/pipeline_routing_be.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

De Lara Guarch, Pablo April 8, 2016, 5:53 p.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jasvinder Singh
> Sent: Friday, April 08, 2016 6:13 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] 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")
> 
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>

Acked-by:Pablo de Lara <pablo.de.lara.guarch@intel.com>
  
John McNamara April 8, 2016, 7:37 p.m. UTC | #2
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jasvinder Singh
> Sent: Friday, April 8, 2016 6:13 PM
> To: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] 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")
> 
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>

Acked-by: John McNamara <john.mcnamara@intel.com>
  
Thomas Monjalon April 8, 2016, 8:17 p.m. UTC | #3
> > 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")
> > 
> > Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
> 
> Acked-by:Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied, thanks
  

Patch

diff --git a/examples/ip_pipeline/pipeline/pipeline_routing_be.c b/examples/ip_pipeline/pipeline/pipeline_routing_be.c
index 431c636..bc5bf7a 100644
--- a/examples/ip_pipeline/pipeline/pipeline_routing_be.c
+++ b/examples/ip_pipeline/pipeline/pipeline_routing_be.c
@@ -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