Commit 563b9822 authored by Hailiang Wang's avatar Hailiang Wang Committed by Jim Harris
Browse files

lib/compress: fix a compilation error for low GCC version



Some low GCC(such as v4.8.5) can't recognize this style:
static struct rte_comp_xform g_comp_xform = (struct rte_comp_xform)
Fix issue #877.

Change-Id: I021c62b7b1437d67ce87cc2e13d1b90ea6a18140
Signed-off-by: default avatarHailiang Wang <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463126


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 19359f86
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -146,8 +146,7 @@ static bool g_qat_available = false;
static bool g_isal_available = false;

/* Create shrared (between all ops per PMD) compress xforms. */
static struct rte_comp_xform g_comp_xform = (struct rte_comp_xform)
{
static struct rte_comp_xform g_comp_xform = {
	.type = RTE_COMP_COMPRESS,
	.compress = {
		.algo = RTE_COMP_ALGO_DEFLATE,
@@ -159,8 +158,7 @@ static struct rte_comp_xform g_comp_xform = (struct rte_comp_xform)
	}
};
/* Create shrared (between all ops per PMD) decompress xforms. */
static struct rte_comp_xform g_decomp_xform = (struct rte_comp_xform)
{
static struct rte_comp_xform g_decomp_xform = {
	.type = RTE_COMP_DECOMPRESS,
	.decompress = {
		.algo = RTE_COMP_ALGO_DEFLATE,