samples: mark {static|__init|__exit} for {init|exit} functions
None of these (init|exit) functions is called from other functions which is outside the kernel module mechanism or kernel itself, so mark them as {static|__init|__exit}. Signed-off-by: Qinghuang Feng <qhfeng.kernel@gmail.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9fe06081ef
commit
7ec7fb3942
@@ -100,7 +100,7 @@ static void sample_probe_async(void)
|
||||
" request_firmware_nowait failed\n");
|
||||
}
|
||||
|
||||
static int sample_init(void)
|
||||
static int __init sample_init(void)
|
||||
{
|
||||
device_initialize(&ghost_device);
|
||||
/* since there is no real hardware insertion I just call the
|
||||
|
Reference in New Issue
Block a user