linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mutex compilation error
@ 2006-01-10 14:19 David Howells
  2006-01-10 20:48 ` [patch] remove unnecessary asm/mutex.h from kernel/mutex-debug.c Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2006-01-10 14:19 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel


Hi Ingo,

I've found a compilation error in mutexes when using the null variety:

	In file included from kernel/mutex-debug.c:25:
	kernel/mutex-debug.h:23:1: warning: "__IP__" redefined
	In file included from include/asm/mutex.h:9,
			 from kernel/mutex-debug.c:23:
	include/asm-generic/mutex-null.h:15:1: warning: this is the location of the previous definition

It seems that mutex-null.h defined __IP__ before mutex-debug.h because in
mutex-debug.c:

	#include <asm/mutex.h>

	#include "mutex-debug.h"

is the ordering of the includes.

Whilst mutex-null.h defends against multiple inclusions of __IP__,
mutex-debug.h does not.

David

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

end of thread, other threads:[~2006-01-10 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 14:19 Mutex compilation error David Howells
2006-01-10 20:48 ` [patch] remove unnecessary asm/mutex.h from kernel/mutex-debug.c Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).