From: Greg KH <gregkh@linuxfoundation.org>
To: Vaishali Thakkar <vthakkar1994@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v3 1/2] Staging: rtl8188eu: Eliminate use of _set_timer
Date: Mon, 9 Mar 2015 13:14:43 +0100 [thread overview]
Message-ID: <20150309121443.GA6934@kroah.com> (raw)
In-Reply-To: <b993ec823a6d73cc6ba50fc36cc9fd13e8b92ea9.1425714259.git.vthakkar1994@gmail.com>
On Sat, Mar 07, 2015 at 01:21:37PM +0530, Vaishali Thakkar wrote:
> This patch introduces the use of API function mod_timer
> instead of driver specific function _set_timer as it is
> a more efficient and standard way to update the expire
> field of an active timer. Also, definition of function
> _set_timer is removed as it is no longer needed after
> this change.
>
> Here, these cases are handled using Coccinelle and
> semantic patch used for this is as follows:
>
> @@ expression x; expression y;@@
>
> - _set_timer (&x, y);
> + mod_timer (&x, jiffies + msecs_to_jiffies (y));
>
> Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
> ---
> v1 : Here, this patch has some line over 80 characters as
> limiting them to 80 characters does not make code look
> good and readable.
> v2 : Change commit log
> - Redo the patch against staging-testing
> v3 : No change but as patch is in series with another patch,
> sending this as a new version.
You obviously didn't even test-build this patch, otherwise you wouldn't
have submitted it :(
Hint, _ALWAYS_ test build patches, to break the build is not allowed at
all.
thanks,
greg k-h
next prev parent reply other threads:[~2015-03-09 12:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-07 7:51 [PATCH v3 0/2] Staging: rtl8188eu: Use mod_timer and setup_timer Vaishali Thakkar
2015-03-07 7:51 ` [PATCH v3 1/2] Staging: rtl8188eu: Eliminate use of _set_timer Vaishali Thakkar
2015-03-09 12:14 ` Greg KH [this message]
2015-03-09 14:28 ` [Outreachy kernel] " Vaishali Thakkar
2015-03-09 14:35 ` Greg KH
2015-03-09 15:06 ` Vaishali Thakkar
2015-03-07 7:51 ` [PATCH v3 2/2] Staging: rtl8188eu: Eliminate use of _init_timer Vaishali Thakkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150309121443.GA6934@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=vthakkar1994@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.