You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  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. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
  6. ---
  7. include/ipmitool/ipmi_hpmfwupg.h | 2 +-
  8. lib/ipmi_hpmfwupg.c | 2 ++
  9. 2 files changed, 3 insertions(+), 1 deletion(-)
  10. --- a/include/ipmitool/ipmi_hpmfwupg.h
  11. +++ b/include/ipmitool/ipmi_hpmfwupg.h
  12. @@ -800,7 +800,7 @@ typedef struct _VERSIONINFO {
  13. char descString[HPMFWUPG_DESC_STRING_LENGTH + 1];
  14. }VERSIONINFO, *PVERSIONINFO;
  15. -VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
  16. +extern VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
  17. #define TARGET_VER (0x01)
  18. #define ROLLBACK_VER (0x02)
  19. --- a/lib/ipmi_hpmfwupg.c
  20. +++ b/lib/ipmi_hpmfwupg.c
  21. @@ -58,6 +58,8 @@ ipmi_intf_get_max_request_data_size(stru
  22. extern int verbose;
  23. +VERSIONINFO gVersionInfo[HPMFWUPG_COMPONENT_ID_MAX];
  24. +
  25. int HpmfwupgUpgrade(struct ipmi_intf *intf, char *imageFilename,
  26. int activate, int, int);
  27. int HpmfwupgValidateImageIntegrity(struct HpmfwupgUpgradeCtx *pFwupgCtx);