[Linux-cluster] Fwd: gfs fixes for PPC32 platform...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----------  Forwarded Message  ----------

Subject: gfs fixes for PPC32 platform...
Date: Monday 12 of July 2004 11:30
From: Paweł Sikora <pluto@xxxxxxxxxxxxxxx>
To: arekm@xxxxxxxxxxxxx

[ fs/gfs_locking/lock_gulm/utils_verb_flags.c ]:

The `strncasecmp' function confilcts with arch/ppc{,64}/lib/strcase.c
Please, rename it or link with proper arch/*/lib/built-in.o

[ fs/gfs/log.c ]:

The sequence `switch (head_wrap - dump_wrap)' uses __ucmpdi2 (for 64-bits
 ops) from libgcc_s.so and finally causing `unresolved symbol' in module.

fix:

__u64 tmp = head_wrap - dump_wrap;
if (tmp < 0x100000000LLU)
	switch ((__u32)tmp)
	{
	....
	}
else
	// default action.

--
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

                           #define say(x) lie(x)

-------------------------------------------------------



-- 
Arkadiusz Miśkiewicz     CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux
--- linux-2.6.8-rc1/fs/gfs_locking/lock_gulm/utils_verb_flags.c.orig	2004-07-12 10:46:12.000000000 +0200
+++ linux-2.6.8-rc1/fs/gfs_locking/lock_gulm/utils_verb_flags.c	2004-07-12 10:46:36.015314232 +0200
@@ -21,7 +21,7 @@
 #include "gulm_log_msg_bits.h"
 
 static __inline__ int
-strncasecmp (const char *s1, const char *s2, size_t l)
+__strncasecmp (const char *s1, const char *s2, size_t l)
 {
 	char c1 = '\0', c2 = '\0';
 
@@ -231,7 +231,7 @@
 		if (token[0] == '-') {
 			token++;
 			for (i = 0; i < len; i++) {
-				if (strncasecmp
+				if (__strncasecmp
 				    (token, verbose_flags[i].name, tl) == 0) {
 					(*verb) &= ~(verbose_flags[i].val);
 				}
@@ -239,17 +239,17 @@
 		} else if (token[0] == '+') {
 			token++;
 			for (i = 0; i < len; i++) {
-				if (strncasecmp
+				if (__strncasecmp
 				    (token, verbose_flags[i].name, tl) == 0) {
 					(*verb) |= verbose_flags[i].val;
 				}
 			}
 		} else {
-			if (strncasecmp (token, "clear", tl) == 0) {
+			if (__strncasecmp (token, "clear", tl) == 0) {
 				(*verb) = 0;
 			} else {
 				for (i = 0; i < len; i++) {
-					if (strncasecmp
+					if (__strncasecmp
 					    (token, verbose_flags[i].name,
 					     tl) == 0) {
 						(*verb) |= verbose_flags[i].val;

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux