diff options
author | Toomas Soome <tsoome@me.com> | 2021-12-25 21:54:01 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-01-27 18:32:12 +0200 |
commit | dd980e6395616846ce076ec5b40ca8c7593b48f9 (patch) | |
tree | 49c3252252a1026d559c6ae451dcf534520ec834 /usr/src | |
parent | 907c2824088edd487e0b231d3df0654a81aec933 (diff) | |
download | illumos-gate-dd980e6395616846ce076ec5b40ca8c7593b48f9.tar.gz |
14392 bnxe: build errors with gcc 11
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c b/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c index 75429352f6..49b750eeea 100644 --- a/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c +++ b/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/bnxe_context.c @@ -699,7 +699,7 @@ lm_status_t lm_allocate_cid(struct _lm_device_t *pdev, u32_t type, void * cookie void lm_cfc_delete(struct _lm_device_t *pdev, void *param) { - u32_t cid = *((u32_t *)¶m); + u32_t cid = (u32_t)(uintptr_t)param; u8_t flr_in_progress = lm_fl_reset_is_inprogress(pdev); if ( CHK_NULL(pdev) || @@ -815,12 +815,13 @@ void lm_free_cid(struct _lm_device_t *pdev, u32_t type, u32_t cid, u8_t notify_f if (type == TOE_CONNECTION_TYPE) { DbgMessage(pdev, WARN, "lm_free_cid: CFC delete: cid=0x%x\n",cid); - lm_cfc_delete(pdev,*((void **)&cid)); + lm_cfc_delete(pdev,(void *)(uintptr_t)cid); } else { DbgMessage(pdev, WARN, "lm_free_cid: schedule CFC delete: cid=0x%x\n",cid); - mm_schedule_task(pdev,delay_time,lm_cfc_delete,*((void **)&cid)); + mm_schedule_task(pdev,delay_time,lm_cfc_delete, + (void *)(uintptr_t)cid); } } @@ -1249,7 +1250,7 @@ lm_status_t lm_set_con_state(struct _lm_device_t *pdev, u32_t cid, u32_t state) } cid_resc->con_state = state; - + return LM_STATUS_SUCCESS; } |