DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] hash: add switch fall-through comments for arm64
@ 2017-05-09  9:45 Jerin Jacob
  2017-05-10 14:31 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Jerin Jacob @ 2017-05-09  9:45 UTC (permalink / raw)
  To: dev; +Cc: thomas, bruce.richardson, Jerin Jacob

This fixes compiler warnings with GCC 7 for arm64 build.
Fixes: da8dcc27f644 ("hash: use armv8-a CRC32 instructions")

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
 lib/librte_hash/rte_crc_arm64.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_hash/rte_crc_arm64.h b/lib/librte_hash/rte_crc_arm64.h
index 7dd6334ee..2abe42ab8 100644
--- a/lib/librte_hash/rte_crc_arm64.h
+++ b/lib/librte_hash/rte_crc_arm64.h
@@ -110,8 +110,10 @@ rte_hash_crc_set_alg(uint8_t alg)
 	case CRC32_ARM64:
 		if (!rte_cpu_get_flag_enabled(RTE_CPUFLAG_CRC32))
 			alg = CRC32_SW;
+		/* fall-through */
 	case CRC32_SW:
 		crc32_alg = alg;
+		/* fall-through */
 	default:
 		break;
 	}
-- 
2.12.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] hash: add switch fall-through comments for arm64
  2017-05-09  9:45 [dpdk-dev] [PATCH] hash: add switch fall-through comments for arm64 Jerin Jacob
@ 2017-05-10 14:31 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-05-10 14:31 UTC (permalink / raw)
  To: Jerin Jacob; +Cc: dev, bruce.richardson

09/05/2017 11:45, Jerin Jacob:
> This fixes compiler warnings with GCC 7 for arm64 build.
> Fixes: da8dcc27f644 ("hash: use armv8-a CRC32 instructions")
> 
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-10 14:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09  9:45 [dpdk-dev] [PATCH] hash: add switch fall-through comments for arm64 Jerin Jacob
2017-05-10 14:31 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).