lkml.org 
[lkml]   [2020]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH rdma-next] RDMA/i40iw: Constify ops structs
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 <rikard.falkeborn@gmail.com>
> ---
> drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 20 ++++++++++----------
> drivers/infiniband/hw/i40iw/i40iw_type.h | 20 ++++++++++----------
> 2 files changed, 20 insertions(+), 20 deletions(-)

Applied to for-next thanks

Jason

\
 
 \ /
  Last update: 2020-11-23 21:32    [W:0.038 / U:4.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site