numam-spdk/lib/env_ocf
Michal Mielewczyk 975852a079 lib/ocf_env: Force struct list 64 bytes alignment
After compiling SPDK with `--enable-ubsan` option, ocf tests fail with the
following error:

src/ocf/mngt/ocf_mngt_common.c:170:2: runtime error: member access within
misaligned address 0x200003800188 for type 'struct ocf_cache', which requires
64 byte alignment

The mentioned line of code is `list_for_each_entry()` macro used for iterating
lists. Forcing `struct list` alignment removes the issue.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
Change-Id: I803dd962ff873679f42568e6f42fec7fed278f67
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8516
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2021-07-28 07:02:14 +00:00
..
.gitignore lib/mk: update OCF build. 2019-08-27 18:49:56 +00:00
Makefile lib/mk: update OCF build. 2019-08-27 18:49:56 +00:00
ocf_env_headers.h ocf: update ocf submodule to v20.3 2020-04-17 07:32:48 +00:00
ocf_env_list.h lib/ocf_env: Force struct list 64 bytes alignment 2021-07-28 07:02:14 +00:00
ocf_env.c lib/thead: print error log when create mempool or ring failed 2020-11-05 09:41:06 +00:00
ocf_env.h log: remove internal log.h header 2020-10-15 08:23:39 +00:00