The udata's for alloc_pd cannot contain u64s due to alignment constraints. Switch the two never-used u64's to arrays of u32 to reduce the required struct alignment to 4 bytes. These reserved fields are totally unnecessary, never written and never read.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -65,7 +65,7 @@ struct ocrdma_alloc_ucontext_resp { · 64 unmodified lines | |||
| 65 | }; | 65 | }; |
| 66 | 66 | ||
| 67 | struct ocrdma_alloc_pd_ureq { | 67 | struct ocrdma_alloc_pd_ureq { |
| 68 | __u64 rsvd1; | 68 | __u32 rsvd[2]; |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | struct ocrdma_alloc_pd_uresp { | 71 | struct ocrdma_alloc_pd_uresp { |
| @@ -73,7 +73,7 @@ struct ocrdma_alloc_pd_uresp { · 1 unmodified line | |||
| 73 | __u32 dpp_enabled; | 73 | __u32 dpp_enabled; |
| 74 | __u32 dpp_page_addr_hi; | 74 | __u32 dpp_page_addr_hi; |
| 75 | __u32 dpp_page_addr_lo; | 75 | __u32 dpp_page_addr_lo; |
| 76 | __u64 rsvd1; | 76 | __u32 rsvd[2]; |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | struct ocrdma_create_cq_ureq { | 79 | struct ocrdma_create_cq_ureq { |