MAINTAINERS: Add mpi3mr driver maintainers
Subsystems (2)
Sreekanth Reddy
maintainerPATCH 1/1 MAINTAINERS: Add mpi3mr driver maintainers
Adding mpi3mr driver entry.
Signed-off-by Sreekanth Reddy <[email protected]>
--- MAINTAINERS | 11 +++++++++++ 1 file changed, 11 insertions(+)
MAINTAINERS +11 -0
@@ -3733,6 +3733,17 @@ S: Supported F: Documentation/devicetree/bindings/gpio/brcm,kona-gpio.txt F: drivers/gpio/gpio-bcm-kona.c +BROADCOM MPI3 STORAGE CONTROLLER DRIVER +M: Sathya Prakash Veerichetty <[email protected]> +M: Kashyap Desai <[email protected]> +M: Sumit Saxena <[email protected]> +M: Sreekanth Reddy <[email protected]> +L: [email protected] +L: [email protected] +S: Supported +W: https://www.broadcom.com/support/storage +F: drivers/scsi/mpi3mr/ + BROADCOM NETXTREME-E ROCE DRIVER M: Selvin Xavier <[email protected]> M: Devesh Sharma <[email protected]>
Signature · 1 line
2.27.0
Sreekanth Reddy
maintainerPATCH 1/1 mpi3mr: Fix W=1 compilation warnings
Fix for below W=1 compilation warning, 'strncpy' output may be truncated copying 16 bytes
from a string of length 64
Reported-by kernel test robot <[email protected]>
Signed-off-by Sreekanth Reddy <[email protected]>
--- drivers/scsi/mpi3mr/mpi3mr_fw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/scsi/mpi3mr/mpi3mr_fw.c +2 -4
@@ -2608,10 +2608,8 @@ static int mpi3mr_issue_iocinit(struct mpi3mr_ioc *mrioc) } drv_info->information_length =cpu_to_le32 (data_len);strncpy (drv_info->driver_signature,"Broadcom" ,sizeof (drv_info->driver_signature)); -strncpy (drv_info->os_name,utsname ()->sysname,sizeof (drv_info->os_name)); - drv_info->os_name[sizeof (drv_info->os_name) -1 ] =0 ; -strncpy (drv_info->os_version,utsname ()->release,sizeof (drv_info->os_version)); - drv_info->os_version[sizeof (drv_info->os_version) -1 ] =0 ; +memcpy (drv_info->os_name,utsname ()->sysname,sizeof (drv_info->os_name) -1 ); +memcpy (drv_info->os_version,utsname ()->release,sizeof (drv_info->os_version) -1 );strncpy (drv_info->driver_name,MPI3MR_DRIVER_NAME ,sizeof (drv_info->driver_name));strncpy (drv_info->driver_version,MPI3MR_DRIVER_VERSION ,sizeof (drv_info->driver_version));strncpy (drv_info->driver_release_date,MPI3MR_DRIVER_RELDATE ,sizeof (drv_info->driver_release_date));
Signature · 1 line
2.27.0
Re: [PATCH] mpi3mr: Fix W=1 compilation warnings
Sreekanth,
drivers/scsi/mpi3mr/mpi3mr_fw.c static int mpi3mr_issue_iocinit(struct mpi3mr_ioc *mrioc) · line 2612
Quoted 6 lines
drivers/scsi/mpi3mr/mpi3mr_fw.c +2
-4-strncpy (drv_info->os_name,utsname ()->sysname,sizeof (drv_info->os_name)); - drv_info->os_name[sizeof (drv_info->os_name) -1 ] =0 ; -strncpy (drv_info->os_version,utsname ()->release,sizeof (drv_info->os_version)); - drv_info->os_version[sizeof (drv_info->os_version) -1 ] =0 ; +memcpy (drv_info->os_name,utsname ()->sysname,sizeof (drv_info->os_name) -1 ); +memcpy (drv_info->os_version,utsname ()->release,sizeof (drv_info->os_version) -1 );
strscpy()?
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Sreekanth Reddy
maintainerRe: [PATCH] mpi3mr: Fix W=1 compilation warnings
Quoted 4 lines · Martin K. Petersen
Sreekanth,
Quoted 8 lines
drivers/scsi/mpi3mr/mpi3mr_fw.c static int mpi3mr_issue_iocinit(struct mpi3mr_ioc *mrioc) · line 2612
Quoted 6 lines
drivers/scsi/mpi3mr/mpi3mr_fw.c +2
-4-strncpy (drv_info->os_name,utsname ()->sysname,sizeof (drv_info->os_name)); - drv_info->os_name[sizeof (drv_info->os_name) -1 ] =0 ; -strncpy (drv_info->os_version,utsname ()->release,sizeof (drv_info->os_version)); - drv_info->os_version[sizeof (drv_info->os_version) -1 ] =0 ; +memcpy (drv_info->os_name,utsname ()->sysname,sizeof (drv_info->os_name) -1 ); +memcpy (drv_info->os_version,utsname ()->release,sizeof (drv_info->os_version) -1 );
strscpy()?
Agreed. Posted a new patch using strscpy().
Thanks,
Sreekanth
Quoted 3 lines
--
Martin K. Petersen Oracle Linux Engineering