From: Fengguang Wu <fengguang.wu@intel.com>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: balbi@ti.com, Greg KH <gregkh@linuxfoundation.org>,
linux-arch@vger.kernel.org,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
linux-usb@vger.kernel.org
Subject: Re: [balbi-usb:xceiv 3/3] drivers/usb/phy/rcar-phy.c:75:3: error: implicit declaration of function 'iowrite32'
Date: Thu, 1 Nov 2012 22:29:10 +0800 [thread overview]
Message-ID: <20121101142910.GA8072@localhost> (raw)
In-Reply-To: <CAMo8BfLoU0GLpncX7YXy_VvveFnR6f6guPJTLNdtt3SWDK1fcg@mail.gmail.com>
On Thu, Nov 01, 2012 at 04:47:14PM +0300, Max Filippov wrote:
> On Thu, Nov 1, 2012 at 5:23 PM, Felipe Balbi <balbi@ti.com> wrote:
> > Hi,
> >
> > On Thu, Nov 01, 2012 at 06:04:20AM -0700, Greg KH wrote:
> >> On Thu, Nov 01, 2012 at 12:50:34PM +0200, Felipe Balbi wrote:
> >> > On Thu, Nov 01, 2012 at 12:33:39PM +0200, Felipe Balbi wrote:
> >> > > Hi,
> >> > >
> >> > > On Thu, Nov 01, 2012 at 06:29:30PM +0800, kbuild test robot wrote:
> >> > > > tree: git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git xceiv
> >> > > > head: 1789e52acc90c87484a109d6349eefe63cabb257
> >> > > > commit: 1789e52acc90c87484a109d6349eefe63cabb257 [3/3] usb: phy: add R-Car USB phy driver
> >> > > > config: make ARCH=cris allyesconfig
> >> > > >
> >> > > > All error/warnings:
> >> > > >
> >> > > > drivers/usb/phy/rcar-phy.c: In function 'rcar_usb_phy_init':
> >> > > > drivers/usb/phy/rcar-phy.c:75:3: error: implicit declaration of function 'iowrite32' [-Werror=implicit-function-declaration]
> >> > > > drivers/usb/phy/rcar-phy.c:83:4: error: implicit declaration of function 'ioread32' [-Werror=implicit-function-declaration]
> >> > > > cc1: some warnings being treated as errors
> >> > >
> >> > > too bad that it compiles fine on x86 and ARM :-(
> >> > >
> >> > > Kuninori, care to send me a fixup patch ? I guess using writel()/readl()
> >> > > should do it ?!?
> >> >
> >> > looks like this isn't enough. We have 6 arches which don't provide
> >> > writel()/readl(), namely blackfin, c6x, openrisc, s390, score, and um.
> >> >
> >> > Should those arches be fixed instead ? Don't we have a single
> >> > memory-mapped access set of APIs which are supposed to be provided by
> >> > all arches ?
> >> >
> >> > Greg, you've been doing this for much more time then I have. Should all
> >> > arches provide writeb/w/l/q and readb/w/l/q ??
> >>
> >> I would think so, but I really don't know.
> >>
> >> linux-arch people, what do we do about architectures that don't provide
> >> these functions? Just disable building the drivers for them, or do we
> >> fix them somehow?
> >
> > btw, only alpha and x86 seem to be providing all of those, but if you
> > look into our documentation, it's said that drivers are supposed to use
> > write/read{b,w,l,q} for all memory-mapped io. I'd expect all platforms
> > to provide those even if just to allow compilation of drivers.
>
> Strange, AFAICS architectures that use asm-generic/io.h (blackfin, openrisc,
> score, unicore32 and xtensa) also provide those functions.
FYI, build log shows that the errors only happen for cris among all
the allyesconfig builds:
cris-allyesconfig
parisc-allyesconfig
sparc64-allyesconfig
xtensa-allyesconfig
sparc-allyesconfig
m68k-allyesconfig
x86_64-allyesconfig
powerpc-allyesconfig
mips-allyesconfig
Thanks,
Fengguang
next prev parent reply other threads:[~2012-11-01 14:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <50924f0a.QuF7xjrp4IUSKMwd%fengguang.wu@intel.com>
[not found] ` <20121101103339.GD410@arwen.pp.htv.fi>
[not found] ` <20121101105034.GE410@arwen.pp.htv.fi>
[not found] ` <20121101105034.GE410-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2012-11-01 13:04 ` [balbi-usb:xceiv 3/3] drivers/usb/phy/rcar-phy.c:75:3: error: implicit declaration of function 'iowrite32' Greg KH
2012-11-01 13:04 ` Greg KH
2012-11-01 13:23 ` Felipe Balbi
[not found] ` <20121101132342.GE12489-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2012-11-01 13:38 ` Bjørn Mork
2012-11-01 13:38 ` Bjørn Mork
2012-11-01 15:06 ` David Miller
2012-11-02 9:16 ` Felipe Balbi
[not found] ` <20121102091620.GE17938-S8G//mZuvNWo5Im9Ml3/Zg@public.gmane.org>
2012-11-02 10:05 ` Bjørn Mork
2012-11-02 10:05 ` Bjørn Mork
2012-11-01 13:47 ` Max Filippov
2012-11-01 14:29 ` Fengguang Wu [this message]
2012-11-01 15:07 ` David Miller
2012-11-02 9:17 ` Felipe Balbi
[not found] ` <20121101130420.GB20982-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2012-11-01 15:53 ` James Bottomley
2012-11-01 15:53 ` James Bottomley
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=20121101142910.GA8072@localhost \
--to=fengguang.wu@intel.com \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=jcmvbkbc@gmail.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-usb@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 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.