From: Silvan Jegen <s.jegen@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] Replace min macro with min_t
Date: Mon, 24 Feb 2014 21:36:34 +0000 [thread overview]
Message-ID: <20140224213634.GA22032@myarchbang> (raw)
In-Reply-To: <530bb134.84ce0e0a.2d96.2b6b@mx.google.com>
On Tue, Feb 25, 2014 at 12:11:51AM +0300, Dan Carpenter wrote:
> It's sort of a lot of work to review all 79 changes... Your patch is
> correct, but I think you are going to get mixed reactions from
> maintainers. A lot of them don't like to review cleanups like this.
I see...
> I guess my advice would be to split it up and send it to the friendliest
> maintainers first and see how they respond then slowly feed it to the
> other maintainers. When you get to the unfriendliest maintainers you
> can handle then stop. :P
I assume you don't have a private MAINTAINERS list ordered by friendliness
handy, or do you? :P
So the best way to proceed would be to split the patch up by subsystem and
send the splitted parts to the appropriate subsystem maintainers.
> Staging is the friendliest subsystem, but none of these patches touch
> staging. Maybe wireless and usb.
Actually, there is one:
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
index 6202358..498995d 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
@@ -609,7 +609,7 @@ static int r8192_wx_set_nick(struct net_device *dev,
if (wrqu->data.length > IW_ESSID_MAX_SIZE)
return -E2BIG;
down(&priv->wx_sem);
- wrqu->data.length = min((size_t) wrqu->data.length, sizeof(priv->nick));
+ wrqu->data.length = min_t(size_t, wrqu->data.length, sizeof(priv->nick));
memset(priv->nick, 0, sizeof(priv->nick));
memcpy(priv->nick, extra, wrqu->data.length);
up(&priv->wx_sem);
I think I will split the patch in three parts (staging, wireless and usb),
send them to the different maintainers and then brace myself for their
reactions (I think I will CC the janitor list for their reading pleasure).
Thanks for the review and the advice.
Cheers,
Silvan
next prev parent reply other threads:[~2014-02-24 21:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 20:04 [PATCH] Replace min macro with min_t Silvan Jegen
2014-02-24 21:11 ` Dan Carpenter
2014-02-24 21:36 ` Silvan Jegen [this message]
2014-02-24 21:58 ` Dan Carpenter
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=20140224213634.GA22032@myarchbang \
--to=s.jegen@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox