Skip to content

Commit

Permalink
[PATCH] SCSI gfp_t annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Sep 25, 2006
1 parent 855fc73 commit 3cc2754
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/aic94xx/aic94xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void asd_dev_gone(struct domain_device *dev);

void asd_invalidate_edb(struct asd_ascb *ascb, int edb_id);

int asd_execute_task(struct sas_task *, int num, unsigned long gfp_flags);
int asd_execute_task(struct sas_task *, int num, gfp_t gfp_flags);

/* ---------- TMFs ---------- */
int asd_abort_task(struct sas_task *);
Expand Down
8 changes: 4 additions & 4 deletions drivers/scsi/aic94xx/aic94xx_hwi.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static int asd_init_dl(struct asd_ha_struct *asd_ha)

/* ---------- EDB and ESCB init ---------- */

static int asd_alloc_edbs(struct asd_ha_struct *asd_ha, unsigned int gfp_flags)
static int asd_alloc_edbs(struct asd_ha_struct *asd_ha, gfp_t gfp_flags)
{
struct asd_seq_data *seq = &asd_ha->seq;
int i;
Expand Down Expand Up @@ -298,7 +298,7 @@ static int asd_alloc_edbs(struct asd_ha_struct *asd_ha, unsigned int gfp_flags)
}

static int asd_alloc_escbs(struct asd_ha_struct *asd_ha,
unsigned int gfp_flags)
gfp_t gfp_flags)
{
struct asd_seq_data *seq = &asd_ha->seq;
struct asd_ascb *escb;
Expand Down Expand Up @@ -1028,7 +1028,7 @@ irqreturn_t asd_hw_isr(int irq, void *dev_id, struct pt_regs *regs)
/* ---------- SCB handling ---------- */

static inline struct asd_ascb *asd_ascb_alloc(struct asd_ha_struct *asd_ha,
unsigned int gfp_flags)
gfp_t gfp_flags)
{
extern kmem_cache_t *asd_ascb_cache;
struct asd_seq_data *seq = &asd_ha->seq;
Expand Down Expand Up @@ -1086,7 +1086,7 @@ static inline struct asd_ascb *asd_ascb_alloc(struct asd_ha_struct *asd_ha,
*/
struct asd_ascb *asd_ascb_alloc_list(struct asd_ha_struct
*asd_ha, int *num,
unsigned int gfp_flags)
gfp_t gfp_flags)
{
struct asd_ascb *first = NULL;

Expand Down
6 changes: 3 additions & 3 deletions drivers/scsi/aic94xx/aic94xx_hwi.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ struct asd_ha_struct {

/* ---------- DMA allocs ---------- */

static inline struct asd_dma_tok *asd_dmatok_alloc(unsigned int flags)
static inline struct asd_dma_tok *asd_dmatok_alloc(gfp_t flags)
{
return kmem_cache_alloc(asd_dma_token_cache, flags);
}
Expand All @@ -254,7 +254,7 @@ static inline void asd_dmatok_free(struct asd_dma_tok *token)

static inline struct asd_dma_tok *asd_alloc_coherent(struct asd_ha_struct *
asd_ha, size_t size,
unsigned int flags)
gfp_t flags)
{
struct asd_dma_tok *token = asd_dmatok_alloc(flags);
if (token) {
Expand Down Expand Up @@ -376,7 +376,7 @@ irqreturn_t asd_hw_isr(int irq, void *dev_id, struct pt_regs *regs);

struct asd_ascb *asd_ascb_alloc_list(struct asd_ha_struct
*asd_ha, int *num,
unsigned int gfp_mask);
gfp_t gfp_mask);

int asd_post_ascb_list(struct asd_ha_struct *asd_ha, struct asd_ascb *ascb,
int num);
Expand Down
10 changes: 5 additions & 5 deletions drivers/scsi/aic94xx/aic94xx_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static const u8 data_dir_flags[] = {

static inline int asd_map_scatterlist(struct sas_task *task,
struct sg_el *sg_arr,
unsigned long gfp_flags)
gfp_t gfp_flags)
{
struct asd_ascb *ascb = task->lldd_task;
struct asd_ha_struct *asd_ha = ascb->ha;
Expand Down Expand Up @@ -368,7 +368,7 @@ static void asd_task_tasklet_complete(struct asd_ascb *ascb,
/* ---------- ATA ---------- */

static int asd_build_ata_ascb(struct asd_ascb *ascb, struct sas_task *task,
unsigned long gfp_flags)
gfp_t gfp_flags)
{
struct domain_device *dev = task->dev;
struct scb *scb;
Expand Down Expand Up @@ -437,7 +437,7 @@ static void asd_unbuild_ata_ascb(struct asd_ascb *a)
/* ---------- SMP ---------- */

static int asd_build_smp_ascb(struct asd_ascb *ascb, struct sas_task *task,
unsigned long gfp_flags)
gfp_t gfp_flags)
{
struct asd_ha_struct *asd_ha = ascb->ha;
struct domain_device *dev = task->dev;
Expand Down Expand Up @@ -487,7 +487,7 @@ static void asd_unbuild_smp_ascb(struct asd_ascb *a)
/* ---------- SSP ---------- */

static int asd_build_ssp_ascb(struct asd_ascb *ascb, struct sas_task *task,
unsigned long gfp_flags)
gfp_t gfp_flags)
{
struct domain_device *dev = task->dev;
struct scb *scb;
Expand Down Expand Up @@ -550,7 +550,7 @@ static inline int asd_can_queue(struct asd_ha_struct *asd_ha, int num)
}

int asd_execute_task(struct sas_task *task, const int num,
unsigned long gfp_flags)
gfp_t gfp_flags)
{
int res = 0;
LIST_HEAD(alist);
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/libsas/sas_scsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static enum task_attribute sas_scsi_get_task_attr(struct scsi_cmnd *cmd)

static struct sas_task *sas_create_task(struct scsi_cmnd *cmd,
struct domain_device *dev,
unsigned long gfp_flags)
gfp_t gfp_flags)
{
struct sas_task *task = sas_alloc_task(gfp_flags);
struct scsi_lun lun;
Expand Down
4 changes: 2 additions & 2 deletions include/scsi/libsas.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ struct sas_task {
#define SAS_TASK_STATE_DONE 2
#define SAS_TASK_STATE_ABORTED 4

static inline struct sas_task *sas_alloc_task(unsigned long flags)
static inline struct sas_task *sas_alloc_task(gfp_t flags)
{
extern kmem_cache_t *sas_task_cache;
struct sas_task *task = kmem_cache_alloc(sas_task_cache, flags);
Expand Down Expand Up @@ -570,7 +570,7 @@ struct sas_domain_function_template {
void (*lldd_dev_gone)(struct domain_device *);

int (*lldd_execute_task)(struct sas_task *, int num,
unsigned long gfp_flags);
gfp_t gfp_flags);

/* Task Management Functions. Must be called from process context. */
int (*lldd_abort_task)(struct sas_task *);
Expand Down

0 comments on commit 3cc2754

Please sign in to comment.