RE: [PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2013-10-31 Thread R, Sricharan
; robherri...@gmail.com; Shilimkar, Santosh; Rob Herring Subject: Re: [PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP On Wed, 30 Oct 2013, Sricharan R wrote: > +static inline const u32 allocate_free_irq(int cb_no) I understand the "static inline" part, but "

Re: [PATCH V2 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2013-10-30 Thread Thomas Gleixner
On Wed, 30 Oct 2013, Sricharan R wrote: > +static inline const u32 allocate_free_irq(int cb_no) I understand the "static inline" part, but "const u32" is more than fishy. What's wrong with "static inline int" ? > +{ > + int i; > + > + for (i = 0; i < cb->int_max; i++) { > + if