git: df8d325b8d62 - stable/14 - ocs: Fix a couple of type mismatches in function prototypes

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 03 Jan 2024 17:50:08 UTC
The branch stable/14 has been updated by jhb:

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

commit df8d325b8d62863368702289264f8fc016699fd1
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-11-15 02:36:48 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-01-03 17:43:48 +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 186b04b8b129..cfb9d4f8f536 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;