From b67c05a9743914d8351d489ec0b1cc020a63739c Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 29 Mar 2013 01:22:04 +0000 Subject: [PATCH] Apparently sparse does not accept ifdef-ing macro arguments. It reports the following error message for that construct: scst/src/scst_main.c: error: directive in argument list Make it again possible to verify the SCST source code with sparse. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4830 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 813dc75ee..fa444eead 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -2305,21 +2305,20 @@ static int __init init_scst(void) INIT_CACHEP(scst_aen_cachep, scst_aen, out_destroy_sense_cache); /* read-mostly */ INIT_CACHEP_ALIGN(scst_cmd_cachep, scst_cmd, out_destroy_aen_cache); #ifdef CONFIG_SCST_MEASURE_LATENCY - INIT_CACHEP_ALIGN( + INIT_CACHEP_ALIGN(scst_sess_cachep, scst_session, + out_destroy_cmd_cache); #else /* Big enough with read-mostly head and tail */ - INIT_CACHEP( + INIT_CACHEP(scst_sess_cachep, scst_session, out_destroy_cmd_cache); #endif - scst_sess_cachep, scst_session, out_destroy_cmd_cache); INIT_CACHEP(scst_dev_cachep, scst_device, out_destroy_sess_cache); /* big enough */ INIT_CACHEP(scst_tgt_cachep, scst_tgt, out_destroy_dev_cache); /* read-mostly */ #ifdef CONFIG_SCST_MEASURE_LATENCY - INIT_CACHEP_ALIGN( + INIT_CACHEP_ALIGN(scst_tgtd_cachep, scst_tgt_dev, out_destroy_tgt_cache); /* big enough */ #else /* Big enough with read-mostly head and tail */ - INIT_CACHEP( + INIT_CACHEP(scst_tgtd_cachep, scst_tgt_dev, out_destroy_tgt_cache); /* big enough */ #endif - scst_tgtd_cachep, scst_tgt_dev, out_destroy_tgt_cache); /* big enough */ INIT_CACHEP(scst_acgd_cachep, scst_acg_dev, out_destroy_tgtd_cache); /* read-mostly */ scst_mgmt_mempool = mempool_create(64, mempool_alloc_slab,