LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* False positive in checkpatch (2.6.25)
@ 2008-04-17 19:33 Alan Stern
2008-04-22 8:05 ` Andy Whitcroft
0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2008-04-17 19:33 UTC (permalink / raw)
To: Andy Whitcroft, Randy Dunlap, Joel Schopp; +Cc: Kernel development list
Here's the patch:
------------------------------------------------------
--- usb-2.6.orig/drivers/usb/core/driver.c
+++ usb-2.6/drivers/usb/core/driver.c
@@ -1541,14 +1541,11 @@ static int usb_resume(struct device *dev
udev = to_usb_device(dev);
/* If udev->skip_sys_resume is set then udev was already suspended
- * when the system suspend started, so we don't want to resume
- * udev during this system wakeup. However a reset-resume counts
- * as a wakeup event, so allow a reset-resume to occur if remote
- * wakeup is enabled. */
- if (udev->skip_sys_resume) {
- if (!(udev->reset_resume && udev->do_remote_wakeup))
- return -EHOSTUNREACH;
- }
+ * when the system suspend started, so we don't want to resume it
+ * during this system wakeup.
+ */
+ if (udev->skip_sys_resume)
+ return 0;
return usb_external_resume_device(udev);
}
------------------------------------------------------
And here's the output from checkpatch.pl:
------------------------------------------------------
ERROR: space prohibited after that '*' (ctx:ExW)
#15: FILE: drivers/usb/core/driver.c:1544:
+ * when the system suspend started, so we don't want to resume it
^
ERROR: Missing Signed-off-by: line(s)
total: 2 errors, 0 warnings, 19 lines checked
/tmp/t has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
------------------------------------------------------
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: False positive in checkpatch (2.6.25)
2008-04-17 19:33 False positive in checkpatch (2.6.25) Alan Stern
@ 2008-04-22 8:05 ` Andy Whitcroft
2008-04-22 14:55 ` Alan Stern
0 siblings, 1 reply; 3+ messages in thread
From: Andy Whitcroft @ 2008-04-22 8:05 UTC (permalink / raw)
To: Alan Stern; +Cc: Randy Dunlap, Joel Schopp, Kernel development list
On Thu, Apr 17, 2008 at 03:33:48PM -0400, Alan Stern wrote:
> ERROR: space prohibited after that '*' (ctx:ExW)
> #15: FILE: drivers/usb/core/driver.c:1544:
> + * when the system suspend started, so we don't want to resume it
> ^
>
> ERROR: Missing Signed-off-by: line(s)
Yes, pretty sure that was triggered by a bug in comment tracking when
it moved into quote tracking. From my testing here it should have been
fixed in v0.17, you have v0.16. Andrew has the change queued up so it
should be on its way to mainline. You can get the latest from the url
below to confirm:
http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/
Thanks for the report.
-apw
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: False positive in checkpatch (2.6.25)
2008-04-22 8:05 ` Andy Whitcroft
@ 2008-04-22 14:55 ` Alan Stern
0 siblings, 0 replies; 3+ messages in thread
From: Alan Stern @ 2008-04-22 14:55 UTC (permalink / raw)
To: Andy Whitcroft; +Cc: Randy Dunlap, Joel Schopp, Kernel development list
On Tue, 22 Apr 2008, Andy Whitcroft wrote:
> On Thu, Apr 17, 2008 at 03:33:48PM -0400, Alan Stern wrote:
>
> > ERROR: space prohibited after that '*' (ctx:ExW)
> > #15: FILE: drivers/usb/core/driver.c:1544:
> > + * when the system suspend started, so we don't want to resume it
> > ^
> >
> > ERROR: Missing Signed-off-by: line(s)
>
> Yes, pretty sure that was triggered by a bug in comment tracking when
> it moved into quote tracking. From my testing here it should have been
> fixed in v0.17, you have v0.16. Andrew has the change queued up so it
> should be on its way to mainline. You can get the latest from the url
> below to confirm:
>
> http://www.kernel.org/pub/linux/kernel/people/apw/checkpatch/
>
> Thanks for the report.
Confirmed: checkpatch.pl-next doesn't have this problem.
Alan Stern
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-22 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-17 19:33 False positive in checkpatch (2.6.25) Alan Stern
2008-04-22 8:05 ` Andy Whitcroft
2008-04-22 14:55 ` Alan Stern
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).