1. 24 May, 2024 1 commit
  2. 15 May, 2024 7 commits
  3. 09 May, 2024 1 commit
  4. 07 May, 2024 22 commits
  5. 25 Apr, 2024 8 commits
    • Randy Dunlap's avatar
      scsi: mpi3mr: Fix some kernel-doc warnings in scsi_bsg_mpi3mr.h · aca06177
      Randy Dunlap authored
      Correct the name of a struct in kernel-doc to match the actual function
      name.
      
      Add kernel-doc comments for 2 reserved fields to match comments for other
      reserved fields.
      
      Correct the kernel-doc comments for a nested struct to eliminate kernel-doc
      warnings for them.
      
      Warnings fixed here are:
      
      scsi_bsg_mpi3mr.h:419: warning: expecting prototype for struct mpi3mr_bsg_buf_entry_list. Prototype was for struct mpi3mr_buf_entry_list instead
      
      scsi_bsg_mpi3mr.h:435: warning: Function parameter or struct member 'rsvd2' not described in 'mpi3mr_bsg_mptcmd'
      scsi_bsg_mpi3mr.h:456: warning: Function parameter or struct member 'rsvd3' not described in 'mpi3mr_bsg_packet'
      
      scsi_bsg_mpi3mr.h:456: warning: Excess struct member 'drvrcmd' description in 'mpi3mr_bsg_packet'
      scsi_bsg_mpi3mr.h:456: warning: Excess struct member 'mptcmd' description in 'mpi3mr_bsg_packet'
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Link: https://lore.kernel.org/r/20240424055322.1400-1-rdunlap@infradead.org
      Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Cc: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
      Cc: Kashyap Desai <kashyap.desai@broadcom.com>
      Cc: Sumit Saxena <sumit.saxena@broadcom.com>
      Cc: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
      Cc: mpi3mr-linuxdrv.pdl@broadcom.com
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      aca06177
    • Randy Dunlap's avatar
      scsi: ufs: bsg: Fix all kernel-doc warnings · de37677e
      Randy Dunlap authored
      In struct utp_upiu_query_v4_0, add description for @osf3 and mark the
      @reserved field as private so that no description is needed for it.
      
      In struct utp_upiu_cmd, use the correct struct member name to eliminate a
      kernel-doc warning.
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Link: https://lore.kernel.org/r/20240424055316.1384-1-rdunlap@infradead.org
      Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Cc: Alim Akhtar <alim.akhtar@samsung.com>
      Cc: Avri Altman <avri.altman@wdc.com>
      Cc: Bart Van Assche <bvanassche@acm.org>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      de37677e
    • Randy Dunlap's avatar
      scsi: libfc: Add some kernel-doc comments · 9cef74a9
      Randy Dunlap authored
      Complete the kernel-doc notation for enum fc_lport_state. This fixes 7
      kernel-doc warnings.
      
       - In struct fc_rport_priv, change 'event_callback' to 'lld_event_callback'
         to match the struct member name.
      
       - In struct fc_fcp_pkt, add a description for 'timer_delay' to eliminate
         one kernel-doc warning.
      
       - Add return value notation for 3 functions. This fixes 3 kernel-doc
         warnings.
      
      There are still 12 warnings for struct members not described in struct
      fc_rport_priv and struct fc_lport, e.g:
      
      libfc.h:218: warning: Function parameter or struct member 'event' not described in 'fc_rport_priv'
      libfc.h:760: warning: Function parameter or struct member 'vlan' not described in 'fc_lport'
      
      Warnings that are fixed in this patch:
      
      libfc.h:75: warning: Enum value 'LPORT_ST_RNN_ID' not described in enum 'fc_lport_state'
      libfc.h:75: warning: Enum value 'LPORT_ST_RSNN_NN' not described in enum 'fc_lport_state'
      libfc.h:75: warning: Enum value 'LPORT_ST_RSPN_ID' not described in enum 'fc_lport_state'
      libfc.h:75: warning: Enum value 'LPORT_ST_RPA' not described in enum 'fc_lport_state'
      libfc.h:75: warning: Enum value 'LPORT_ST_DHBA' not described in enum 'fc_lport_state'
      libfc.h:75: warning: Enum value 'LPORT_ST_DPRT' not described in enum 'fc_lport_state'
      libfc.h:75: warning: Excess enum value 'LPORT_ST_RPN_ID' description in 'fc_lport_state'
      
      libfc.h:218: warning: Excess struct member 'event_callback' description in 'fc_rport_priv'
      
      libfc.h:793: warning: No description found for return value of 'fc_lport_test_ready'
      libfc.h:835: warning: No description found for return value of 'fc_lport_init_stats'
      libfc.h:856: warning: No description found for return value of 'lport_priv'
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Link: https://lore.kernel.org/r/20240424050038.31403-1-rdunlap@infradead.org
      Cc: Hannes Reinecke <hare@suse.de>
      Cc: James E.J. Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      9cef74a9
    • Andy Shevchenko's avatar
      scsi: core: Don't use "proxy" headers · 2a7177a8
      Andy Shevchenko authored
      Update header inclusions to follow IWYU (Include What You Use) principle.
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20240423211843.3996046-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      2a7177a8
    • Colin Ian King's avatar
      scsi: bnx2fc: Remove redundant assignment to variable 'i' · cb3bfbfa
      Colin Ian King authored
      The variable 'i' is being assigned a value that is never read, the
      following code path via the label ofld_err never refers to the
      variable. The assignment is redundant and can be removed.
      
      Cleans up clang scan warning:
      drivers/scsi/bnx2fc/bnx2fc_tgt.c:132:5: warning: Value stored to 'i'
      is never read [deadcode.DeadStores]
      Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
      Link: https://lore.kernel.org/r/20240415104311.484890-1-colin.i.king@gmail.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      cb3bfbfa
    • Manish Rangankar's avatar
      scsi: qedi: Fix crash while reading debugfs attribute · 28027ec8
      Manish Rangankar authored
      The qedi_dbg_do_not_recover_cmd_read() function invokes sprintf() directly
      on a __user pointer, which results into the crash.
      
      To fix this issue, use a small local stack buffer for sprintf() and then
      call simple_read_from_buffer(), which in turns make the copy_to_user()
      call.
      
      BUG: unable to handle page fault for address: 00007f4801111000
      PGD 8000000864df6067 P4D 8000000864df6067 PUD 864df7067 PMD 846028067 PTE 0
      Oops: 0002 [#1] PREEMPT SMP PTI
      Hardware name: HPE ProLiant DL380 Gen10/ProLiant DL380 Gen10, BIOS U30 06/15/2023
      RIP: 0010:memcpy_orig+0xcd/0x130
      RSP: 0018:ffffb7a18c3ffc40 EFLAGS: 00010202
      RAX: 00007f4801111000 RBX: 00007f4801111000 RCX: 000000000000000f
      RDX: 000000000000000f RSI: ffffffffc0bfd7a0 RDI: 00007f4801111000
      RBP: ffffffffc0bfd7a0 R08: 725f746f6e5f6f64 R09: 3d7265766f636572
      R10: ffffb7a18c3ffd08 R11: 0000000000000000 R12: 00007f4881110fff
      R13: 000000007fffffff R14: ffffb7a18c3ffca0 R15: ffffffffc0bfd7af
      FS:  00007f480118a740(0000) GS:ffff98e38af00000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 00007f4801111000 CR3: 0000000864b8e001 CR4: 00000000007706e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      PKRU: 55555554
      Call Trace:
       <TASK>
       ? __die_body+0x1a/0x60
       ? page_fault_oops+0x183/0x510
       ? exc_page_fault+0x69/0x150
       ? asm_exc_page_fault+0x22/0x30
       ? memcpy_orig+0xcd/0x130
       vsnprintf+0x102/0x4c0
       sprintf+0x51/0x80
       qedi_dbg_do_not_recover_cmd_read+0x2f/0x50 [qedi 6bcfdeeecdea037da47069eca2ba717c84a77324]
       full_proxy_read+0x50/0x80
       vfs_read+0xa5/0x2e0
       ? folio_add_new_anon_rmap+0x44/0xa0
       ? set_pte_at+0x15/0x30
       ? do_pte_missing+0x426/0x7f0
       ksys_read+0xa5/0xe0
       do_syscall_64+0x58/0x80
       ? __count_memcg_events+0x46/0x90
       ? count_memcg_event_mm+0x3d/0x60
       ? handle_mm_fault+0x196/0x2f0
       ? do_user_addr_fault+0x267/0x890
       ? exc_page_fault+0x69/0x150
       entry_SYSCALL_64_after_hwframe+0x72/0xdc
      RIP: 0033:0x7f4800f20b4d
      Tested-by: default avatarMartin Hoyer <mhoyer@redhat.com>
      Reviewed-by: default avatarJohn Meneghini <jmeneghi@redhat.com>
      Signed-off-by: default avatarManish Rangankar <mrangankar@marvell.com>
      Link: https://lore.kernel.org/r/20240415072155.30840-1-mrangankar@marvell.comSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      28027ec8
    • Bart Van Assche's avatar
      scsi: ufs: core: mcq: Fix ufshcd_mcq_sqe_search() · 3c5d0dce
      Bart Van Assche authored
      Fix the calculation of the utrd pointer. This patch addresses the following
      Coverity complaint:
      
      CID 1538170: (#1 of 1): Extra sizeof expression (SIZEOF_MISMATCH)
      suspicious_pointer_arithmetic: Adding sq_head_slot * 32UL /* sizeof (struct
      utp_transfer_req_desc) */ to pointer hwq->sqe_base_addr of type struct
      utp_transfer_req_desc * is suspicious because adding an integral value to
      this pointer automatically scales that value by the size, 32 bytes, of the
      pointed-to type, struct utp_transfer_req_desc. Most likely, the
      multiplication by sizeof (struct utp_transfer_req_desc) in this expression
      is extraneous and should be eliminated.
      
      Cc: Bao D. Nguyen <quic_nguyenb@quicinc.com>
      Cc: Stanley Chu <stanley.chu@mediatek.com>
      Cc: Can Guo <quic_cang@quicinc.com>
      Fixes: 8d729034 ("scsi: ufs: mcq: Add supporting functions for MCQ abort")
      Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
      Link: https://lore.kernel.org/r/20240410000751.1047758-1-bvanassche@acm.orgSigned-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      3c5d0dce
    • John Meneghini's avatar
      scsi: qedf: Make qedf_execute_tmf() non-preemptible · 0d8b637c
      John Meneghini authored
      Stop calling smp_processor_id() from preemptible code in
      qedf_execute_tmf90.  This results in BUG_ON() when running an RT kernel.
      
      [ 659.343280] BUG: using smp_processor_id() in preemptible [00000000] code: sg_reset/3646
      [ 659.343282] caller is qedf_execute_tmf+0x8b/0x360 [qedf]
      Tested-by: default avatarGuangwu Zhang <guazhang@redhat.com>
      Cc: Saurav Kashyap <skashyap@marvell.com>
      Cc: Nilesh Javali <njavali@marvell.com>
      Signed-off-by: default avatarJohn Meneghini <jmeneghi@redhat.com>
      Link: https://lore.kernel.org/r/20240403150155.412954-1-jmeneghi@redhat.comAcked-by: default avatarSaurav Kashyap <skashyap@marvell.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      0d8b637c
  6. 20 Apr, 2024 1 commit