From: Robin Getz <rgetz@blackfin.uclinux.org>
To: "Andrew Morton" <akpm@linux-foundation.org>
Cc: jdl@freescale.com, dwmw2@infradead.org, paulus@samba.org,
linux-kernel@vger.kernel.org
Subject: Re: [patch] remove support for un-needed _extratext section
Date: Mon, 29 Oct 2007 20:11:44 -0400 [thread overview]
Message-ID: <200710292011.45092.rgetz@blackfin.uclinux.org> (raw)
In-Reply-To: <20071029152228.78aa5f3e.akpm@linux-foundation.org>
On Mon 29 Oct 2007 18:22, Andrew Morton pondered:
> I hit numerous rejects here. I am not sure which kernel you patched but
> I suspect it was not an up-to-date one.
Sorry about that - I will do so in the future. Thanks for reviewing and fixing up.
> > --- kernel/kallsyms.c (revision 3780)
> > +++ kernel/kallsyms.c (working copy)
>
> Please prepare patches in `patch -p1' form. This should have been
>
> --- foo/kernel/kallsyms.c (revision 3780)
> +++ bar/kernel/kallsyms.c (working copy)
Sorry twice.
> > */
> > if ((s->addr == _etext && strcmp((char*)s->sym + offset, "_etext")) ||
> > - (s->addr == _einittext && strcmp((char*)s->sym + offset, "_einittext")) ||
> > - (s->addr == _eextratext && strcmp((char*)s->sym + offset, "_eextratext")))
> > + (s->addr == _einittext && strcmp((char*)s->sym + offset, "_einittext")))
> > return 0;
> > }
>
> I don't understand why this hunk is changing _einittext handling, and I
> suspect this was a mistake, so I left that bit out.
I didn't think I did change the _einittext handling - just removed
_eextratext, and removed the trailing ||, and closed the parentheses for
the if statement.
- (s->addr == _einittext && strcmp((char*)s->sym + offset, "_einittext")) ||
+ (s->addr == _einittext && strcmp((char*)s->sym + offset, "_einittext")))
I think this is the same as what you have here - isn't it?
> - if ((s->addr == _etext && strcmp((char*)s->sym + offset, "_etext")) ||
> - (s->addr == _einittext && strcmp((char*)s->sym + offset, "_einittext")) ||
> - (s->addr == _eextratext && strcmp((char*)s->sym + offset, "_eextratext")))
> + if ((s->addr == _etext &&
> + strcmp((char*)s->sym + offset, "_etext")) ||
> + (s->addr == _einittext &&
> + strcmp((char*)s->sym + offset, "_einittext")))
> return 0;
?
prev parent reply other threads:[~2007-10-30 0:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 12:36 history of extratext sections? Robin Getz
2007-10-24 16:19 ` Mike Frysinger
2007-10-26 9:57 ` Robin Getz
2007-10-26 14:31 ` David Woodhouse
2007-10-26 14:40 ` Jon Loeliger
2007-10-26 19:43 ` [patch] remove support for un-needed _extratext section Robin Getz
2007-10-29 22:22 ` Andrew Morton
2007-10-30 0:11 ` Robin Getz [this message]
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=200710292011.45092.rgetz@blackfin.uclinux.org \
--to=rgetz@blackfin.uclinux.org \
--cc=akpm@linux-foundation.org \
--cc=dwmw2@infradead.org \
--cc=jdl@freescale.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.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
all inboxes | Powered by JetHome®