|
|
f0ce58 |
Add additional #include directives for C99 compatibility. Avoid
|
|
|
f0ce58 |
implicit declarations of cibfw_register_mfai_pack,
|
|
|
f0ce58 |
cibfw_register_mfai_unpack, cibfw_register_mfai_size by including
|
|
|
f0ce58 |
<tools_layouts/cibfw_layouts.h>, and of getenv by including
|
|
|
f0ce58 |
<stdlib.h>.
|
|
|
f0ce58 |
|
|
|
f0ce58 |
Submitted upstream: <https://github.com/Mellanox/mstflint/pull/774>
|
|
|
f0ce58 |
|
|
|
f0ce58 |
diff --git a/mflash/mflash_gw.c b/mflash/mflash_gw.c
|
|
|
f0ce58 |
index f296700ddaaf022a..55e5cb9d356c09f4 100644
|
|
|
f0ce58 |
--- a/mflash/mflash_gw.c
|
|
|
f0ce58 |
+++ b/mflash/mflash_gw.c
|
|
|
f0ce58 |
@@ -43,6 +43,8 @@
|
|
|
f0ce58 |
#include "mflash_access_layer.h"
|
|
|
f0ce58 |
#include "flash_int_defs.h"
|
|
|
f0ce58 |
|
|
|
f0ce58 |
+#include <stdlib.h>
|
|
|
f0ce58 |
+
|
|
|
f0ce58 |
#ifdef __WIN__
|
|
|
f0ce58 |
//
|
|
|
f0ce58 |
// Windows (Under DDK)
|
|
|
f0ce58 |
diff --git a/mflash/mflash_new_gw.c b/mflash/mflash_new_gw.c
|
|
|
f0ce58 |
index 3bd044ea327f7b9b..4d0bb21ddf1d47b4 100644
|
|
|
f0ce58 |
--- a/mflash/mflash_new_gw.c
|
|
|
f0ce58 |
+++ b/mflash/mflash_new_gw.c
|
|
|
f0ce58 |
@@ -42,6 +42,9 @@
|
|
|
f0ce58 |
#include "mflash_dev_capability.h"
|
|
|
f0ce58 |
#include "mflash_access_layer.h"
|
|
|
f0ce58 |
#include "flash_int_defs.h"
|
|
|
f0ce58 |
+
|
|
|
f0ce58 |
+#include <stdlib.h>
|
|
|
f0ce58 |
+
|
|
|
f0ce58 |
#define DPRINTF(args) \
|
|
|
f0ce58 |
do \
|
|
|
f0ce58 |
{ \
|
|
|
f0ce58 |
diff --git a/reg_access/reg_access.c b/reg_access/reg_access.c
|
|
|
f0ce58 |
index 622b1a151ec8dcc3..736e67b30aa7f7af 100644
|
|
|
f0ce58 |
--- a/reg_access/reg_access.c
|
|
|
f0ce58 |
+++ b/reg_access/reg_access.c
|
|
|
f0ce58 |
@@ -37,6 +37,7 @@
|
|
|
f0ce58 |
#include <tools_layouts/reg_access_hca_layouts.h>
|
|
|
f0ce58 |
#include <tools_layouts/reg_access_switch_layouts.h>
|
|
|
f0ce58 |
#include <tools_layouts/tools_open_layouts.h>
|
|
|
f0ce58 |
+#include <tools_layouts/cibfw_layouts.h>
|
|
|
f0ce58 |
|
|
|
f0ce58 |
#define REG_ID_PCNR 0x5050
|
|
|
f0ce58 |
#define REG_ID_PAOS 0x5006
|