alistair23-linux/drivers/ide
Julia Lawall 40506d4022 cmd640: 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:

0000000000000000 l     F .text.unlikely 00000000000000e4 cmd640x_init_one

And after the change it is as follows:

00000000000000d2 l     F .init.text	00000000000000df cmd640x_init_one

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: David S. Miller <davem@davemloft.net>
2016-07-26 15:25:30 -07:00
..
aec62xx.c
ali14xx.c
alim15x3.c
amd74xx.c
atiixp.c
au1xxx-ide.c
buddha.c
cmd64x.c
cmd640.c cmd640: add __init attribute 2016-07-26 15:25:30 -07:00
cs5520.c ide: remove deprecated use of pci api 2015-04-17 15:32:07 -04:00
cs5530.c
cs5535.c
cs5536.c
cy82c693.c
delkin_cb.c
dtc2278.c
falconide.c
gayle.c
hpt366.c ide: hpt366: convert to use match_string() helper 2016-03-17 15:09:34 -07:00
ht6560b.c
icside.c ide: icside: remove incorrect initconst annotation 2016-03-20 16:59:27 -04:00
ide-4drives.c
ide-acpi.c
ide-atapi.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-cd.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-cd.h
ide-cd_ioctl.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-cd_verbose.c
ide-cs.c
ide-devsets.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-disk.c ide-disk: update to using blk_queue_write_cache() 2016-04-12 16:00:39 -06:00
ide-disk.h
ide-disk_ioctl.c
ide-disk_proc.c
ide-dma-sff.c
ide-dma.c
ide-eh.c block: move PM request support to IDE 2015-05-05 13:40:42 -06:00
ide-floppy.c block: move REQ_TYPE_SENSE to the ide driver 2015-05-05 13:40:07 -06:00
ide-floppy.h
ide-floppy_ioctl.c
ide-floppy_proc.c
ide-gd.c
ide-gd.h
ide-generic.c
ide-io-std.c
ide-io.c block: move PM request support to IDE 2015-05-05 13:40:42 -06:00
ide-ioctls.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-iops.c
ide-legacy.c
ide-lib.c ide,ata: Rename ATA_IDX to ATA_SENSE 2015-03-27 11:59:22 -04:00
ide-park.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-pci-generic.c
ide-pio-blacklist.c
ide-pm.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-pnp.c PNP: ide/ide-pnp: Use module_pnp_driver to register driver 2015-03-18 22:39:17 +01:00
ide-probe.c ide,ata: Rename ATA_IDX to ATA_SENSE 2015-03-27 11:59:22 -04:00
ide-proc.c
ide-scan-pci.c drivers/ide: make ide-scan-pci.c driver explicitly non-modular 2016-01-18 14:12:33 -05:00
ide-sysfs.c
ide-tape.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-taskfile.c mm, page_alloc: rename __GFP_WAIT to __GFP_RECLAIM 2015-11-06 17:50:42 -08:00
ide-timings.c
ide-xfer-mode.c
ide.c ide: silence some underflow warnings 2016-01-18 14:12:33 -05:00
ide_platform.c
it821x.c ide: constify ide_dma_ops structures 2016-01-18 14:12:33 -05:00
it8172.c
it8213.c
jmicron.c
Kconfig Remove celleb-only SCC PATA drivers 2015-04-14 13:07:17 -04:00
macide.c
Makefile Remove celleb-only SCC PATA drivers 2015-04-14 13:07:17 -04:00
ns87415.c
opti621.c
palm_bk3710.c ide: palm_bk3710: test clock rate to avoid division by 0 2016-03-20 16:59:27 -04:00
pdc202xx_new.c PCI: Remove includes of asm/pci-bridge.h 2016-02-05 16:29:28 -06:00
pdc202xx_old.c
piix.c
pmac.c PCI: Remove includes of asm/pci-bridge.h 2016-02-05 16:29:28 -06:00
q40ide.c
qd65xx.c
qd65xx.h
rapide.c
rz1000.c
sc1200.c
serverworks.c
setup-pci.c ide: remove deprecated use of pci api 2015-04-17 15:32:07 -04:00
sgiioc4.c ide: remove deprecated use of pci api 2015-04-17 15:32:07 -04:00
siimage.c
sis5513.c
sl82c105.c
slc90e66.c
tc86c001.c
triflex.c
trm290.c ide: constify ide_dma_ops structures 2016-01-18 14:12:33 -05:00
tx4938ide.c
tx4939ide.c
umc8672.c
via82cxxx.c