OrangePi_CM5/drivers/char
Randy Dunlap c69b442125 virtio_console: eliminate anonymous module_init & module_exit
[ Upstream commit fefb8a2a941338d871e2d83fbd65fbfa068857bd ]

Eliminate anonymous module_init() and module_exit(), which can lead to
confusion or ambiguity when reading System.map, crashes/oops/bugs,
or an initcall_debug log.

Give each of these init and exit functions unique driver-specific
names to eliminate the anonymous names.

Example 1: (System.map)
 ffffffff832fc78c t init
 ffffffff832fc79e t init
 ffffffff832fc8f8 t init

Example 2: (initcall_debug log)
 calling  init+0x0/0x12 @ 1
 initcall init+0x0/0x12 returned 0 after 15 usecs
 calling  init+0x0/0x60 @ 1
 initcall init+0x0/0x60 returned 0 after 2 usecs
 calling  init+0x0/0x9a @ 1
 initcall init+0x0/0x9a returned 0 after 74 usecs

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Amit Shah <amit@kernel.org>
Cc: virtualization@lists.linux-foundation.org
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20220316192010.19001-3-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 21:01:02 +02:00
..
agp parisc/agp: Annotate parisc agp init functions with __init 2021-12-17 10:14:40 +01:00
hw_random hwrng: nomadik - Change clk_disable to clk_disable_unprepare 2022-04-08 14:40:02 +02:00
ipmi ipmi: fix initialization when workqueue allocation fails 2021-12-29 12:26:01 +01:00
mwave char/mwave: Adjust io port register size 2022-01-27 10:54:06 +01:00
pcmcia char: pcmcia: error out if 'num_bytes_read' is greater than 4 in set_protocol() 2021-07-14 16:56:39 +02:00
tpm tpm: fix reference counting for struct tpm_chip 2022-04-08 14:39:48 +02:00
xilinx_hwicap
…
xillybus
…
Kconfig
…
Makefile
…
adi.c
…
apm-emulation.c
…
applicom.c
…
applicom.h
…
bsr.c
…
ds1620.c
…
dsp56k.c
…
dtlk.c
…
hangcheck-timer.c
…
hpet.c
…
lp.c
…
mem.c
…
misc.c
…
mspec.c
…
nsc_gpio.c
…
nvram.c
…
nwbutton.c
…
nwbutton.h
…
nwflash.c
…
pc8736x_gpio.c
…
powernv-op-panel.c
…
ppdev.c
…
ps3flash.c
…
random.c random: wake up /dev/random writers after zap 2022-02-23 12:01:00 +01:00
raw.c
…
scx200_gpio.c
…
sonypi.c
…
tb0219.c
…
tlclk.c
…
toshiba.c
…
ttyprintk.c
…
uv_mmtimer.c
…
virtio_console.c virtio_console: eliminate anonymous module_init & module_exit 2022-04-13 21:01:02 +02:00