relay-use-irq_work-instead-of-plain-timer-for-deferred-wakeup-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 10 Sep 2016 10:34:30 +0000 (20:34 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 10 Sep 2016 10:34:30 +0000 (20:34 +1000)
ERROR: Please use git commit description style 'commit <12+ chars of sha1> ("<title line>")' - ie: 'commit 0123456789ab ("commit description")'
#12:
commit 7c9cb38302e78d24e37f7d8a2ea7eed4ae5f2fa7

WARNING: line over 80 characters
#87: FILE: kernel/relay.c:337:
+ struct rchan_buf *buf = container_of(work, struct rchan_buf, wakeup_work);

WARNING: waitqueue_active without comment
#119: FILE: kernel/relay.c:772:
+ if (waitqueue_active(&buf->read_wait)) {

total: 1 errors, 2 warnings, 70 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.

./patches/relay-use-irq_work-instead-of-plain-timer-for-deferred-wakeup.patch has style problems, please review.

NOTE: If any of the errors are false positives, please report
      them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Akash Goel <akash.goel@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/relay.c

index ff1fa65a80134b2d0103a6b05ff74e69bbaebffe..32ce6ccc3218ab315b7b9e8e023236abcce746c1 100644 (file)
@@ -334,7 +334,9 @@ static struct rchan_callbacks default_channel_callbacks = {
  */
 static void wakeup_readers(struct irq_work *work)
 {
-       struct rchan_buf *buf = container_of(work, struct rchan_buf, wakeup_work);
+       struct rchan_buf *buf;
+
+       buf = container_of(work, struct rchan_buf, wakeup_work);
        wake_up_interruptible(&buf->read_wait);
 }
 
This page took 0.025352 seconds and 5 git commands to generate.