From: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Richard Henderson <rth@twiddle.net>,
Jay Estabrook <jay.estabrook@hp.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALPHA: support graphics on non-zero PCI domains (take 2)
Date: Sun, 15 Apr 2007 15:22:22 +0400 [thread overview]
Message-ID: <20070415152222.A12703@jurassic.park.msu.ru> (raw)
In-Reply-To: <20070415090115.GA18103@uranus.ravnborg.org>; from sam@ravnborg.org on Sun, Apr 15, 2007 at 11:01:15AM +0200
On Sun, Apr 15, 2007 at 11:01:15AM +0200, Sam Ravnborg wrote:
> > + if (pci_vga_hose && __is_mem_vga(addr)) {
> > h = pci_vga_hose->index;
>
> This code snippet is used in two places.
> A better approach would be to define a small inline function
> that is empty in the NON HOSe case to avod the ifdefs in the
> code logic.
Ok. Actually we have a macro for this.
> > +#ifndef CONFIG_ALPHA_GENERIC
> > +EXPORT_SYMBOL(tsunami_ioportmap);
> > +EXPORT_SYMBOL(tsunami_ioremap);
> > +#endif
>
> It looks strange that the function is always defined but conditionally exported.
> Also usual style is to place EXPORT right after closing brace of function -
> (with no empty lines in-between).
In a generic kernel the IO functions are never addressed directly,
only via machine vector, so there is no point in exporting them.
What about something like EXPORT_SYMBOL_NONGENERIC() macro?
I agree with your other comments.
Ivan.
next prev parent reply other threads:[~2007-04-15 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-15 7:19 Ivan Kokshaysky
2007-04-15 9:01 ` Sam Ravnborg
2007-04-15 11:22 ` Ivan Kokshaysky [this message]
2007-04-15 12:30 ` Sam Ravnborg
2007-04-15 21:26 ` Jay Estabrook
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=20070415152222.A12703@jurassic.park.msu.ru \
--to=ink@jurassic.park.msu.ru \
--cc=akpm@linux-foundation.org \
--cc=jay.estabrook@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rth@twiddle.net \
--cc=sam@ravnborg.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®