public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: Henrik Austad <henrik@austad.us>
To: "Matthias Dübon" <matthias.duebon@ing-duebon.de>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: error: implicit declaration of function ‘do_softirq’
Date: Thu, 17 Oct 2013 14:07:17 +0200	[thread overview]
Message-ID: <20131017120717.GA22364@austad.us> (raw)
In-Reply-To: <CAMj341OaVOXvcjvw75CoKSF1=YaBcVHa026LQ8VY2KXyUtOBaw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1704 bytes --]

On Tue, Oct 15, 2013 at 06:14:01PM +0200, Matthias Dübon wrote:
> Hello everyone,

Hi,

> I am just experimenting with the RT preempt patch
> patch-3.10.15-rt11.patch.bz2 and a 3.10.16 kernel for x86 architecture
> with a "standard" .config file.

Standard as in 'make defconfig' or standard as in 'what my distro uses'?

> I configured CONFIG_PREEMPT_RT_FULL=y
> 
> when building the kernel I got the following error:
> 
> "kernel/softirq.c: In function ‘invoke_softirq’:
> kernel/softirq.c:710:3: error: implicit declaration of function
> ‘do_softirq’ [-Werror=implicit-function-declaration]"
> 
> Is this related to my kernel configuration?

Not easy to say without the actual .config.

However, I did note one thing. You are using the preempt-rt patch for 
3.10.15 and you apply it to 3.10.16 (or was that a typo?)

When I try to do the same thing; lo and behold, I get a reject in 
kernel/softirq.c.

$ cat kernel/softirq.c.rej 
--- kernel/softirq.c
+++ kernel/softirq.c
@@ -698,10 +1066,20 @@
 
 static inline void invoke_softirq(void)
 {
+#ifndef CONFIG_PREEMPT_RT_FULL
        if (!force_irqthreads)
                __do_softirq();
        else
                wakeup_softirqd();
+#else /* PREEMPT_RT_FULL */
+       unsigned long flags;
+
+       local_irq_save(flags);
+       if (__this_cpu_read(ksoftirqd) &&
+           __this_cpu_read(ksoftirqd)->softirqs_raised)
+               wakeup_softirqd();
+       local_irq_restore(flags);
+#endif
 }
 
 static inline void tick_irq_exit(void)


Do you see anything suspicious here? :)

Try to use v3.10.15 and recompile. I think that'll work a bit better.


-- 
Henrik Austad

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2013-10-17 12:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-15 16:14 error: implicit declaration of function ‘do_softirq’ Matthias Dübon
2013-10-17 12:07 ` Henrik Austad [this message]
2013-10-20 17:30   ` Matthias Dübon

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=20131017120717.GA22364@austad.us \
    --to=henrik@austad.us \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=matthias.duebon@ing-duebon.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