1*4882a593SmuzhiyunFrom c3939dac2c060651361fc71516806f9ab8c38901 Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Vaclav Dolezal <vdolezal@redhat.com> 3*4882a593SmuzhiyunDate: Thu, 23 Jan 2020 11:26:32 +0100 4*4882a593SmuzhiyunSubject: [PATCH] hpmfwupg: move variable definition to .c file 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunSigned-off-by: Vaclav Dolezal <vdolezal@redhat.com> 7*4882a593Smuzhiyun[Retrieved from: 8*4882a593Smuzhiyunhttps://github.com/ipmitool/ipmitool/commit/c3939dac2c060651361fc71516806f9ab8c38901] 9*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 10*4882a593Smuzhiyun--- 11*4882a593Smuzhiyun include/ipmitool/ipmi_hpmfwupg.h | 2 +- 12*4882a593Smuzhiyun lib/ipmi_hpmfwupg.c | 2 ++ 13*4882a593Smuzhiyun 2 files changed, 3 insertions(+), 1 deletion(-) 14*4882a593Smuzhiyun 15*4882a593Smuzhiyundiff --git a/include/ipmitool/ipmi_hpmfwupg.h b/include/ipmitool/ipmi_hpmfwupg.h 16*4882a593Smuzhiyunindex de65292b..07f597be 100644 17*4882a593Smuzhiyun--- a/include/ipmitool/ipmi_hpmfwupg.h 18*4882a593Smuzhiyun+++ b/include/ipmitool/ipmi_hpmfwupg.h 19*4882a593Smuzhiyun@@ -800,7 +800,7 @@ typedef struct _VERSIONINFO { 20*4882a593Smuzhiyun char descString[HPMFWUPG_DESC_STRING_LENGTH + 1]; 21*4882a593Smuzhiyun }VERSIONINFO, *PVERSIONINFO; 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun-VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; 24*4882a593Smuzhiyun+extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun #define TARGET_VER (0x01) 27*4882a593Smuzhiyun #define ROLLBACK_VER (0x02) 28*4882a593Smuzhiyundiff --git a/lib/ipmi_hpmfwupg.c b/lib/ipmi_hpmfwupg.c 29*4882a593Smuzhiyunindex 4aa8cecd..d63d2c15 100644 30*4882a593Smuzhiyun--- a/lib/ipmi_hpmfwupg.c 31*4882a593Smuzhiyun+++ b/lib/ipmi_hpmfwupg.c 32*4882a593Smuzhiyun@@ -50,6 +50,8 @@ 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun extern int verbose; 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun+VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; 37*4882a593Smuzhiyun+ 38*4882a593Smuzhiyun int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename, 39*4882a593Smuzhiyun int activate, int, int); 40*4882a593Smuzhiyun int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx); 41