[packages/mstflint] - added fixes for missing function prototypes

qboosh qboosh at pld-linux.org
Mon Apr 21 18:31:20 CEST 2025


commit b9809dfd3027c9925ac213d79cf68f9e8d0d7be0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 21 18:07:34 2025 +0200

    - added fixes for missing function prototypes

 mstflint-includes.patch | 38 ++++++++++++++++++++++++++++++++++++++
 mstflint.spec           |  2 ++
 2 files changed, 40 insertions(+)
---
diff --git a/mstflint.spec b/mstflint.spec
index 84dd2e2..cf0a960 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -8,6 +8,7 @@ License:	BSD or GPL v2
 Group:		Networking/Utilities
 Source0:	https://github.com/Mellanox/mstflint/releases/download/v%{upstream_ver}/%{name}-%{upstream_ver}.tar.gz
 # Source0-md5:	19b8dd432ba7dbec66873190ec197fc7
+Patch0:		%{name}-includes.patch
 Patch1:		x32.patch
 URL:		https://github.com/Mellanox/mstflint
 BuildRequires:	autoconf >= 2.50
@@ -47,6 +48,7 @@ Pliki nagłówkowe do dostępu do kart HCA/NIC Mellanox.
 
 %prep
 %setup -q
+%patch -P0 -p1
 %patch -P1 -p1
 
 %build
diff --git a/mstflint-includes.patch b/mstflint-includes.patch
new file mode 100644
index 0000000..a42b640
--- /dev/null
+++ b/mstflint-includes.patch
@@ -0,0 +1,38 @@
+--- mstflint-4.31.0/mtcr_ul/fwctrl.c.orig	2025-02-02 14:05:06.000000000 +0100
++++ mstflint-4.31.0/mtcr_ul/fwctrl.c	2025-04-21 07:49:55.417422073 +0200
+@@ -41,6 +41,7 @@
+ #include <string.h>
+ #include <stddef.h>
+ #include "mtcr_mf.h"
++#include "mtcr.h"
+ #include "fwctrl.h"
+ #include "fwctrl_ioctl.h"
+ 
+@@ -79,6 +80,8 @@ void fwctl_set_device_id(mfile* mf)
+     }
+ }
+ 
++int return_by_reg_status(int reg_status);
++
+ int translate_cmd_status_to_reg_status(int cmd_status)
+ {
+     switch (cmd_status) {
+@@ -192,7 +195,7 @@ int fwctl_control_access_register(int
+     }
+ 
+     FWCTL_DEBUG_PRINT(mf, "register id = 0x%x, command status = 0x%x, reg status code: 0x%x, reg status: %s\n",
+-                      reg_id, cmd_status, *reg_status, m_err2str(status));
++                      reg_id, cmd_status, *reg_status, m_err2str(*reg_status));
+ out:
+     free(out);
+     free(in);
+--- mstflint-4.31.0/dev_mgt/tools_dev_types.c.orig	2025-02-02 14:05:06.000000000 +0100
++++ mstflint-4.31.0/dev_mgt/tools_dev_types.c	2025-04-21 17:38:05.374023907 +0200
+@@ -48,6 +48,7 @@
+ #include <tools_layouts/reg_access_hca_layouts.h>
+ #include "tools_dev_types.h"
+ #include "mflash/mflash_types.h"
++#include "mtcr_ul/mtcr_ul_com.h"
+ 
+ enum dm_dev_type {
+     DM_UNKNOWN = -1,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mstflint.git/commitdiff/b9809dfd3027c9925ac213d79cf68f9e8d0d7be0



More information about the pld-cvs-commit mailing list