Re: error: implicit declaration of function ‘do_softirq’

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Henrik,

thanks for your help, you are completely right. (I should be less
sloppy when patching something I don't understand ;-) )

best regards,

Matthias Dübon

On Thu, Oct 17, 2013 at 2:07 PM, Henrik Austad <henrik@xxxxxxxxx> wrote:
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux