mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -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);
|
||||
|
|
|
|||
|
|
@ -2764,7 +2764,7 @@ static void idetape_add_stage_tail (ide_drive_t *drive,idetape_stage_t *stage)
|
|||
*/
|
||||
static void idetape_wait_for_request (ide_drive_t *drive, struct request *rq)
|
||||
{
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
idetape_tape_t *tape = drive->driver_data;
|
||||
|
||||
#if IDETAPE_DEBUG_BUGS
|
||||
|
|
|
|||
|
|
@ -870,7 +870,7 @@ int smu_queue_i2c(struct smu_i2c_cmd *cmd)
|
|||
|
||||
static int smu_read_datablock(u8 *dest, unsigned int addr, unsigned int len)
|
||||
{
|
||||
DECLARE_COMPLETION(comp);
|
||||
DECLARE_COMPLETION_ONSTACK(comp);
|
||||
unsigned int chunk;
|
||||
struct smu_cmd cmd;
|
||||
int rc;
|
||||
|
|
@ -917,7 +917,7 @@ static int smu_read_datablock(u8 *dest, unsigned int addr, unsigned int len)
|
|||
|
||||
static struct smu_sdbp_header *smu_create_sdb_partition(int id)
|
||||
{
|
||||
DECLARE_COMPLETION(comp);
|
||||
DECLARE_COMPLETION_ONSTACK(comp);
|
||||
struct smu_simple_cmd cmd;
|
||||
unsigned int addr, len, tlen;
|
||||
struct smu_sdbp_header *hdr;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ static int smu_set_fan(int pwm, u8 id, u16 value)
|
|||
{
|
||||
struct smu_cmd cmd;
|
||||
u8 buffer[16];
|
||||
DECLARE_COMPLETION(comp);
|
||||
DECLARE_COMPLETION_ONSTACK(comp);
|
||||
int rc;
|
||||
|
||||
/* Fill SMU command structure */
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ static void smu_ads_release(struct wf_sensor *sr)
|
|||
static int smu_read_adc(u8 id, s32 *value)
|
||||
{
|
||||
struct smu_simple_cmd cmd;
|
||||
DECLARE_COMPLETION(comp);
|
||||
DECLARE_COMPLETION_ONSTACK(comp);
|
||||
int rc;
|
||||
|
||||
rc = smu_queue_simple(&cmd, SMU_CMD_READ_ADC, 1,
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ zfcp_scsi_command_sync(struct zfcp_unit *unit, struct scsi_cmnd *scpnt,
|
|||
int use_timer)
|
||||
{
|
||||
int ret;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
|
||||
scpnt->SCp.ptr = (void *) &wait; /* silent re-use */
|
||||
scpnt->scsi_done = zfcp_scsi_command_sync_handler;
|
||||
|
|
|
|||
|
|
@ -1939,7 +1939,7 @@ NCR_700_abort(struct scsi_cmnd * SCp)
|
|||
STATIC int
|
||||
NCR_700_bus_reset(struct scsi_cmnd * SCp)
|
||||
{
|
||||
DECLARE_COMPLETION(complete);
|
||||
DECLARE_COMPLETION_ONSTACK(complete);
|
||||
struct NCR_700_Host_Parameters *hostdata =
|
||||
(struct NCR_700_Host_Parameters *)SCp->device->host->hostdata[0];
|
||||
|
||||
|
|
|
|||
|
|
@ -646,7 +646,7 @@ ahd_linux_dev_reset(struct scsi_cmnd *cmd)
|
|||
struct ahd_initiator_tinfo *tinfo;
|
||||
struct ahd_tmode_tstate *tstate;
|
||||
unsigned long flags;
|
||||
DECLARE_COMPLETION(done);
|
||||
DECLARE_COMPLETION_ONSTACK(done);
|
||||
|
||||
reset_scb = NULL;
|
||||
paused = FALSE;
|
||||
|
|
@ -2251,7 +2251,7 @@ done:
|
|||
if (paused)
|
||||
ahd_unpause(ahd);
|
||||
if (wait) {
|
||||
DECLARE_COMPLETION(done);
|
||||
DECLARE_COMPLETION_ONSTACK(done);
|
||||
|
||||
ahd->platform_data->eh_done = &done;
|
||||
ahd_unlock(ahd, &flags);
|
||||
|
|
|
|||
|
|
@ -2335,7 +2335,7 @@ done:
|
|||
if (paused)
|
||||
ahc_unpause(ahc);
|
||||
if (wait) {
|
||||
DECLARE_COMPLETION(done);
|
||||
DECLARE_COMPLETION_ONSTACK(done);
|
||||
|
||||
ahc->platform_data->eh_done = &done;
|
||||
ahc_unlock(ahc, &flags);
|
||||
|
|
|
|||
|
|
@ -724,7 +724,7 @@ int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
|
|||
int timeout, u32 *info)
|
||||
{
|
||||
Scsi_Cmnd *scp;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
int rval;
|
||||
|
||||
scp = kmalloc(sizeof(*scp), GFP_KERNEL);
|
||||
|
|
@ -764,7 +764,7 @@ int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
|
|||
{
|
||||
Scsi_Cmnd *scp = scsi_allocate_device(sdev, 1, FALSE);
|
||||
unsigned bufflen = gdtcmd ? sizeof(gdth_cmd_str) : 0;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
int rval;
|
||||
|
||||
if (!scp)
|
||||
|
|
|
|||
|
|
@ -813,7 +813,7 @@ qla1280_error_action(struct scsi_cmnd *cmd, enum action action)
|
|||
uint16_t data;
|
||||
unsigned char *handle;
|
||||
int result, i;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
struct timer_list timer;
|
||||
|
||||
ha = (struct scsi_qla_host *)(CMD_HOST(cmd)->hostdata);
|
||||
|
|
@ -2406,7 +2406,7 @@ qla1280_mailbox_command(struct scsi_qla_host *ha, uint8_t mr, uint16_t *mb)
|
|||
uint16_t *optr, *iptr;
|
||||
uint16_t __iomem *mptr;
|
||||
uint16_t data;
|
||||
DECLARE_COMPLETION(wait);
|
||||
DECLARE_COMPLETION_ONSTACK(wait);
|
||||
struct timer_list timer;
|
||||
|
||||
ENTER("qla1280_mailbox_command");
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ fail:
|
|||
static ssize_t
|
||||
ep_io (struct ep_data *epdata, void *buf, unsigned len)
|
||||
{
|
||||
DECLARE_COMPLETION (done);
|
||||
DECLARE_COMPLETION_ONSTACK (done);
|
||||
int value;
|
||||
|
||||
spin_lock_irq (&epdata->dev->lock);
|
||||
|
|
|
|||
|
|
@ -2869,7 +2869,7 @@ cleanup0:
|
|||
|
||||
static int __exit omap_udc_remove(struct platform_device *pdev)
|
||||
{
|
||||
DECLARE_COMPLETION(done);
|
||||
DECLARE_COMPLETION_ONSTACK(done);
|
||||
|
||||
if (!udc)
|
||||
return -ENODEV;
|
||||
|
|
|
|||
Loading…
Reference in a new issue