All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Kernel compilation error due to Adeos patch error in 'io_apic.c'
@ 2012-08-08 11:00 Stephen Bryant
  2012-12-27 19:06 ` Wim
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Bryant @ 2012-08-08 11:00 UTC (permalink / raw)
  To: xenomai

 Hello,

I have searched the mailing lists to find out if this has already been
raised and have not found anything, so apologies if this is a known issue.

Vanilla Kernel: 3.2.21
Adeos Patch: ipipe-core-3.2.21-x86-1.patch
gcc --version: 4.7.0
Xenomai Version: 2.6.1

Patch applies itself cleanly.

Compilation error during initial kernel 'make':
arch/x86/kernel/apic/io_apic.c: In function
‘irq_remap_modify_chip_defaults’:
arch/x86/kernel/apic/io_apic.c:2763:1: error: expected expression before
‘}’ token

Problem:
Commas instead of semi-colons at the end of lines inside CONFIG_IPIPE 'if'
directives in 'io_apic.c'.

Solution:
Update the ipipe patch to replace commas with semi-colons (please let me
know if you want this diff in a different format):

*** ksrc/arch/x86/patches/ipipe-core-3.2.21-x86-1.patch    2012-07-10
19:42:46.000000000 +0100
--- ksrc/arch/x86/patches/ipipe-core-3.2.21-x86-1-new.patch    2012-08-08
11:44:48.472207969 +0100
*************** index 6d939d7..9bbe781 100644
*** 1751,1762 ****
   #ifdef CONFIG_SMP
          chip->irq_set_affinity = ir_ioapic_set_affinity;
  +#ifdef CONFIG_IPIPE
! +       chip->irq_move = move_xxapic_irq,
  +#endif
  +#endif
  +#ifdef CONFIG_IPIPE
! +       chip->irq_hold = hold_ioapic_irq,
! +       chip->irq_release = release_ioapic_irq,
   #endif
   }
   #endif /* CONFIG_IRQ_REMAP */
--- 1751,1762 ----
   #ifdef CONFIG_SMP
          chip->irq_set_affinity = ir_ioapic_set_affinity;
  +#ifdef CONFIG_IPIPE
! +       chip->irq_move = move_xxapic_irq;
  +#endif
  +#endif
  +#ifdef CONFIG_IPIPE
! +       chip->irq_hold = hold_ioapic_irq;
! +       chip->irq_release = release_ioapic_irq;
   #endif
   }
   #endif /* CONFIG_IRQ_REMAP */

Steve

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

end of thread, other threads:[~2012-12-28 18:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-08 11:00 [Xenomai] Kernel compilation error due to Adeos patch error in 'io_apic.c' Stephen Bryant
2012-12-27 19:06 ` Wim
2012-12-27 19:35   ` Gilles Chanteperdrix
2012-12-27 20:15     ` Philippe Gerum
     [not found]     ` <CAAq7VdD_rrspRMqE8MVfLLnwPi+wOj87QedkdiSAto5YBG76Kw@mail.gmail.com>
2012-12-27 21:42       ` Gilles Chanteperdrix
2012-12-28 16:49         ` Jeff Webb
2012-12-28 18:32         ` Wim Meeussen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.