OpenSDE Packages Database (without history before r20070)
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.

66 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mdadm/mdadm-3.2.2-werror.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From 19986c721c9ac4b353c8592998d70d0dc8860bfd Mon Sep 17 00:00:00 2001
  17. From: Milan Broz <mbroz@redhat.com>
  18. Date: Thu, 14 Jul 2011 13:58:36 +1000
  19. Subject: [PATCH] mdadm: fix build failures (ppc64)
  20. This patch fixes these build issues:
  21. super-intel.c: In function 'getinfo_super_imsm_volume':
  22. super-intel.c:2327:4: error: format '%llu' expects argument of type 'long long
  23. unsigned int', but argument 3 has type '__u64' [-Werror=format]
  24. super-intel.c: In function 'imsm_reshape_super':
  25. super-intel.c:8665:7: error: 'devnum' may be used uninitialized in this function [-Werror=uninitialized]
  26. Signed-off-by: Milan Broz <mbroz@redhat.com>
  27. Signed-off-by: NeilBrown <neilb@suse.de>
  28. ---
  29. super-intel.c | 9 ++++++---
  30. 1 files changed, 6 insertions(+), 3 deletions(-)
  31. diff --git a/super-intel.c b/super-intel.c
  32. index 5ea3b36..70cf993 100644
  33. --- a/super-intel.c
  34. +++ b/super-intel.c
  35. @@ -2326,7 +2326,9 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info,
  36. dprintf("IMSM: General Migration checkpoint : %llu "
  37. "(%llu) -> read reshape progress : %llu\n",
  38. - units, blocks_per_unit, info->reshape_progress);
  39. + (unsigned long long)units,
  40. + (unsigned long long)blocks_per_unit,
  41. + info->reshape_progress);
  42. used_disks = imsm_num_data_members(dev, 1);
  43. if (used_disks > 0) {
  44. @@ -8661,8 +8663,9 @@ static int imsm_reshape_super(struct supertype *st, long long size, int level,
  45. dprintf("imsm: info: Volume operation\n");
  46. /* find requested device */
  47. while (dev) {
  48. - imsm_find_array_minor_by_subdev(dev->index, st->container_dev, &devnum);
  49. - if (devnum == geo.dev_id)
  50. + if (imsm_find_array_minor_by_subdev(
  51. + dev->index, st->container_dev, &devnum) == 0
  52. + && devnum == geo.dev_id)
  53. break;
  54. dev = dev->next;
  55. }
  56. --
  57. 1.7.6.3