lkml.org 
[lkml]   [2022]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] scsi: core: constify pointer to scsi_host_template
On Tue, Apr 12, 2022 at 08:57:39AM +0100, John Garry wrote:
> >
>
> The standard flow is:
>
> shost = scsi_host_alloc(sht, )
>
> // modify shost, like
> shost->cmd_per_lun = 5;
>
> scsi_add_host(shost)
>
> Is there some reason for which those two drivers can't follow that?

I think they should. Method tables should not be mutable data.

\
 
 \ /
  Last update: 2022-04-20 09:04    [W:0.066 / U:22.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site