Skip to contentSkip to conversation

staging: vt6655,vt6656: fix sparse error "unexpected unlock"

PATCH New Cédric Cabessa 1 participant 1 message Mar 26, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6655,vt6656: fix sparse error "unexpected unlock"

---
 drivers/staging/vt6655/wpactl.c   | 3 ++-
 drivers/staging/vt6656/firmware.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

This patch is part of the eudyptula challenge.

drivers/staging/vt6655/wpactl.c +2 -1
index d17224f..9f0715c 100644
@@ -188,7 +188,8 @@ int wpa_set_wpadev(PSDevice pDevice, int val)
  *
  */
 
-int wpa_set_keys(PSDevice pDevice, void *ctx, bool fcpfkernel)
+int wpa_set_keys(PSDevice pDevice, void *ctx,
+		 bool fcpfkernel) __must_hold(&pDevice->lock)
 {
 	struct viawget_wpa_param *param = ctx;
 	PSMgmtObject pMgmt = pDevice->pMgmt;
drivers/staging/vt6656/firmware.c +2 -1
index cd2ea76..15c1e86 100644
@@ -31,6 +31,7 @@
  *
  */
 
+#include <linux/compiler.h>
 #include "firmware.h"
 #include "control.h"
 #include "rndis.h"
@@ -43,7 +44,7 @@ static int msglevel = MSG_LEVEL_INFO;
 
 #define FIRMWARE_CHUNK_SIZE	0x400
 
-int FIRMWAREbDownload(struct vnt_private *pDevice)
+int FIRMWAREbDownload(struct vnt_private *pDevice) __must_hold(&pDevice->lock)
 {
 	struct device *dev = &pDevice->usb->dev;
 	const struct firmware *fw;
Signature · 1 line
1.8.3.1