diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-09-24 21:55:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-24 23:07:49 -0400 |
commit | 3cc27547d6ee2d50ecdd11e9127bc3cd1947e8dd (patch) | |
tree | d70857f363fea3f8bc928bd2fd10d9a277c119bd /drivers/scsi | |
parent | 855fc73bf81e8f99606d6f5914c5b7c3b079d718 (diff) |
[PATCH] SCSI gfp_t annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx.h | 2 | ||||
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_hwi.c | 8 | ||||
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_hwi.h | 6 | ||||
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_task.c | 10 | ||||
-rw-r--r-- | drivers/scsi/libsas/sas_scsi_host.c | 2 |
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx.h b/drivers/scsi/aic94xx/aic94xx.h index 1bd5b4ecf3d5..71a031df7a34 100644 --- a/drivers/scsi/aic94xx/aic94xx.h +++ b/drivers/scsi/aic94xx/aic94xx.h | |||
@@ -94,7 +94,7 @@ void asd_dev_gone(struct domain_device *dev); | |||
94 | 94 | ||
95 | void asd_invalidate_edb(struct asd_ascb *ascb, int edb_id); | 95 | void asd_invalidate_edb(struct asd_ascb *ascb, int edb_id); |
96 | 96 | ||
97 | int asd_execute_task(struct sas_task *, int num, unsigned long gfp_flags); | 97 | int asd_execute_task(struct sas_task *, int num, gfp_t gfp_flags); |
98 | 98 | ||
99 | /* ---------- TMFs ---------- */ | 99 | /* ---------- TMFs ---------- */ |
100 | int asd_abort_task(struct sas_task *); | 100 | int asd_abort_task(struct sas_task *); |
diff --git a/drivers/scsi/aic94xx/aic94xx_hwi.c b/drivers/scsi/aic94xx/aic94xx_hwi.c index a24201351108..1d8c5e5f442e 100644 --- a/drivers/scsi/aic94xx/aic94xx_hwi.c +++ b/drivers/scsi/aic94xx/aic94xx_hwi.c | |||
@@ -267,7 +267,7 @@ static int asd_init_dl(struct asd_ha_struct *asd_ha) | |||
267 | 267 | ||
268 | /* ---------- EDB and ESCB init ---------- */ | 268 | /* ---------- EDB and ESCB init ---------- */ |
269 | 269 | ||
270 | static int asd_alloc_edbs(struct asd_ha_struct *asd_ha, unsigned int gfp_flags) | 270 | static int asd_alloc_edbs(struct asd_ha_struct *asd_ha, gfp_t gfp_flags) |
271 | { | 271 | { |
272 | struct asd_seq_data *seq = &asd_ha->seq; | 272 | struct asd_seq_data *seq = &asd_ha->seq; |
273 | int i; | 273 | int i; |
@@ -298,7 +298,7 @@ Err_unroll: | |||
298 | } | 298 | } |
299 | 299 | ||
300 | static int asd_alloc_escbs(struct asd_ha_struct *asd_ha, | 300 | static int asd_alloc_escbs(struct asd_ha_struct *asd_ha, |
301 | unsigned int gfp_flags) | 301 | gfp_t gfp_flags) |
302 | { | 302 | { |
303 | struct asd_seq_data *seq = &asd_ha->seq; | 303 | struct asd_seq_data *seq = &asd_ha->seq; |
304 | struct asd_ascb *escb; | 304 | struct asd_ascb *escb; |
@@ -1028,7 +1028,7 @@ irqreturn_t asd_hw_isr(int irq, void *dev_id, struct pt_regs *regs) | |||
1028 | /* ---------- SCB handling ---------- */ | 1028 | /* ---------- SCB handling ---------- */ |
1029 | 1029 | ||
1030 | static inline struct asd_ascb *asd_ascb_alloc(struct asd_ha_struct *asd_ha, | 1030 | static inline struct asd_ascb *asd_ascb_alloc(struct asd_ha_struct *asd_ha, |
1031 | unsigned int gfp_flags) | 1031 | gfp_t gfp_flags) |
1032 | { | 1032 | { |
1033 | extern kmem_cache_t *asd_ascb_cache; | 1033 | extern kmem_cache_t *asd_ascb_cache; |
1034 | struct asd_seq_data *seq = &asd_ha->seq; | 1034 | struct asd_seq_data *seq = &asd_ha->seq; |
@@ -1086,7 +1086,7 @@ undo: | |||
1086 | */ | 1086 | */ |
1087 | struct asd_ascb *asd_ascb_alloc_list(struct asd_ha_struct | 1087 | struct asd_ascb *asd_ascb_alloc_list(struct asd_ha_struct |
1088 | *asd_ha, int *num, | 1088 | *asd_ha, int *num, |
1089 | unsigned int gfp_flags) | 1089 | gfp_t gfp_flags) |
1090 | { | 1090 | { |
1091 | struct asd_ascb *first = NULL; | 1091 | struct asd_ascb *first = NULL; |
1092 | 1092 | ||
diff --git a/drivers/scsi/aic94xx/aic94xx_hwi.h b/drivers/scsi/aic94xx/aic94xx_hwi.h index c7d505388fed..8498144aa5e1 100644 --- a/drivers/scsi/aic94xx/aic94xx_hwi.h +++ b/drivers/scsi/aic94xx/aic94xx_hwi.h | |||
@@ -242,7 +242,7 @@ struct asd_ha_struct { | |||
242 | 242 | ||
243 | /* ---------- DMA allocs ---------- */ | 243 | /* ---------- DMA allocs ---------- */ |
244 | 244 | ||
245 | static inline struct asd_dma_tok *asd_dmatok_alloc(unsigned int flags) | 245 | static inline struct asd_dma_tok *asd_dmatok_alloc(gfp_t flags) |
246 | { | 246 | { |
247 | return kmem_cache_alloc(asd_dma_token_cache, flags); | 247 | return kmem_cache_alloc(asd_dma_token_cache, flags); |
248 | } | 248 | } |
@@ -254,7 +254,7 @@ static inline void asd_dmatok_free(struct asd_dma_tok *token) | |||
254 | 254 | ||
255 | static inline struct asd_dma_tok *asd_alloc_coherent(struct asd_ha_struct * | 255 | static inline struct asd_dma_tok *asd_alloc_coherent(struct asd_ha_struct * |
256 | asd_ha, size_t size, | 256 | asd_ha, size_t size, |
257 | unsigned int flags) | 257 | gfp_t flags) |
258 | { | 258 | { |
259 | struct asd_dma_tok *token = asd_dmatok_alloc(flags); | 259 | struct asd_dma_tok *token = asd_dmatok_alloc(flags); |
260 | if (token) { | 260 | if (token) { |
@@ -376,7 +376,7 @@ irqreturn_t asd_hw_isr(int irq, void *dev_id, struct pt_regs *regs); | |||
376 | 376 | ||
377 | struct asd_ascb *asd_ascb_alloc_list(struct asd_ha_struct | 377 | struct asd_ascb *asd_ascb_alloc_list(struct asd_ha_struct |
378 | *asd_ha, int *num, | 378 | *asd_ha, int *num, |
379 | unsigned int gfp_mask); | 379 | gfp_t gfp_mask); |
380 | 380 | ||
381 | int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb, | 381 | int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb, |
382 | int num); | 382 | int num); |
diff --git a/drivers/scsi/aic94xx/aic94xx_task.c b/drivers/scsi/aic94xx/aic94xx_task.c index 285e70dae933..d202ed5a6709 100644 --- a/drivers/scsi/aic94xx/aic94xx_task.c +++ b/drivers/scsi/aic94xx/aic94xx_task.c | |||
@@ -53,7 +53,7 @@ static const u8 data_dir_flags[] = { | |||
53 | 53 | ||
54 | static inline int asd_map_scatterlist(struct sas_task *task, | 54 | static inline int asd_map_scatterlist(struct sas_task *task, |
55 | struct sg_el *sg_arr, | 55 | struct sg_el *sg_arr, |
56 | unsigned long gfp_flags) | 56 | gfp_t gfp_flags) |
57 | { | 57 | { |
58 | struct asd_ascb *ascb = task->lldd_task; | 58 | struct asd_ascb *ascb = task->lldd_task; |
59 | struct asd_ha_struct *asd_ha = ascb->ha; | 59 | struct asd_ha_struct *asd_ha = ascb->ha; |
@@ -368,7 +368,7 @@ Again: | |||
368 | /* ---------- ATA ---------- */ | 368 | /* ---------- ATA ---------- */ |
369 | 369 | ||
370 | static int asd_build_ata_ascb(struct asd_ascb *ascb, struct sas_task *task, | 370 | static int asd_build_ata_ascb(struct asd_ascb *ascb, struct sas_task *task, |
371 | unsigned long gfp_flags) | 371 | gfp_t gfp_flags) |
372 | { | 372 | { |
373 | struct domain_device *dev = task->dev; | 373 | struct domain_device *dev = task->dev; |
374 | struct scb *scb; | 374 | struct scb *scb; |
@@ -437,7 +437,7 @@ static void asd_unbuild_ata_ascb(struct asd_ascb *a) | |||
437 | /* ---------- SMP ---------- */ | 437 | /* ---------- SMP ---------- */ |
438 | 438 | ||
439 | static int asd_build_smp_ascb(struct asd_ascb *ascb, struct sas_task *task, | 439 | static int asd_build_smp_ascb(struct asd_ascb *ascb, struct sas_task *task, |
440 | unsigned long gfp_flags) | 440 | gfp_t gfp_flags) |
441 | { | 441 | { |
442 | struct asd_ha_struct *asd_ha = ascb->ha; | 442 | struct asd_ha_struct *asd_ha = ascb->ha; |
443 | struct domain_device *dev = task->dev; | 443 | struct domain_device *dev = task->dev; |
@@ -487,7 +487,7 @@ static void asd_unbuild_smp_ascb(struct asd_ascb *a) | |||
487 | /* ---------- SSP ---------- */ | 487 | /* ---------- SSP ---------- */ |
488 | 488 | ||
489 | static int asd_build_ssp_ascb(struct asd_ascb *ascb, struct sas_task *task, | 489 | static int asd_build_ssp_ascb(struct asd_ascb *ascb, struct sas_task *task, |
490 | unsigned long gfp_flags) | 490 | gfp_t gfp_flags) |
491 | { | 491 | { |
492 | struct domain_device *dev = task->dev; | 492 | struct domain_device *dev = task->dev; |
493 | struct scb *scb; | 493 | struct scb *scb; |
@@ -550,7 +550,7 @@ static inline int asd_can_queue(struct asd_ha_struct *asd_ha, int num) | |||
550 | } | 550 | } |
551 | 551 | ||
552 | int asd_execute_task(struct sas_task *task, const int num, | 552 | int asd_execute_task(struct sas_task *task, const int num, |
553 | unsigned long gfp_flags) | 553 | gfp_t gfp_flags) |
554 | { | 554 | { |
555 | int res = 0; | 555 | int res = 0; |
556 | LIST_HEAD(alist); | 556 | LIST_HEAD(alist); |
diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 43e0e4e36934..7f9e89bcac7e 100644 --- a/drivers/scsi/libsas/sas_scsi_host.c +++ b/drivers/scsi/libsas/sas_scsi_host.c | |||
@@ -134,7 +134,7 @@ static enum task_attribute sas_scsi_get_task_attr(struct scsi_cmnd *cmd) | |||
134 | 134 | ||
135 | static struct sas_task *sas_create_task(struct scsi_cmnd *cmd, | 135 | static struct sas_task *sas_create_task(struct scsi_cmnd *cmd, |
136 | struct domain_device *dev, | 136 | struct domain_device *dev, |
137 | unsigned long gfp_flags) | 137 | gfp_t gfp_flags) |
138 | { | 138 | { |
139 | struct sas_task *task = sas_alloc_task(gfp_flags); | 139 | struct sas_task *task = sas_alloc_task(gfp_flags); |
140 | struct scsi_lun lun; | 140 | struct scsi_lun lun; |