Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpdk cannot build with -Werror=address-of-packed-member #55

Open
lu-zero opened this issue Nov 14, 2020 · 0 comments
Open

dpdk cannot build with -Werror=address-of-packed-member #55

lu-zero opened this issue Nov 14, 2020 · 0 comments

Comments

@lu-zero
Copy link

lu-zero commented Nov 14, 2020

Probably would be good to double check that code instead of just dropping the error.

/usr/src/lx2160a_build/build/dpdk/lib/librte_eal/common/malloc_heap.c: In function ‘rte_eal_malloc_heap_init’:
/usr/src/lx2160a_build/build/dpdk/lib/librte_eal/common/malloc_heap.c:1268:31: error: taking address of packed member of ‘struct rte_mem_config’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
 1268 |    struct malloc_heap *heap = &mcfg->malloc_heaps[i];
      |                               ^~~~~~~~~~~~~~~~~~~~~~
/usr/src/lx2160a_build/build/dpdk/lib/librte_eal/common/malloc_heap.c:1282:26: error: taking address of packed member of ‘struct rte_mem_config’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
 1282 |   rte_rwlock_read_unlock(&mcfg->memory_hotplug_lock);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/lx2160a_build/build/dpdk/lib/librte_eal/common/malloc_heap.c:1290:25: error: taking address of packed member of ‘struct rte_mem_config’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
 1290 |  rte_rwlock_read_unlock(&mcfg->memory_hotplug_lock);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant