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: Hailiang Wang <hailiangx.e.wang@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/463126 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
19359f8669
commit
563b98223b
@ -146,8 +146,7 @@ static bool g_qat_available = false;
|
|||||||
static bool g_isal_available = false;
|
static bool g_isal_available = false;
|
||||||
|
|
||||||
/* Create shrared (between all ops per PMD) compress xforms. */
|
/* 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,
|
.type = RTE_COMP_COMPRESS,
|
||||||
.compress = {
|
.compress = {
|
||||||
.algo = RTE_COMP_ALGO_DEFLATE,
|
.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. */
|
/* 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,
|
.type = RTE_COMP_DECOMPRESS,
|
||||||
.decompress = {
|
.decompress = {
|
||||||
.algo = RTE_COMP_ALGO_DEFLATE,
|
.algo = RTE_COMP_ALGO_DEFLATE,
|
||||||
|
Loading…
Reference in New Issue
Block a user