Skip to contentSkip to conversation

ohci-at91 mismerge build error

PATCH Arnd Bergmann 2 participants 2 messages Jan 7, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

After commit 99f14bd4d1 "Merge 3.13-rc5 into usb-next" (in linux-next as of today), I'm getting this error building any at91 kernel:

drivers/usb/host/ohci-at91.c: In function 'usb_hcd_at91_probe':
drivers/usb/host/ohci-at91.c:190:4: error: label 'err' used but not defined

    goto err;
    ^

drivers/usb/host/ohci-at91.c: At top level:
drivers/usb/host/ohci-at91.c:206:2: warning: data definition has no type or storage class [enabled by default]
at91_stop_hc(pdev);
^
...

The problem is obviously a mismerge between two unrelated changes that resulted in missing opening braces.

---
Please just ignore if this has been reported before

drivers/usb/host/ohci-at91.c +1 -1
index 2d0ee5e..091ae49 100644
@@ -197,7 +197,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
 	at91_start_hc(pdev);
 
 	retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
-	if (retval == 0)
+	if (retval == 0) {
 		device_wakeup_enable(hcd->self.controller);
 		return retval;
 	}
#1 lore raw

Hello Arnd,

Quoted 11 lines · Arnd Bergmann

After commit 99f14bd4d1 "Merge 3.13-rc5 into usb-next" (in linux-next as of today), I'm getting this error building any at91 kernel:

drivers/usb/host/ohci-at91.c: In function 'usb_hcd_at91_probe':
drivers/usb/host/ohci-at91.c:190:4: error: label 'err' used but not defined

     goto err;
     ^
drivers/usb/host/ohci-at91.c: At top level:
drivers/usb/host/ohci-at91.c:206:2: warning: data definition has no type or storage class [enabled by default]
   at91_stop_hc(pdev);
   ^
Quoted 4 lines

...

The problem is obviously a mismerge between two unrelated changes that resulted in missing opening braces.

Thanks for fixing this: I was about to propose the same patch to resolve the issue introduced by this merge (reported by Olof yesterday).

Quoted 2 lines
Quoted 17 lines

---
Please just ignore if this has been reported before

drivers/usb/host/ohci-at91.c +1 -1
index 2d0ee5e..091ae49 100644
@@ -197,7 +197,7 @@ static int usb_hcd_at91_probe(const struct hc_driver *driver,
  	at91_start_hc(pdev);
 
  	retval = usb_add_hcd(hcd, irq, IRQF_SHARED);
-	if (retval == 0)
+	if (retval == 0) {
  		device_wakeup_enable(hcd->self.controller);
  		return retval;
  	}