linux-sg2042/drivers/net/arcnet
Julia Lawall 553bc087ca arcnet: com90xx: 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 00000000000000bf check_mirror

And after the change it is as follows:

0000000000000000 l     F .init.text	00000000000000ba check_mirror

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>
Acked-by: Michael Grzeschik <mgr@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-19 20:17:45 -04:00
..
Kconfig arcnet/com20020: add LEDS_CLASS dependency 2015-11-03 11:29:56 -05:00
Makefile com20020_cs: Move the PCMCIA Arcnet driver 2011-08-27 00:58:44 -07:00
arc-rawmode.c arcnet: arc-rawmode: reorder module functions 2015-09-23 11:23:44 +02:00
arc-rimi.c arcnet: Add com9026.h to standardize COM9026_REG_<foo> 2015-09-23 08:44:27 +02:00
arcdevice.h arcnet: add netif_carrier_on/off for reconnect 2015-10-26 09:10:56 +01:00
arcnet.c arcnet: add netif_carrier_on/off for reconnect 2015-10-26 09:10:56 +01:00
capmode.c arcnet: capmode: remove extra function 2015-09-23 11:23:45 +02:00
com90io.c arcnet: Add com9026.h to standardize COM9026_REG_<foo> 2015-09-23 08:44:27 +02:00
com90xx.c arcnet: com90xx: add __init attribute 2016-04-19 20:17:45 -04:00
com9026.h arcnet: Add com9026.h to standardize COM9026_REG_<foo> 2015-09-23 08:44:27 +02:00
com20020-isa.c arcnet: com20020: Use arcnet_<I/O> routines 2015-09-23 08:44:26 +02:00
com20020-pci.c arcnet: com20020-pci: add led trigger support 2015-10-26 09:10:56 +01:00
com20020.c arcnet: com20020: add enable and disable device on open/close 2015-10-26 09:10:56 +01:00
com20020.h arcnet: com20020-pci: add led trigger support 2015-10-26 09:10:56 +01:00
com20020_cs.c arcnet: com20020: Use arcnet_<I/O> routines 2015-09-23 08:44:26 +02:00
rfc1051.c arcnet: Move files out of include/linux 2015-09-23 08:44:25 +02:00
rfc1201.c arcnet: Move files out of include/linux 2015-09-23 08:44:25 +02:00