mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Remy Bohmer" <linux@bohmer.net>
To: "Steven Rostedt" <rostedt@goodmis.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
	RT <linux-rt-users@vger.kernel.org>,
	lvcargnini@gmail.com, "Thomas Gleixner" <tglx@linutronix.de>
Subject: 2.6.25.4-rt2 compile errors on ARM due to cmpxchg() problems.
Date: Tue, 20 May 2008 16:21:53 +0200	[thread overview]
Message-ID: <3efb10970805200721u6a837a2ap94ead54f7eb7bf89@mail.gmail.com> (raw)

Hello Steven,

I want to test 2.6.25.4-rt2 on ARM, but unfortunately I run into
several compile errors.
All errors seem to be related to cmpxchg routines -> duplicate
definitions or missing BUILD_BUG_ON() or typecheck() macros.
I already figured out the missing BUILD_BUG_ON() + typecheck() problem
which is caused by including a header
'include/asm-generic/cmpxchg-local.h' in linux/kernel.h before these
macros are defined in linux/kernel.h. See below for a piece/snippet of
the compiler output.

Looking deeper into this, things look quite messy around cmpxchg() on ARM...

Any ideas what has been changed here, and why these things can go
wrong so badly?


Kind Regards,

Remy

---- 8-< ----
In file included from include/linux/rt_lock.h:14,
                 from include/linux/spinlock.h:117,
                 from include/linux/mmzone.h:7,
                 from include/linux/gfp.h:4,
                 from include/linux/slab.h:14,
                 from include/linux/percpu.h:5,
                 from include/linux/kernel_stat.h:7,
                 from arch/arm/kernel/irq.c:24:
include/asm/atomic.h:241:1: warning: "cmpxchg" redefined
In file included from include/asm/system.h:378,
                 from include/asm/bitops.h:27,
                 from include/linux/bitops.h:17,
                 from include/linux/kernel.h:32,
                 from include/linux/cpumask.h:84,
                 from include/linux/smp.h:10,
                 from include/linux/kernel_stat.h:5,
                 from arch/arm/kernel/irq.c:24:
include/asm-generic/cmpxchg.h:19:1: warning: this is the location of
the previous definition
In file included from include/asm/system.h:366,
                 from include/linux/list.h:9,
                 from include/linux/module.h:9,
                 from arch/arm/kernel/process.c:13:
include/asm-generic/cmpxchg-local.h: In function '__cmpxchg_local_generic':
include/asm-generic/cmpxchg-local.h:23: error: implicit declaration of
function 'BUILD_BUG_ON'
include/asm-generic/cmpxchg-local.h:23: error: implicit declaration of
function 'typecheck'
include/asm-generic/cmpxchg-local.h:23: error: expected expression
before 'unsigned'
include/asm-generic/cmpxchg-local.h:44: error: expected expression
before 'unsigned'
include/asm-generic/cmpxchg-local.h: In function '__cmpxchg64_local_generic':
include/asm-generic/cmpxchg-local.h:57: error: expected expression
before 'unsigned'
include/asm-generic/cmpxchg-local.h:61: error: expected expression
before 'unsigned'
---- 8-< ----

             reply	other threads:[~2008-05-20 14:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-20 14:21 Remy Bohmer [this message]
2008-05-20 14:34 ` Steven Rostedt
2008-05-20 19:11   ` Robert Schwebel
2008-05-20 19:25     ` Remy Bohmer

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=3efb10970805200721u6a837a2ap94ead54f7eb7bf89@mail.gmail.com \
    --to=linux@bohmer.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=lvcargnini@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®