git: a612e0607e52 - stable/13 - ocs: Fix a couple of type mismatches in function prototypes

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Sat, 30 Nov 2024 19:09:14 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=a612e0607e52a0ed9d7e15e6e18e8dc6ac1bec7a

commit a612e0607e52a0ed9d7e15e6e18e8dc6ac1bec7a
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-11-15 02:36:48 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-11-30 19:04:54 +0000

    ocs: Fix a couple of type mismatches in function prototypes
    
    Reported by:    GCC 13 via -Wenum-int-mismatch
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D42585
    
    (cherry picked from commit 7aa5b2a9e7f5f3cd33e72cb1e95790fe7637f10f)
---
 sys/dev/ocs_fc/ocs_hw.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/dev/ocs_fc/ocs_hw.c b/sys/dev/ocs_fc/ocs_hw.c
index a437342bd0d0..62ef3cd49be3 100644
--- a/sys/dev/ocs_fc/ocs_hw.c
+++ b/sys/dev/ocs_fc/ocs_hw.c
@@ -7759,7 +7759,7 @@ ocs_hw_get_active_profile_cb(ocs_hw_t *hw, int32_t status, uint8_t *mqe, void *a
  *   context.
  * - OCS_HW_RTN_ERROR on any other error.
  */
-int32_t
+ocs_hw_rtn_e
 ocs_hw_get_active_profile(ocs_hw_t *hw, ocs_get_active_profile_cb_t cb, void* ul_arg)
 {
 	uint8_t *mbxdata;
@@ -7856,7 +7856,7 @@ ocs_hw_get_nvparms_cb(ocs_hw_t *hw, int32_t status, uint8_t *mqe, void *arg)
  *   context.
  * - OCS_HW_RTN_ERROR on any other error.
  */
-int32_t
+ocs_hw_rtn_e
 ocs_hw_get_nvparms(ocs_hw_t *hw, ocs_get_nvparms_cb_t cb, void* ul_arg)
 {
 	uint8_t *mbxdata;
@@ -7953,7 +7953,7 @@ ocs_hw_set_nvparms_cb(ocs_hw_t *hw, int32_t status, uint8_t *mqe, void *arg)
  *   context.
  * - OCS_HW_RTN_ERROR on any other error.
  */
-int32_t
+ocs_hw_rtn_e
 ocs_hw_set_nvparms(ocs_hw_t *hw, ocs_set_nvparms_cb_t cb, uint8_t *wwpn,
 		uint8_t *wwnn, uint8_t hard_alpa, uint32_t preferred_d_id, void* ul_arg)
 {
@@ -8118,7 +8118,7 @@ ocs_hw_set_active_profile_cb(ocs_hw_t *hw, int32_t status, uint8_t *mqe, void *a
  *   context.
  * - OCS_HW_RTN_ERROR on any other error.
  */
-int32_t
+ocs_hw_rtn_e
 ocs_hw_set_active_profile(ocs_hw_t *hw, ocs_set_active_profile_cb_t cb, uint32_t profile_id, void* ul_arg)
 {
 	uint8_t *mbxdata;