linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: Re-enable TRACE_IRQFLAGS_SUPPORT on ARMv7-M
Date: Mon, 8 Jun 2015 23:47:49 +0100	[thread overview]
Message-ID: <20150608224749.GB7557@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1433802288-25508-1-git-send-email-mcoquelin.stm32@gmail.com>

On Tue, Jun 09, 2015 at 12:24:48AM +0200, Maxime Coquelin wrote:
> Commit cb1293e2f594 ("ARM: 8375/1: disable some options on ARMv7-M") causes
> build failure on ARMv7-M machines:
> 
>   CC      arch/arm/kernel/asm-offsets.s
> In file included from include/linux/sem.h:5:0,
>                  from include/linux/sched.h:35,
>                  from arch/arm/kernel/asm-offsets.c:14:
> include/linux/rcupdate.h: In function 'rcu_read_lock_sched_held':
> include/linux/rcupdate.h:539:2: error: implicit declaration of function 'arch_irqs_disabled' [-Werror=implicit-function-declaration]
>   return preempt_count() != 0 || irqs_disabled();
>   ^

The real solution is to provide a definition _in asm-generic_ for
arch_irqs_disabled(), rather than having almost every arch doing:

static inline bool arch_irqs_disabled(void)
{
        return arch_irqs_disabled_flags(arch_local_save_flags());
}

I'm personally refusing to take a patch for ARM which adds yet another
copy of the above.  This is, after all, exactly the kind of stuff that
should be in asm-generic, or if not, in include/linux but overridable
by arch stuff.

We keep going between the two extremes of "lets push lots of stuff into
arch stuff" and "lets try to extract the common bits out of arch code".

Let's try and settle on one approach, and apply it universally.

In the mean time, I think the right answer is to drop Arnd's patch -
subsituting a randconfig build error for a useful-config build error
is not something we want to do - and even partially reverting the
patch results in randconfig build errors returning, so...

-- 
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.

  reply	other threads:[~2015-06-08 22:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-08 22:24 [PATCH] ARM: Re-enable TRACE_IRQFLAGS_SUPPORT on ARMv7-M Maxime Coquelin
2015-06-08 22:47 ` Russell King - ARM Linux [this message]
2015-06-09  9:14   ` Maxime Coquelin
2015-06-09 11:41     ` Daniel Thompson
2015-06-09 14:42       ` Maxime Coquelin
2015-06-09 15:01       ` Russell King - ARM Linux
2015-06-09 17:37         ` Daniel Thompson
2015-06-10 10:03           ` Maxime Coquelin
2015-06-10 14:07           ` Joachim Eastwood

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=20150608224749.GB7557@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).