Re: [PATCH] Make __declare_dbe_table() static

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

 



On Mon, Feb 19, 2007 at 12:58:50AM +0900, Atsushi Nemoto wrote:

> On Sun, 18 Feb 2007 15:54:08 +0000, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote:
> > > Make __declare_dbe_table() static and call it explicitly to ensure not
> > > optimized out.
> > 
> > That's what __attribute_used__ was meant to be used for.
> 
> But we do not need empty __declare_dbe_table() function body (jr ra +
> nop) at all.  If we called it explicitly, compiler will optimized it
> out.  Saves two instructions ;)

_asm__(
"       .section        __dbe_table, \"a\"\n"
"       .previous                       \n");

is even simpler :-)

  Ralf


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux