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:
Bart Van Assche
2011-04-02 17:53:21 +00:00
parent 0921e9c1da
commit 7da4f389c7
6 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}

View File

@@ -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;
}