From: Brian Norris <computersforpeace@gmail.com>
To: kbuild test robot <fengguang.wu@intel.com>
Cc: linux-mtd@lists.infradead.org, kbuild-all@01.org,
Vincenzo Aliberti <vincenzo.aliberti@gmail.com>
Subject: Re: [l2-mtd:master 28/29] drivers/mtd/lpddr/lpddr2_nvm.c:149:2: error: implicit declaration of function 'writel_relaxed'
Date: Tue, 20 May 2014 18:49:08 -0700 [thread overview]
Message-ID: <20140521014908.GE22233@ld-irv-0074> (raw)
In-Reply-To: <537bfc24.N6Jd/c3WxnkfHn37%fengguang.wu@intel.com>
On Wed, May 21, 2014 at 09:06:44AM +0800, kbuild test robot wrote:
> tree: git://git.infradead.org/users/dedekind/l2-mtd.git master
> head: 4007e2d175cc83ea728b757e49155826b32fbff8
> commit: 96ba9dd65788a0bd2a7d1e57ec78b7642f0ccc25 [28/29] mtd: lpddr: add driver for LPDDR2-NVM PCM memories
> config: make ARCH=x86_64 allyesconfig
>
> All error/warnings:
>
> drivers/mtd/lpddr/lpddr2_nvm.c: In function 'ow_enable':
> >> drivers/mtd/lpddr/lpddr2_nvm.c:149:2: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
> writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18,
> ^
> cc1: some warnings being treated as errors
>
> vim +/writel_relaxed +149 drivers/mtd/lpddr/lpddr2_nvm.c
>
> 143 * Register, Device ID, etc
> 144 */
> 145 static inline void ow_enable(struct map_info *map)
> 146 {
> 147 struct pcm_int_data *pcm_data = map->fldrv_priv;
> 148
> > 149 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18,
> 150 pcm_data->ctl_regs + LPDDR2_MODE_REG_CFG);
> 151 writel_relaxed(0x01, pcm_data->ctl_regs + LPDDR2_MODE_REG_DATA);
> 152 }
This is because writel_relaxed is not implemented consistently across
all architectures. It looks like Will Deacon is trying to fix this.
https://lkml.org/lkml/2014/4/17/267
Vincenzo,
What do you think? Should we:
1. Limit your driver to ARM (or other ARCH that supports
writel_relaxed()?
2. Use writel() instead?
3. Wait for other ARCH'es to support writel_relaxed()?
Brian
next parent reply other threads:[~2014-05-21 1:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <537bfc24.N6Jd/c3WxnkfHn37%fengguang.wu@intel.com>
2014-05-21 1:49 ` Brian Norris [this message]
2014-05-21 6:38 ` [l2-mtd:master 28/29] drivers/mtd/lpddr/lpddr2_nvm.c:149:2: error: implicit declaration of function 'writel_relaxed' Vincenzo Aliberti
2014-05-21 20:23 ` Brian Norris
2014-05-21 7:33 ` [PATCH v5] mtd: lpddr: add driver for LPDDR2-NVM PCM memories Vincenzo Aliberti
2014-05-21 20:28 ` Brian Norris
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=20140521014908.GE22233@ld-irv-0074 \
--to=computersforpeace@gmail.com \
--cc=fengguang.wu@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-mtd@lists.infradead.org \
--cc=vincenzo.aliberti@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox