On Wed, Apr 09, 2008 at 08:50:06PM +0000, Tony Lindgren wrote:
> Hi,
> 
> Thanks for looking through this big set, I'll repost the series
> with your comments fixed.
> 
> Few comments below on what was changed.
> 
> * Russell King - ARM Linux <[EMAIL PROTECTED]> [080407 16:21]:
> > On Tue, Mar 18, 2008 at 04:02:01PM +0200, Tony Lindgren wrote:
> > > diff --git a/arch/arm/mach-omap2/cm.h b/arch/arm/mach-omap2/cm.h
> > > new file mode 100644
> > > index 0000000..f575a87
> > > --- /dev/null
> > > +++ b/arch/arm/mach-omap2/cm.h
> > > @@ -0,0 +1,142 @@
> > > +
> > > +#ifndef __ASSEMBLER__
> > > +/* Clock management global register get/set */
> > > +
> > > +static void __attribute__((unused)) cm_write_reg(u32 val, void __iomem 
> > > *addr)
> > > +{
> > > + pr_debug("cm_write_reg: writing 0x%0x to 0x%0x\n", val, (u32)addr);
> > > +
> > > + __raw_writel(val, addr);
> > > +}
> > > +
> > > +static u32 __attribute__((unused)) cm_read_reg(void __iomem *addr)
> > > +{
> > > + return __raw_readl(addr);
> > > +}
> > > +#endif
> > 
> > Erm, code in a header file?  Make them __inline__ or if you really want
> > to have them as separate functions, put them in a .c file.
> > 
> > Next point - what's the purpose of them.  They're doing nothing (apart
> > from that excess debug statement).
> 
> I've made them __inline__ and removed extra debug stuff from these
> functions.

This should be:

+static inline void cm_write_reg(u32 val, void __iomem *addr)
+{
+       pr_debug("cm_write_reg: writing 0x%0x to 0x%0x\n", val, (u32)addr);
+
+       __raw_writel(val, addr);
+}

IOW, without the __attribute__ mess or using the __inline__.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to