mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
Fixed several recently introduced compiler warnings.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3343 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -83,7 +83,7 @@ static int cdrom_attach(struct scst_device *dev)
|
||||
|
||||
params = kzalloc(sizeof(*params), GFP_KERNEL);
|
||||
if (params == NULL) {
|
||||
PRINT_ERROR("Unable to allocate struct cdrom_params (size %d)",
|
||||
PRINT_ERROR("Unable to allocate struct cdrom_params (size %zd)",
|
||||
sizeof(*params));
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
|
||||
@@ -181,7 +181,7 @@ static int disk_attach(struct scst_device *dev)
|
||||
|
||||
params = kzalloc(sizeof(*params), GFP_KERNEL);
|
||||
if (params == NULL) {
|
||||
PRINT_ERROR("Unable to allocate struct disk_params (size %d)",
|
||||
PRINT_ERROR("Unable to allocate struct disk_params (size %zd)",
|
||||
sizeof(*params));
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
|
||||
@@ -168,7 +168,7 @@ static int modisk_attach(struct scst_device *dev)
|
||||
|
||||
params = kzalloc(sizeof(*params), GFP_KERNEL);
|
||||
if (params == NULL) {
|
||||
PRINT_ERROR("Unable to allocate struct modisk_params (size %d)",
|
||||
PRINT_ERROR("Unable to allocate struct modisk_params (size %zd)",
|
||||
sizeof(*params));
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
|
||||
@@ -171,7 +171,7 @@ static int tape_attach(struct scst_device *dev)
|
||||
|
||||
params = kzalloc(sizeof(*params), GFP_KERNEL);
|
||||
if (params == NULL) {
|
||||
PRINT_ERROR("Unable to allocate struct tape_params (size %d)",
|
||||
PRINT_ERROR("Unable to allocate struct tape_params (size %zd)",
|
||||
sizeof(*params));
|
||||
res = -ENOMEM;
|
||||
goto out;
|
||||
|
||||
@@ -842,8 +842,8 @@ static struct scst_vdisk_thr *vdisk_init_thr_data(
|
||||
|
||||
res = kmem_cache_zalloc(vdisk_thr_cachep, gfp_mask);
|
||||
if (res == NULL) {
|
||||
PRINT_ERROR("Unable to allocate struct scst_vdisk_thr (size %d)",
|
||||
sizeof(*res));
|
||||
PRINT_ERROR("Unable to allocate struct scst_vdisk_thr"
|
||||
" (size %zd)", sizeof(*res));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
@@ -1647,7 +1647,7 @@ struct sgv_pool *sgv_pool_create(const char *name,
|
||||
|
||||
pool = kzalloc(sizeof(*pool), GFP_KERNEL);
|
||||
if (pool == NULL) {
|
||||
PRINT_ERROR("Allocation of sgv_pool failed (size %d)",
|
||||
PRINT_ERROR("Allocation of sgv_pool failed (size %zd)",
|
||||
sizeof(*pool));
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user