Re: [PATCH v5 6/6] scsi: core: Enable lock context analysis

John Garry <[email protected]>
Newsgroups org.kernel.vger.linux-scsi
Organization Oracle Corporation
Message-ID <[email protected]>
On 05/08/2026 22:36, Bart Van Assche wrote:
> Enable lock context analysis for those SCSI core files that build
> without triggering any compiler warnings.

Do you mean context analysis compiler warnings? If so, are there files 
which do trigger context analysis compiler warnings?

> 
> Signed-off-by: Bart Van Assche<[email protected]>
> ---
>    drivers/scsi/Makefile                | 22 ++++++++++++++++++++++
>    drivers/scsi/device_handler/Makefile |  3 +++
>    2 files changed, 25 insertions(+)
> 
> diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile
> index 842c254bb226..7677fece9dcd 100644
> --- a/drivers/scsi/Makefile
> +++ b/drivers/scsi/Makefile
> @@ -14,6 +14,28 @@
>    # satisfy certain initialization assumptions in the SCSI layer.
>    # *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!
>    
> +CONTEXT_ANALYSIS_constants.o := y
> +CONTEXT_ANALYSIS_scsi.o := y
> +CONTEXT_ANALYSIS_scsi_common.o := y
> +CONTEXT_ANALYSIS_scsi_devinfo.o := y
> +CONTEXT_ANALYSIS_scsi_dh.o := y
> +CONTEXT_ANALYSIS_scsi_error.o := y
> +CONTEXT_ANALYSIS_scsi_ioctl.o := y
> +CONTEXT_ANALYSIS_scsi_lib.o := y
> +CONTEXT_ANALYSIS_scsi_lib_dma.o := y
> +CONTEXT_ANALYSIS_scsi_logging.o := y
> +CONTEXT_ANALYSIS_scsi_netlink.o := y
> +CONTEXT_ANALYSIS_scsi_pm.o := y
> +CONTEXT_ANALYSIS_scsi_proc.o := y
> +CONTEXT_ANALYSIS_scsi_scan.o := y
> +CONTEXT_ANALYSIS_scsi_sysfs.o := y
> +CONTEXT_ANALYSIS_scsi_trace.o := y
> +CONTEXT_ANALYSIS_scsicam.o := y
> +CONTEXT_ANALYSIS_sd.o := y
> +CONTEXT_ANALYSIS_sd_dif.o := y
> +CONTEXT_ANALYSIS_sd_zbc.o := y
> +CONTEXT_ANALYSIS_sr.o := y
> +CONTEXT_ANALYSIS_sr_ioctl.o := y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.