All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Riffard <laurent.riffard@free.fr>
To: Alexander Zarochentsev <zam@namesys.com>
Cc: Brice Goglin <Brice.Goglin@ens-lyon.org>,
	Alexandre Buisse <alexandre.buisse@ens-lyon.fr>,
	Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org
Subject: Re: 2.6.14-rc2-mm2
Date: Fri, 30 Sep 2005 12:10:58 +0200	[thread overview]
Message-ID: <433D0F32.8070303@free.fr> (raw)
In-Reply-To: <200509301320.38161.zam@namesys.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 30.09.2005 11:20, Alexander Zarochentsev a écrit :
> On Friday 30 September 2005 12:45, Laurent Riffard wrote:
> 
>>Le 30.09.2005 01:54, Brice Goglin a écrit :
>>
>>>Le 30.09.2005 01:40, Michal Piotrowski a écrit :
>>>
>>>>It maybe a problem with gentoo gcc.
>>>
>>>I'm seeing the same error with Debian gcc4.
>>>
>>>bgoglin@puligny:/usr/src/linux-mm$ gcc --version
>>>gcc (GCC) 4.0.1 (Debian 4.0.1-2)
>>>
>>>By the way, the error appears when compiling
>>>  CC [M]  fs/reiser4/debug.o
>>>while DEBUG is disabled for REISER4.
>>>
>>>My .config attached
>>>Note that Alexandre forgot to reenable Reiser4 in the .config he sent.
>>>
>>>Regards,
>>>Brice
>>
>>It seems to appear when CONFIG_SMP=N and CONFIG_DEBUG_SPINLOCK=N and
>>CONFIG_REISER4_DEBUG=N.
>>
>>In this case, spinlock_t is an empty struct (see
>>include/linux/spinlock_types.h and
>>include/linux/spinlock_types_up.h). Then sizeof(spinlock_t) _is_ 0,
>>and this breaks some code like cassert calls from
>>fs/reiser4/spin_macros.h line 85 (FIELD is a spinlock_t) :
>>     82 static inline void spin_ ## NAME ## _init(TYPE *x)      \
>>     83 {                                                       \
>>
>>     84         __ODCA("nikita-2987", x != NULL);               \
>>     85         cassert(sizeof(x->FIELD) != 0);                 \
>>
>>     86         memset(& x->FIELD, 0, sizeof x->FIELD);         \
>>
>>     87         spin_lock_init(& x->FIELD.lock);                \
>>
>>     88 }                                                       \
>>
>>     89
> 
> 
> correct. 
> 
> the code will be reworked soon,
> a hot fix for now is:
>  
> -----------------------------------
> diff --git a/spin_macros.h b/spin_macros.h
> --- a/spin_macros.h
> +++ b/spin_macros.h
> @@ -82,8 +82,6 @@ typedef struct reiser4_rw_data {
>  static inline void spin_ ## NAME ## _init(TYPE *x)				\
>  {										\
>  	__ODCA("nikita-2987", x != NULL);					\
> -	cassert(sizeof(x->FIELD) != 0);						\
> -	memset(& x->FIELD, 0, sizeof x->FIELD);					\
>  	spin_lock_init(& x->FIELD.lock);					\
>  }										\
>  										\
> @@ -236,7 +234,6 @@ typedef struct { int foo; } NAME ## _spi
>  static inline void rw_ ## NAME ## _init(TYPE *x)				\
>  {										\
>  	__ODCA("nikita-2988", x != NULL);					\
> -	memset(& x->FIELD, 0, sizeof x->FIELD);					\
>  	rwlock_init(& x->FIELD.lock);						\
>  }										\
>  										\
> -----------------------------------
> 
> 
>>~~
>>laurent

Ok, compiled and booted.

[root@antares ~]# cat /proc/version
Linux version 2.6.14-rc2-mm2 (laurent@antares.localdomain) (gcc
version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)) #6 Fri
Sep 30 11:30:02 CEST 2005

