On Sat, 2011-12-17 at 14:28 +0000, Thorsten Glaser wrote: > Ben Hutchings dixit: > > >why other architectures get away with it. Maybe they just don't use > >pr_*() in headers. > > Maybe something like this? > > #define ack_bad_irq(irq) do { \ > pr_crit("unexpected IRQ trap at vector %02x\n", \ > (unsigned int)(irq)); \ > } while (/* CONSTCOND */ 0) > > This would defer pr_crit expansion to when the static inline > function was actually used.
No, I don't think this is a bug in the header. Ben. -- Ben Hutchings Computers are not intelligent. They only think they are.
signature.asc
Description: This is a digitally signed message part