From: Grant Likely <grant.likely@secretlab.ca>
To: Bill Pemberton <wfp5p@viridian.itc.virginia.edu>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 000/493] remove CONFIG_HOTPLUG as an option
Date: Thu, 06 Dec 2012 00:27:42 +0000 [thread overview]
Message-ID: <20121206002742.80C2A3E0E22@localhost> (raw)
In-Reply-To: <20121122010723.F111E80150@viridian.itc.virginia.edu>
On Wed, 21 Nov 2012 20:07:23 -0500, wfp5p@viridian.itc.virginia.edu (Bill Pemberton) wrote:
> Grant Likely writes:
> >
> > You mean this series wasn't created with a script? You did this by
> > hand? If so then I must say kudos on your dedication!
> >
> > But it makes me more nervous about the series. Too easy to fat
> > finger many things when touching that many files.
> >
>
> No, I didn't do them by hand, it was a script. Originally, it was a
> couple, all basically the same, but removing each __dev*. Then I'd do
> a word diff to eyeball them to make sure the script didn't do
> something goofy.
>
> The whack-a-mole part came along because I was working against
> linux-next and whatever patch series was right for one day wouldn't be
> right for the next day because of some of the faster moving trees.
>
>
> > Please do write a script and post that for review.
> >
>
> The all-in-one version of the script:
>
> #! /usr/bin/perl
>
> use strict;
> use IO::InSitu;
>
> sub processfile
> {
> my $fn = shift;
>
> my ($in, $out) = open_rw($fn, $fn);
>
> while (<$in>) {
> s|__devexit_p\(([^)]+)\)|$1|;
> s|\s__devexit\b||;
> s|\s__devinitconst\b||;
> s|\s__devinitdata\b||;
> s|\s__devinit\b||;
Pretty straight forward, and works against the files I tried. :-)
Greg, I'd much rather see the change applied all at once in this manner.
If that isn't possible, then at the least I'll use the script against
the code that I maintain and push th result out to Linus.
g.
next prev parent reply other threads:[~2012-12-06 0:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 0:19 [PATCH 000/493] remove CONFIG_HOTPLUG as an option Bill Pemberton
2012-11-19 19:55 ` Dmitry Torokhov
2012-11-19 20:01 ` Greg KH
2012-11-19 20:27 ` Rafael J. Wysocki
2012-11-19 20:28 ` Greg KH
2012-11-24 8:26 ` Dmitry Torokhov
2012-11-20 3:11 ` viresh kumar
2012-11-20 10:46 ` Grant Likely
2012-11-21 7:56 ` Andrew Morton
2012-11-21 18:41 ` Bill Pemberton
2012-11-21 19:15 ` Greg KH
2012-11-21 23:55 ` Grant Likely
2012-11-22 1:07 ` Bill Pemberton
2012-12-06 0:27 ` Grant Likely [this message]
2012-12-06 0:39 ` Greg KH
2012-12-07 13:47 ` Grant Likely
2012-12-07 17:16 ` Greg KH
2012-12-07 23:04 ` Grant Likely
2012-11-21 23:05 ` Grant Likely
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=20121206002742.80C2A3E0E22@localhost \
--to=grant.likely@secretlab.ca \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wfp5p@viridian.itc.virginia.edu \
/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