thanks
~~
laurent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDPQ8xUqUFrirTu6IRAnigAKCqJp+eGSvmwRw+VdZcKi7qdgX2zQCfcQFT
h03UuogYvijwfM6nZpdUF0Q=
=W6Cj
-----END PGP SIGNATURE-----

  reply	other threads:[~2005-09-30 10:11 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-29 21:37 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 21:46 ` 2.6.14-rc2-mm2 Alexandre Buisse
2005-09-29 22:51   ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:00     ` 2.6.14-rc2-mm2 Aurelien Francillon
2005-09-29 22:56   ` 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 22:08     ` 2.6.14-rc2-mm2 Alexandre Buisse
2005-09-29 23:40       ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:54         ` 2.6.14-rc2-mm2 Brice Goglin
2005-09-30  8:45           ` 2.6.14-rc2-mm2 Laurent Riffard
2005-09-30  9:20             ` 2.6.14-rc2-mm2 Alexander Zarochentsev
2005-09-30 10:10               ` Laurent Riffard [this message]
2005-09-29 23:51     ` 2.6.14-rc2-mm2 Hans Reiser
2005-09-29 22:47 ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:18   ` 2.6.14-rc2-mm2 Antonino A. Daplas
2005-09-29 23:25     ` 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 23:45       ` 2.6.14-rc2-mm2 Antonino A. Daplas
2005-09-29 23:47       ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:48       ` 2.6.14-rc2-mm2 Grant Coady
2005-09-29 23:27     ` 2.6.14-rc2-mm2 Michal Piotrowski
2005-09-29 23:09 ` 2.6.14-rc2-mm2 J.A. Magallon
2005-09-30  1:09   ` [lm-sensors] 2.6.14-rc2-mm2 J.A. Magallon
2005-09-30  2:16   ` 2.6.14-rc2-mm2 Grant Coady
2005-09-30  4:16     ` [lm-sensors] 2.6.14-rc2-mm2 Grant Coady
2005-10-01 18:16   ` 2.6.14-rc2-mm2 Jean Delvare
2005-10-01 20:16     ` [lm-sensors] 2.6.14-rc2-mm2 Jean Delvare
2005-09-29 23:26 ` 2.6.14-rc2-mm2 Mark Knecht
2005-09-29 23:49   ` 2.6.14-rc2-mm2 Andrew Morton
2005-09-29 23:58     ` 2.6.14-rc2-mm2 Mark Knecht
2005-09-30 10:06 ` [PATCH -mm] s390: fix TIMER_MAGIC breakage Alexey Dobriyan
2005-09-30 14:36 ` 2.6.14-rc2-mm2 Martin J. Bligh
2005-09-30 16:54   ` 2.6.14-rc2-mm2 Badari Pulavarty
2005-09-30 17:15     ` 2.6.14-rc2-mm2 Grant Wilson
2005-09-30 18:49 ` 2.6.14-rc2-mm2 (PHY reset until link up) Dominik Karall
2005-09-30 19:07   ` Andrew Morton
2005-09-30 19:32     ` [patch 2.6.14-rc2 1/1] r8169: tone down the r8169 driver Francois Romieu
2005-09-30 20:15     ` 2.6.14-rc2-mm2 (PHY reset until link up) Francois Romieu
2005-09-30 19:36 ` 2.6.14-rc2-mm2 Mickael Marchand
2005-10-04 21:42   ` 2.6.14-rc2-mm2 Mickael Marchand
2005-09-30 19:56 ` 2.6.14-rc2-mm2 alexs
2005-09-30 22:02 ` reiser4 compilation fix [ was: 2.6.14-rc2-mm2] Alexander Zarochentsev
2005-09-30 22:23   ` Stephen Hemminger
2005-10-01  4:56 ` [PATCH] mips: add missing semicolon Yoichi Yuasa
2005-10-01 16:52 ` 2.6.14-rc2-mm2 (dma_timer_expiry) Dominik Karall
2005-10-02 20:06 ` 2.6.14-rc2-mm2 (NULL pointer) Dominik Karall
2005-10-02 20:45   ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2005-09-29 21:37 2.6.14-rc2-mm2 Andrew Morton

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=433D0F32.8070303@free.fr \
    --to=laurent.riffard@free.fr \
    --cc=Brice.Goglin@ens-lyon.org \
    --cc=akpm@osdl.org \
    --cc=alexandre.buisse@ens-lyon.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zam@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.