[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>
This commit is contained in:
parent
3d63d3b4fb
commit
51780d2c38
|
@ -45,8 +45,8 @@ static char *init_device;
|
||||||
module_param_named(device, init_device, charp, 0400);
|
module_param_named(device, init_device, charp, 0400);
|
||||||
MODULE_PARM_DESC(device, "specify initial device");
|
MODULE_PARM_DESC(device, "specify initial device");
|
||||||
|
|
||||||
static struct kmem_cache *zfcp_cache_hw_align(const char *name,
|
static struct kmem_cache * __init zfcp_cache_hw_align(const char *name,
|
||||||
unsigned long size)
|
unsigned long size)
|
||||||
{
|
{
|
||||||
return kmem_cache_create(name, size, roundup_pow_of_two(size), 0, NULL);
|
return kmem_cache_create(name, size, roundup_pow_of_two(size), 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue