mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] completions: lockdep annotate on stack completions
All on stack DECLARE_COMPLETIONs should be replaced by: DECLARE_COMPLETION_ONSTACK Signed-off-by: Peter Zijlstra <[email protected]> Acked-by: Ingo Molnar <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
397d6140e9
commit
6e9a4738c9
24 changed files with 31 additions and 31 deletions
|
|
@ -770,7 +770,7 @@ static void DAC960_P_QueueCommand(DAC960_Command_T *Command)
|
|||
static void DAC960_ExecuteCommand(DAC960_Command_T *Command)
|
||||
{
|
||||
DAC960_Controller_T *Controller = Command->Controller;
|
||||
DECLARE_COMPLETION(Completion);
|
||||
DECLARE_COMPLETION_ONSTACK(Completion);
|
||||
unsigned long flags;
|
||||
Command->Completion = &Completion;
|
||||
|
||||
|
|
|
|||
|
|
@ -879,7 +879,7 @@ static int cciss_ioctl(struct inode *inode, struct file *filep,
|
|||
char *buff = NULL;
|
||||
u64bit temp64;
|
||||
unsigned long flags;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
|
||||
if (!arg)
|
||||
return -EINVAL;
|
||||
|
|
@ -997,7 +997,7 @@ static int cciss_ioctl(struct inode *inode, struct file *filep,
|
|||
BYTE sg_used = 0;
|
||||
int status = 0;
|
||||
int i;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
__u32 left;
|
||||
__u32 sz;
|
||||
BYTE __user *data_ptr;
|
||||
|
|
@ -1816,7 +1816,7 @@ static int sendcmd_withirq(__u8 cmd,
|
|||
u64bit buff_dma_handle;
|
||||
unsigned long flags;
|
||||
int return_status;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
|
||||
if ((c = cmd_alloc(h, 0)) == NULL)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
|
|
@ -766,7 +766,7 @@ cciss_scsi_do_simple_cmd(ctlr_info_t *c,
|
|||
int direction)
|
||||
{
|
||||
unsigned long flags;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
|
||||
cp->cmd_type = CMD_IOCTL_PEND; // treat this like an ioctl
|
||||
cp->scsi_cmd = NULL;
|
||||
|
|
|
|||
|
|
@ -713,7 +713,7 @@ static void do_pd_request(request_queue_t * q)
|
|||
static int pd_special_command(struct pd_unit *disk,
|
||||
enum action (*func)(struct pd_unit *disk))
|
||||
{
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
struct request rq;
|
||||
int err = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ static int pkt_generic_packet(struct pktcdvd_device *pd, struct packet_command *
|
|||
char sense[SCSI_SENSE_BUFFERSIZE];
|
||||
request_queue_t *q;
|
||||
struct request *rq;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
int err = 0;
|
||||
|
||||
q = bdev_get_queue(pd->bdev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue