From: Greg Ungerer <gerg@snapgear.com>
To: Mike Frysinger <vapier.adi@gmail.com>
Cc: Greg Ungerer <gerg@uclinux.org>,
linux-mtd@lists.infradead.org,
uClinux development list <uclinux-dev@uclinux.org>,
dedekind1@gmail.com
Subject: Re: [uClinux-dev] [PATCH] mtd: clean up uclinux.c map driver
Date: Wed, 16 May 2012 21:49:42 +1000 [thread overview]
Message-ID: <4FB39456.7040208@snapgear.com> (raw)
In-Reply-To: <CAMjpGUcBCVvRreZ2DK+UXkhV2dMZj3xMbTpHaep0yTViGS_1-w@mail.gmail.com>
On 05/16/2012 03:02 PM, Mike Frysinger wrote:
> On Tue, May 15, 2012 at 10:55 PM, Greg Ungerer<gerg@snapgear.com> wrote:
>> On 16/05/12 12:42, Mike Frysinger wrote:
>>> On Tue, May 15, 2012 at 8:45 PM, Greg Ungerer<gerg@snapgear.com> áwrote:
>>>> On 16/05/12 01:57, Mike Frysinger wrote:
>>>>> On Tue, May 15, 2012 at 12:08 AM,<gerg@snapgear.com> á├Ãwrote:
>>>>>> . make the struct uclinux_ram_map static
>>>>>
>>>>> NAK: this breaks Blackfin systems. ├Ãwe specifically don't want this to
>>>>> be static.
>>>>> it should probably get a comment added above it saying as much.
>>>>
>>>> A comment won't fix the sparse warning. You need a proper declaration.
>>>
>>> perhaps, but marking it static to fix a warning that people rarely see
>>> whilst simultaneously knowingly breaking an arch doesn't sound like
>>> the correct trade off.
>>
>> I agree, of course. It wasn't done to knowingly break an arch. But
>> the sparse warning can be fixed with a proper declaration, that
>> would avoid you having a local extern for it in
>> arch/blackfin/kernel/setup.c as well. Cleaner all round.
>
> i thought you were going for merging anyways.
>
> where would you suggest adding such a decl ? there isn't an existing
> one i can see that this would fit into. might have to create a new
> one just for this ?
No I don't see any existing place that makes any sense. I guess it
could be something like a new file include/linux/mtd/uclinux.h.
But it looks like Artem is ok with just reverting it to not be static.
I am happy to leave it that way if you are.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: gerg@snapgear.com
SnapGear Group, McAfee PHONE: +61 7 3435 2888
8 Gardner Close, FAX: +61 7 3891 3630
Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
next prev parent reply other threads:[~2012-05-16 11:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 4:08 [PATCH] mtd: clean up uclinux.c map driver gerg
2012-05-15 4:17 ` [uClinux-dev] " Greg Ungerer
2012-05-15 13:12 ` Artem Bityutskiy
2012-05-16 0:43 ` Greg Ungerer
2012-05-15 15:57 ` [uClinux-dev] " Mike Frysinger
2012-05-16 0:45 ` Greg Ungerer
2012-05-16 2:42 ` Mike Frysinger
2012-05-16 2:55 ` Greg Ungerer
2012-05-16 5:02 ` Mike Frysinger
2012-05-16 11:49 ` Greg Ungerer [this message]
2012-05-16 16:23 ` Mike Frysinger
2012-05-16 9:28 ` Artem Bityutskiy
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=4FB39456.7040208@snapgear.com \
--to=gerg@snapgear.com \
--cc=dedekind1@gmail.com \
--cc=gerg@uclinux.org \
--cc=linux-mtd@lists.infradead.org \
--cc=uclinux-dev@uclinux.org \
--cc=vapier.adi@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.