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

[SCSI] zfcp: Add __init declaration to zfcp_cache_hw_align

The function zfcp_cache_hw_align is only called from zfcp_module_init,
so it should be declared with __init as well.

Reviewed-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Christof Schmitt and committed by
James Bottomley
51780d2c 3d63d3b4

+2 -2
+2 -2
drivers/s390/scsi/zfcp_aux.c
··· 45 45 module_param_named(device, init_device, charp, 0400); 46 46 MODULE_PARM_DESC(device, "specify initial device"); 47 47 48 - static struct kmem_cache *zfcp_cache_hw_align(const char *name, 49 - unsigned long size) 48 + static struct kmem_cache * __init zfcp_cache_hw_align(const char *name, 49 + unsigned long size) 50 50 { 51 51 return kmem_cache_create(name, size, roundup_pow_of_two(size), 0, NULL); 52 52 }