All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir V. Saveliev" <vs@namesys.com>
To: Grzegorz Piotr Jaskiewicz <gj@kdemail.net>
Cc: reiserfs-list@namesys.com
Subject: Re: compilation problems with gcc4
Date: Thu, 22 Sep 2005 16:26:06 +0400	[thread overview]
Message-ID: <4332A2DE.3040904@namesys.com> (raw)
In-Reply-To: <200509221326.49204@gj-laptop>

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

Hello

Grzegorz Piotr Jaskiewicz wrote:
> Trying to get beast to compile for me, to do review and testing here, I get 
> following problems with gcc 4.0.2:
> 
>   CC [M]  fs/reiser4/debug.o
> In file included from fs/reiser4/jnode.h:12,
>                  from fs/reiser4/lock.h:16,
>                  from fs/reiser4/context.h:15,
>                  from fs/reiser4/debug.c:32:
> fs/reiser4/txnmgr.h: In function 'spin_unlock_atom':
> fs/reiser4/txnmgr.h:559: warning: comparisons like X<=Y<=Z do not have their 
> mathematical meaning
> 

would you pleas try the attached patch to see whether it helps.

> That's reiserfs4 patch from ftp.namesys.com called:
> reiser4-for-2.6.12-3.patch
> gcc (GCC) 4.0.2 20050917 (prerelease)
> 
> I already requested that patch update to possible newest snapshot from 
> namesys'es cvs or whatever they use.
> 

the latest reiser4 code is available at ftp://ftp.namesys.com/pub/reiser4-for-2.6/git-snapshots/

> Thanks.
>  


[-- Attachment #2: reiser4-typo-fix.patch --]
[-- Type: text/plain, Size: 760 bytes --]

 fs/reiser4/spin_macros.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/reiser4/spin_macros.h~reiser4-typo-fix fs/reiser4/spin_macros.h
--- linux-2.6.12/fs/reiser4/spin_macros.h~reiser4-typo-fix	2005-09-22 16:22:20.563302069 +0400
+++ linux-2.6.12-vs/fs/reiser4/spin_macros.h	2005-09-22 16:23:20.924412525 +0400
@@ -173,7 +173,7 @@ static inline int  spin_trylock_ ## NAME
 static inline void spin_unlock_ ## NAME (TYPE *x)				\
 {										\
 	__ODCA("nikita-1375", LOCK_CNT_GTZ(spin_locked_ ## NAME));		\
-	__ODCA("nikita-1376", LOCK_CNT_GTZ(spin_locked > 0));			\
+	__ODCA("nikita-1376", LOCK_CNT_GTZ(spin_locked));			\
 	__ODCA("nikita-2703", spin_ ## NAME ## _is_locked(x));			\
 										\
 	spin_ ## NAME ## _dec();						\

_

  reply	other threads:[~2005-09-22 12:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22 11:26 compilation problems with gcc4 Grzegorz Piotr Jaskiewicz
2005-09-22 12:26 ` Vladimir V. Saveliev [this message]
2005-09-22 12:38   ` Grzegorz Piotr Jaskiewicz
2005-09-22 12:43   ` Grzegorz Piotr Jaskiewicz
2005-09-22 13:00     ` Vladimir V. Saveliev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4332A2DE.3040904@namesys.com \
    --to=vs@namesys.com \
    --cc=gj@kdemail.net \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.