public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* More errors compiling kernel with GCC 3.1
@ 2002-01-03  4:50 John Weber
  0 siblings, 0 replies; 2+ messages in thread
From: John Weber @ 2002-01-03  4:50 UTC (permalink / raw)
  To: linux-kernel

I'm just trying to read the source code, and I am having trouble in a 
few areas.  For example, I am completely baffled by the number of macros 
that get called in some places.  For example, in the semaphore code... 
just wondering why DECLARE_MUTEX (macro) calls DECLARE_SEMAPHORE_GENERIC 
(macro) calls SEMAPHORE_INITIALIZER (macro) calls 
WAIT_QUEUE_HEAD_INITIALIZER (macro) and so on, and so on...

I guess I can understand the use of a macro to deal with the overhead
introduced by calling functions all over the place, but having this
many macros that call macros isn't clear to me... I just hope that it
wasn't done to make the code easier to read or something :).

Can anyone point me to some documentation that might explain this type 
of thing?


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

* Re: More errors compiling kernel with GCC 3.1
       [not found] <fa.cast4mv.l0adg7@ifi.uio.no>
@ 2002-01-03  4:58 ` John Weber
  0 siblings, 0 replies; 2+ messages in thread
From: John Weber @ 2002-01-03  4:58 UTC (permalink / raw)
  To: linux-kernel

John Weber wrote:

> I'm just trying to read the source code, and I am having trouble in a 
> few areas.  For example, I am completely baffled by the number of macros 
> that get called in some places.  For example, in the semaphore code... 
> just wondering why DECLARE_MUTEX (macro) calls DECLARE_SEMAPHORE_GENERIC 
> (macro) calls SEMAPHORE_INITIALIZER (macro) calls 
> WAIT_QUEUE_HEAD_INITIALIZER (macro) and so on, and so on...

I apologize, but this was mistakenly sent to the wrong mailing list...
I was complaining about some parts of the kernel that gcc 3.1 was having 
  trouble with, which upon reading I was having trouble with :).

Sorry for the pollution...


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

end of thread, other threads:[~2002-01-03  4:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.cast4mv.l0adg7@ifi.uio.no>
2002-01-03  4:58 ` More errors compiling kernel with GCC 3.1 John Weber
2002-01-03  4:50 John Weber

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