Re: [PATCH rdma-next] RDMA/i40iw: Constify ops structs

2020-11-23 Thread Jason Gunthorpe
On Sat, Nov 21, 2020 at 01:25:29AM +0100, Rikard Falkeborn wrote: > The ops structs are never modified. Make them const to allow the > compiler to put them in read-only memory. > > Signed-off-by: Rikard Falkeborn > --- > drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 20 ++-- > drive

[PATCH rdma-next] RDMA/i40iw: Constify ops structs

2020-11-20 Thread Rikard Falkeborn
The ops structs are never modified. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 20 ++-- drivers/infiniband/hw/i40iw/i40iw_type.h | 20 ++-- 2 files changed,