diff --git a/platform/linux-generic/include/odp_buffer_inlines.h b/platform/linux-generic/include/odp_buffer_inlines.h
index c7eb3f1..e280446 100644
--- a/platform/linux-generic/include/odp_buffer_inlines.h
+++ b/platform/linux-generic/include/odp_buffer_inlines.h
@@ -78,7 +78,7 @@ static inline odp_buffer_hdr_t *odp_buf_to_hdr(odp_buffer_t buf)
 	}
 #endif
 
-	return (odp_buffer_hdr_t *)(pool->pool_base_addr +
+	return (odp_buffer_hdr_t *)(void *)(pool->pool_base_addr +
 				    (index * ODP_CACHE_LINE_SIZE));
 }
 
@@ -130,7 +130,7 @@ static inline odp_buffer_hdr_t *validate_buf(odp_buffer_t buf)
 	     pool->s.num_bufs))
 		return NULL;
 
-	buf_hdr = (odp_buffer_hdr_t *)(pool->s.pool_base_addr +
+	buf_hdr = (odp_buffer_hdr_t *)(void *)(pool->s.pool_base_addr +
 				       (handle.index * ODP_CACHE_LINE_SIZE));
 
 	/* Handle is valid, so buffer is valid if it is allocated */
diff --git a/platform/linux-generic/include/odp_buffer_pool_internal.h b/platform/linux-generic/include/odp_buffer_pool_internal.h
index 28ef8f2..9bb460a 100644
--- a/platform/linux-generic/include/odp_buffer_pool_internal.h
+++ b/platform/linux-generic/include/odp_buffer_pool_internal.h
@@ -93,7 +93,7 @@ extern void *pool_entry_ptr[];
 					      (uint64_t)(o), (uint64_t)(n))
 #else
 #define odp_at odp_atomic_u32_t
-#define odp_cs(p, o, n) odp_atomic_cmpset_u32((odp_at *)(p), \
+#define odp_cs(p, o, n) odp_atomic_cmpset_u32((odp_at *)(void *)(p), \
 					      (uint32_t)(o), (uint32_t)(n))
 #endif
 
diff --git a/platform/linux-generic/odp_buffer_pool.c b/platform/linux-generic/odp_buffer_pool.c
index b54dd81..cf87a02 100644
--- a/platform/linux-generic/odp_buffer_pool.c
+++ b/platform/linux-generic/odp_buffer_pool.c
@@ -208,7 +208,7 @@ odp_buffer_pool_t odp_buffer_pool_create(const char *name,
 
 		/* Init buffer common header and add to pool buffer freelist */
 		do {
-			odp_buffer_hdr_t *tmp = (odp_buffer_hdr_t *)buf;
+			odp_buffer_hdr_t *tmp = (odp_buffer_hdr_t *)(void *)buf;
 			tmp->pool_hdl = pool->s.pool_hdl;
 			tmp->size = 0;
 			tmp->type = params->buf_type;
@@ -218,7 +218,7 @@ odp_buffer_pool_t odp_buffer_pool_create(const char *name,
 			tmp->segsize = pool->s.seg_size;
 			tmp->buf_hdl.handle =
 				odp_buffer_encode_handle((odp_buffer_hdr_t *)
-							 buf);
+							 (void *)buf);
 			ret_buf(&pool->s, tmp);
 			buf  -= buf_stride;
 			udat -= udata_stride;
@@ -333,7 +333,7 @@ odp_buffer_t buffer_alloc(odp_buffer_pool_t pool_hdl, size_t size)
 	    (!pool->s.flags.unsegmented && totsize > ODP_CONFIG_BUF_MAX_SIZE))
 		return ODP_BUFFER_INVALID;
 
-	buf = (odp_anybuf_t *)get_buf(&pool->s);
+	buf = (odp_anybuf_t *)(void *)get_buf(&pool->s);
 
 	if (buf == NULL)
 		return ODP_BUFFER_INVALID;
diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index 1abef3c..ef42db9 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -872,28 +872,28 @@ int odp_packet_parse(odp_packet_t pkt)
 	eth = (odph_ethhdr_t *)odp_packet_map(pkt, &seglen);
 	offset = sizeof(odph_ethhdr_t);
 	parseptr = (uint8_t *)&eth->type;
-	ethtype = odp_be_to_cpu_16(*((uint16_t *)parseptr));
+	ethtype = odp_be_to_cpu_16(*((uint16_t *)(void *)parseptr));
 
 	/* Parse the VLAN header(s), if present */
 	if (ethtype == ODPH_ETHTYPE_VLAN_OUTER) {
 		pkt_hdr->input_flags.vlan_qinq = 1;
 		pkt_hdr->input_flags.vlan = 1;
-		vlan = (odph_vlanhdr_t *)parseptr;
+		vlan = (odph_vlanhdr_t *)(void *)parseptr;
 		pkt_hdr->vlan_s_tag = ((ethtype << 16) |
 				       odp_be_to_cpu_16(vlan->tci));
 		offset += sizeof(odph_vlanhdr_t);
 		parseptr += sizeof(odph_vlanhdr_t);
-		ethtype = odp_be_to_cpu_16(*((uint16_t *)parseptr));
+		ethtype = odp_be_to_cpu_16(*((uint16_t *)(void *)parseptr));
 	}
 
 	if (ethtype == ODPH_ETHTYPE_VLAN) {
 		pkt_hdr->input_flags.vlan = 1;
-		vlan = (odph_vlanhdr_t *)parseptr;
+		vlan = (odph_vlanhdr_t *)(void *)parseptr;
 		pkt_hdr->vlan_c_tag = ((ethtype << 16) |
 				       odp_be_to_cpu_16(vlan->tci));
 		offset += sizeof(odph_vlanhdr_t);
 		parseptr += sizeof(odph_vlanhdr_t);
-		ethtype = odp_be_to_cpu_16(*((uint16_t *)parseptr));
+		ethtype = odp_be_to_cpu_16(*((uint16_t *)(void *)parseptr));
 	}
 
 	/* Check for SNAP vs. DIX */
@@ -905,7 +905,7 @@ int odp_packet_parse(odp_packet_t pkt)
 		}
 		offset   += 8;
 		parseptr += 8;
-		ethtype = odp_be_to_cpu_16(*((uint16_t *)parseptr));
+		ethtype = odp_be_to_cpu_16(*((uint16_t *)(void *)parseptr));
 	}
 
 	/* Consume Ethertype for Layer 3 parse */
