Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH 0/2] some ppc fixes for 2.26-rc2
@ 2015-02-09 15:11 Ruediger Meier
  2015-02-09 15:11 ` [PATCH 1/2] cal: use int64_t instead of long Ruediger Meier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ruediger Meier @ 2015-02-09 15:11 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

Ruediger Meier (2):
  cal: use int64_t instead of long
  setarch: fix typo (missing braces) for ppcle

 misc-utils/cal.c    | 3 ++-
 sys-utils/setarch.c | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

-- 
1.8.4.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] cal: use int64_t instead of long
  2015-02-09 15:11 [PATCH 0/2] some ppc fixes for 2.26-rc2 Ruediger Meier
@ 2015-02-09 15:11 ` Ruediger Meier
  2015-02-09 15:11 ` [PATCH 2/2] setarch: fix typo (missing braces) for ppcle Ruediger Meier
  2015-02-10 10:29 ` [PATCH 0/2] some ppc fixes for 2.26-rc2 Karel Zak
  2 siblings, 0 replies; 4+ messages in thread
From: Ruediger Meier @ 2015-02-09 15:11 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

From: Ruediger Meier <ruediger.meier@ga-group.nl>

Followup 26f3a386, bigyear test was broken on ppc.

CC: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 misc-utils/cal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index 593ab28..2311d01 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -59,6 +59,7 @@
 
 #include <ctype.h>
 #include <getopt.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -808,7 +809,7 @@ static int day_in_week(int day, int month, int32_t year)
 	if (REFORMATION_YEAR < year
 	    || (year == REFORMATION_YEAR && 9 < month)
 	    || (year == REFORMATION_YEAR && month == 9 && 13 < day)) {
-		long long_year = year;
+		int64_t long_year = year;
 		return (long_year + (year / 4) - (year / 100) + (year / 400) + reform[month - 1] +
 			day) % 7;
 	}
-- 
1.8.4.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] setarch: fix typo (missing braces) for ppcle
  2015-02-09 15:11 [PATCH 0/2] some ppc fixes for 2.26-rc2 Ruediger Meier
  2015-02-09 15:11 ` [PATCH 1/2] cal: use int64_t instead of long Ruediger Meier
@ 2015-02-09 15:11 ` Ruediger Meier
  2015-02-10 10:29 ` [PATCH 0/2] some ppc fixes for 2.26-rc2 Karel Zak
  2 siblings, 0 replies; 4+ messages in thread
From: Ruediger Meier @ 2015-02-09 15:11 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

From: Ruediger Meier <ruediger.meier@ga-group.nl>

Introduced in 77eb13b9, noticed on ppc64le.

CC: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 sys-utils/setarch.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c
index c8ca5f8..76892ab 100644
--- a/sys-utils/setarch.c
+++ b/sys-utils/setarch.c
@@ -160,9 +160,9 @@ static int set_arch(const char *pers, unsigned long options, int list)
 		{PER_LINUX,	"ppc64pseries",	"ppc64"},
 		{PER_LINUX,	"ppc64iseries",	"ppc64"},
 # else
-		PER_LINUX32,	"ppc32le",	"ppcle"},
-		PER_LINUX32,	"ppcle",	"ppcle"},
-		PER_LINUX,	"ppc64le",	"ppc64le"},
+		{PER_LINUX32,	"ppc32le",	"ppcle"},
+		{PER_LINUX32,	"ppcle",	"ppcle"},
+		{PER_LINUX,	"ppc64le",	"ppc64le"},
 # endif
 #endif
 #if defined(__x86_64__) || defined(__i386__) || defined(__ia64__)
-- 
1.8.4.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] some ppc fixes for 2.26-rc2
  2015-02-09 15:11 [PATCH 0/2] some ppc fixes for 2.26-rc2 Ruediger Meier
  2015-02-09 15:11 ` [PATCH 1/2] cal: use int64_t instead of long Ruediger Meier
  2015-02-09 15:11 ` [PATCH 2/2] setarch: fix typo (missing braces) for ppcle Ruediger Meier
@ 2015-02-10 10:29 ` Karel Zak
  2 siblings, 0 replies; 4+ messages in thread
From: Karel Zak @ 2015-02-10 10:29 UTC (permalink / raw)
  To: Ruediger Meier; +Cc: util-linux

On Mon, Feb 09, 2015 at 04:11:00PM +0100, Ruediger Meier wrote:
> Ruediger Meier (2):
>   cal: use int64_t instead of long
>   setarch: fix typo (missing braces) for ppcle

 Applied, thanks.


-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-10 10:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-09 15:11 [PATCH 0/2] some ppc fixes for 2.26-rc2 Ruediger Meier
2015-02-09 15:11 ` [PATCH 1/2] cal: use int64_t instead of long Ruediger Meier
2015-02-09 15:11 ` [PATCH 2/2] setarch: fix typo (missing braces) for ppcle Ruediger Meier
2015-02-10 10:29 ` [PATCH 0/2] some ppc fixes for 2.26-rc2 Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox