linux/drivers/mtd/devices
Julia Lawall abbbc60a0c mtd: pmc551: add __init attribute
Add __init attribute on a function that is only called from other __init
functions and that is not inlined, at least with gcc version 4.8.4 on an
x86 machine with allyesconfig.  Currently, the function is put in the
.text.unlikely segment.  Declaring it as __init will cause it to be put in
the .init.text and to disappear after initialization.

The result of objdump -x on the function before the change is as follows:

00000000000000c6 l     F .text.unlikely 000000000000091c fixup_pmc551

And after the change it is as follows:

0000000000000000 l     F .init.text	0000000000000917 fixup_pmc551

Done with the help of Coccinelle.  The semantic patch checks for local
static non-init functions that are called from an __init function and are
not called from any other function.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2016-04-26 00:18:29 -06:00
..
bcm47xxsflash.c mtd: bcm47xxsflash: use ioremap_cache() instead of KSEG0ADDR() 2016-04-04 00:07:57 -07:00
bcm47xxsflash.h mtd: bcm47xxsflash: use ioremap_cache() instead of KSEG0ADDR() 2016-04-04 00:07:57 -07:00
block2mtd.c
docg3.c mtd: kill the ecclayout->oobavail field 2016-03-07 16:23:09 -08:00
docg3.h
Kconfig
lart.c
m25p80.c mtd: devices: m25p80: add support for mmap read request 2016-04-05 11:06:57 -07:00
Makefile
ms02-nv.c
ms02-nv.h
mtd_dataflash.c Linux 4.4-rc1 2015-11-15 20:31:29 -08:00
mtdram.c mtd: mtdram: Add parameter for setting writebuf size 2016-03-07 13:06:27 -08:00
phram.c
pmc551.c mtd: pmc551: add __init attribute 2016-04-26 00:18:29 -06:00
powernv_flash.c
serial_flash_cmds.h
slram.c
spear_smi.c mtd: drop unnecessary partition parser data 2015-11-11 13:58:59 -08:00
sst25l.c MTD updates for 4.4-rc1: 2015-11-06 11:50:24 -08:00
st_spi_fsm.c mtd: drop unnecessary partition parser data 2015-11-11 13:58:59 -08:00