b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From c3939dac2c060651361fc71516806f9ab8c38901 Mon Sep 17 00:00:00 2001 |
| 2 | From: Vaclav Dolezal <vdolezal@redhat.com> |
| 3 | Date: Thu, 23 Jan 2020 11:26:32 +0100 |
| 4 | Subject: [PATCH] hpmfwupg: move variable definition to .c file |
| 5 | |
| 6 | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com> |
| 7 | --- |
| 8 | include/ipmitool/ipmi_hpmfwupg.h | 2 +- |
| 9 | lib/ipmi_hpmfwupg.c | 2 ++ |
| 10 | 2 files changed, 3 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | --- a/include/ipmitool/ipmi_hpmfwupg.h |
| 13 | +++ b/include/ipmitool/ipmi_hpmfwupg.h |
| 14 | @@ -800,7 +800,7 @@ typedef struct _VERSIONINFO { |
| 15 | char descString[HPMFWUPG_DESC_STRING_LENGTH + 1]; |
| 16 | }VERSIONINFO, *PVERSIONINFO; |
| 17 | |
| 18 | -VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; |
| 19 | +extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; |
| 20 | |
| 21 | #define TARGET_VER (0x01) |
| 22 | #define ROLLBACK_VER (0x02) |
| 23 | --- a/lib/ipmi_hpmfwupg.c |
| 24 | +++ b/lib/ipmi_hpmfwupg.c |
| 25 | @@ -58,6 +58,8 @@ ipmi_intf_get_max_request_data_size(stru |
| 26 | |
| 27 | extern int verbose; |
| 28 | |
| 29 | +VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX]; |
| 30 | + |
| 31 | int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename, |
| 32 | int activate, int, int); |
| 33 | int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx); |