mirror of
https://github.com/opnsense/src.git
synced 2026-04-05 09:25:25 -04:00
Fix build of liquidio with base gcc on i386
Some casts from pointers to uint64_t and back in lio_main.c cause base gcc on i386 to warn "cast from pointer to integer of different size", and vice versa. Add additional casts to uintptr_t to suppress these. Reviewed by: sbruno MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D15754
This commit is contained in:
parent
ebc3c37c6f
commit
2b6fe1b2da
1 changed files with 2 additions and 2 deletions
|
|
@ -1770,8 +1770,8 @@ lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_iqs)
|
|||
if (g == NULL)
|
||||
break;
|
||||
|
||||
g->sg = (struct lio_sg_entry *)
|
||||
((uint64_t)lio->glists_virt_base[i] +
|
||||
g->sg = (struct lio_sg_entry *)(uintptr_t)
|
||||
((uint64_t)(uintptr_t)lio->glists_virt_base[i] +
|
||||
(j * lio->glist_entry_size));
|
||||
g->sg_dma_ptr = (uint64_t)lio->glists_dma_base[i] +
|
||||
(j * lio->glist_entry_size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue