Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm dust: Make dm_dust_init and dm_dust_exit static

Fix sparse warnings:

drivers/md/dm-dust.c:495:12: warning: symbol 'dm_dust_init' was not declared. Should it be static?
drivers/md/dm-dust.c:505:13: warning: symbol 'dm_dust_exit' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>

authored by

YueHaibing and committed by
Mike Snitzer
9ccce5a0 cacddeab

+2 -2
+2 -2
drivers/md/dm-dust.c
··· 492 492 .prepare_ioctl = dust_prepare_ioctl, 493 493 }; 494 494 495 - int __init dm_dust_init(void) 495 + static int __init dm_dust_init(void) 496 496 { 497 497 int result = dm_register_target(&dust_target); 498 498 ··· 502 502 return result; 503 503 } 504 504 505 - void __exit dm_dust_exit(void) 505 + static void __exit dm_dust_exit(void) 506 506 { 507 507 dm_unregister_target(&dust_target); 508 508 }