From: Christof Schmitt Date: Thu, 2 Dec 2010 14:16:18 +0000 (+0100) Subject: [SCSI] zfcp: Add __init declaration to zfcp_cache_hw_align X-Git-Tag: v2.6.38-rc1~27^2~45 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=51780d2c38a7294c2c302ae9d2ea517bd4153dec;p=karo-tx-linux.git [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 Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley --- diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index 352ca0d4ca25..51c666fb67a4 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c @@ -45,8 +45,8 @@ static char *init_device; module_param_named(device, init_device, charp, 0400); MODULE_PARM_DESC(device, "specify initial device"); -static struct kmem_cache *zfcp_cache_hw_align(const char *name, - unsigned long size) +static struct kmem_cache * __init zfcp_cache_hw_align(const char *name, + unsigned long size) { return kmem_cache_create(name, size, roundup_pow_of_two(size), 0, NULL); }