use DECLARE_COMPLETION_ONSTACK for non-constant completion
Subsystems (5)
cover use DECLARE_COMPLETION_ONSTACK for non-constant completion
The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
Yong Zhang (5):
aha152x: use DECLARE_COMPLETION_ONSTACK for non-constant completion
mISDN: use DECLARE_COMPLETION_ONSTACK for non-constant completion
USB: use DECLARE_COMPLETION_ONSTACK for non-constant completion
hwmon: use DECLARE_COMPLETION_ONSTACK for non-constant completion powerpc/iseries: use DECLARE_COMPLETION_ONSTACK for non-constant completion
arch/powerpc/platforms/iseries/viopath.c | 2 +- drivers/hwmon/ams/ams-pmu.c | 4 ++-- drivers/isdn/mISDN/l1oip_core.c | 2 +- drivers/scsi/aha152x.c | 2 +- drivers/usb/gadget/fsl_qe_udc.c | 2 +- drivers/usb/gadget/fsl_udc_core.c | 2 +- drivers/usb/gadget/langwell_udc.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)
PATCH 1/5 powerpc/iseries: use DECLARE_COMPLETION_ONSTACK for non-constant completion
The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
--- arch/powerpc/platforms/iseries/viopath.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/platforms/iseries/viopath.c +1 -1
@@ -116,7 +116,7 @@ static int proc_viopath_show(struct seq_file *m, void *v)u16 vlanMap;dma_addr_t handle;HvLpEvent_Rc hvrc; -DECLARE_COMPLETION (done); +DECLARE_COMPLETION_ONSTACK (done);struct device_node *node;const char *sysid;
Signature · 1 line
1.6.3.3
PATCH 2/5 hwmon: use DECLARE_COMPLETION_ONSTACK for non-constant completion
The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
--- drivers/hwmon/ams/ams-pmu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/hwmon/ams/ams-pmu.c +2 -2
@@ -52,7 +52,7 @@ static void ams_pmu_req_complete(struct adb_request *req)static void ams_pmu_set_register (u8 reg,u8 value) {static struct adb_request req; -DECLARE_COMPLETION (req_complete); +DECLARE_COMPLETION_ONSTACK (req_complete); req.arg = &req_complete;if (pmu_request (&req, ams_pmu_req_complete,4 , ams_pmu_cmd,0x00 , reg, value))
@@ -65,7 +65,7 @@ static void ams_pmu_set_register(u8 reg, u8 value)static u8 ams_pmu_get_register (u8 reg) {static struct adb_request req; -DECLARE_COMPLETION (req_complete); +DECLARE_COMPLETION_ONSTACK (req_complete); req.arg = &req_complete;if (pmu_request (&req, ams_pmu_req_complete,3 , ams_pmu_cmd,0x01 , reg))
Signature · 1 line
1.6.3.3
PATCH 3/5 USB: use DECLARE_COMPLETION_ONSTACK for non-constant completion
The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
--- drivers/usb/gadget/fsl_qe_udc.c | 2 +- drivers/usb/gadget/fsl_udc_core.c | 2 +- drivers/usb/gadget/langwell_udc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/usb/gadget/fsl_qe_udc.c +1 -1
@@ -2694,7 +2694,7 @@ static int __devexit qe_udc_remove(struct of_device *ofdev)struct qe_ep *ep;unsigned int size; -DECLARE_COMPLETION (done); +DECLARE_COMPLETION_ONSTACK (done);if (!udc_controller)return -ENODEV ;
drivers/usb/gadget/fsl_udc_core.c +1 -1
@@ -2399,7 +2399,7 @@ static int __exit fsl_udc_remove(struct platform_device *pdev) {struct resource *res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); -DECLARE_COMPLETION (done); +DECLARE_COMPLETION_ONSTACK (done);if (!udc_controller)return -ENODEV ;
drivers/usb/gadget/langwell_udc.c +1 -1
@@ -2903,7 +2903,7 @@ static void langwell_udc_remove(struct pci_dev *pdev) {struct langwell_udc *dev = the_controller; -DECLARE_COMPLETION (done); +DECLARE_COMPLETION_ONSTACK (done);BUG_ON (dev->driver);DBG (dev,"---> %s()\n" , __func__);
Signature · 1 line
1.6.3.3
PATCH 4/5 mISDN: use DECLARE_COMPLETION_ONSTACK for non-constant completion
The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
--- drivers/isdn/mISDN/l1oip_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/isdn/mISDN/l1oip_core.c +1 -1
@@ -661,7 +661,7 @@ l1oip_socket_thread(void *data)size_t recvbuf_size =1500 ;int recvlen;struct socket *socket =NULL ; -DECLARE_COMPLETION (wait); +DECLARE_COMPLETION_ONSTACK (wait);/* allocate buffer memory */ recvbuf =kmalloc (recvbuf_size,GFP_KERNEL );
Signature · 1 line
1.6.3.3
PATCH 5/5 aha152x: use DECLARE_COMPLETION_ONSTACK for non-constant completion
The _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
--- drivers/scsi/aha152x.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/aha152x.c +1 -1
@@ -1143,7 +1143,7 @@ static int aha152x_abort(Scsi_Cmnd *SCpnt)static int aha152x_device_reset (Scsi_Cmnd * SCpnt) {struct Scsi_Host *shpnt = SCpnt->device->host; -DECLARE_COMPLETION (done); +DECLARE_COMPLETION_ONSTACK (done);int ret, issued, disconnected;unsigned char old_cmd_len = SCpnt->cmd_len;unsigned long flags;
Signature · 1 line
1.6.3.3
Re: [PATCH 4/5] mISDN: use DECLARE_COMPLETION_ONSTACK for non-constant completion
In reply to Yong ZhangThe _ONSTACK variant should be used for on-stack completion, otherwise it will break lockdep.
--- drivers/isdn/mISDN/l1oip_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/isdn/mISDN/l1oip_core.c +1 -1
@@ -661,7 +661,7 @@ l1oip_socket_thread(void *data)size_t recvbuf_size =1500 ;int recvlen;struct socket *socket =NULL ; -DECLARE_COMPLETION (wait); +DECLARE_COMPLETION_ONSTACK (wait);/* allocate buffer memory */ recvbuf =kmalloc (recvbuf_size,GFP_KERNEL );
David Miller
AppliedRe: [PATCH 4/5] mISDN: use DECLARE_COMPLETION_ONSTACK for non-constant completion
From: Karsten Keil <[email protected]>
Date: Wed, 16 Dec 2009 20:00:20 +0100
Quoted 5 lines
The
_ONSTACKvariant should be used for on-stack completion, otherwise it will break lockdep.Signed-off-by Yong Zhang <[email protected]>Acked-by Karsten Keil <[email protected]>
Applied, thanks.
Quoted 9 lines · Yong Zhang
The
_ONSTACKvariant should be used for on-stack completion, otherwise it will break lockdep.Yong Zhang (5):
aha152x: useDECLARE_COMPLETION_ONSTACKfor non-constant completion
mISDN: useDECLARE_COMPLETION_ONSTACKfor non-constant completion
USB: useDECLARE_COMPLETION_ONSTACKfor non-constant completion
hwmon: useDECLARE_COMPLETION_ONSTACKfor non-constant completion powerpc/iseries: useDECLARE_COMPLETION_ONSTACKfor non-constant completion
These all look fine for me.
For lockdep stuff, you should Cc Peter, adding him into Cc...
Thanks.
Quoted 14 lines
arch/powerpc/platforms/iseries/viopath.c | 2 +- drivers/hwmon/ams/ams-pmu.c | 4 ++-- drivers/isdn/mISDN/l1oip_core.c | 2 +- drivers/scsi/aha152x.c | 2 +- drivers/usb/gadget/fsl_qe_udc.c | 2 +- drivers/usb/gadget/fsl_udc_core.c | 2 +- drivers/usb/gadget/langwell_udc.c | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 1 line
Live like a child, think like the god.