* drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc'
@ 2016-03-06 12:14 kbuild test robot
2016-03-07 20:29 ` Luis R. Rodriguez
2016-03-07 20:34 ` [PATCH] ia64: define ioremap_uc() Luis R. Rodriguez
0 siblings, 2 replies; 7+ messages in thread
From: kbuild test robot @ 2016-03-06 12:14 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: kbuild-all, linux-kernel, Ingo Molnar, Borislav Petkov
[-- Attachment #1: Type: text/plain, Size: 1816 bytes --]
Hi Luis,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 67944024c1cdd897e49a09b0d6af3ea38d1388ca
commit: 3cc2dac5be3f23414a4efdee0b26d79bed297cac drivers/video/fbdev/atyfb: Replace MTRR UC hole with strong UC
date: 8 months ago
config: ia64-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 3cc2dac5be3f23414a4efdee0b26d79bed297cac
# save the attached .config to linux build tree
make.cross ARCH=ia64
All errors (new ones prefixed by >>):
drivers/video/fbdev/aty/atyfb_base.c: In function 'atyfb_setup_generic':
>> drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc' [-Werror=implicit-function-declaration]
par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
^
drivers/video/fbdev/aty/atyfb_base.c:3461:19: warning: assignment makes pointer from integer without a cast
par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
^
cc1: some warnings being treated as errors
vim +/ioremap_uc +3461 drivers/video/fbdev/aty/atyfb_base.c
3455
3456 info->fix.mmio_start = raddr;
3457 /*
3458 * By using strong UC we force the MTRR to never have an
3459 * effect on the MMIO region on both non-PAT and PAT systems.
3460 */
> 3461 par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
3462 if (par->ati_regbase == NULL)
3463 return -ENOMEM;
3464
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 41277 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc'
2016-03-06 12:14 drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc' kbuild test robot
@ 2016-03-07 20:29 ` Luis R. Rodriguez
2016-03-07 20:34 ` [PATCH] ia64: define ioremap_uc() Luis R. Rodriguez
1 sibling, 0 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2016-03-07 20:29 UTC (permalink / raw)
To: kbuild test robot; +Cc: kbuild-all, linux-kernel, Ingo Molnar, Borislav Petkov
I'll send a fix. I have it written.
Luis
On Sun, Mar 06, 2016 at 08:14:07PM +0800, kbuild test robot wrote:
> Hi Luis,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 67944024c1cdd897e49a09b0d6af3ea38d1388ca
> commit: 3cc2dac5be3f23414a4efdee0b26d79bed297cac drivers/video/fbdev/atyfb: Replace MTRR UC hole with strong UC
> date: 8 months ago
> config: ia64-allyesconfig (attached as .config)
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 3cc2dac5be3f23414a4efdee0b26d79bed297cac
> # save the attached .config to linux build tree
> make.cross ARCH=ia64
>
> All errors (new ones prefixed by >>):
>
> drivers/video/fbdev/aty/atyfb_base.c: In function 'atyfb_setup_generic':
> >> drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc' [-Werror=implicit-function-declaration]
> par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
> ^
> drivers/video/fbdev/aty/atyfb_base.c:3461:19: warning: assignment makes pointer from integer without a cast
> par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
> ^
> cc1: some warnings being treated as errors
>
> vim +/ioremap_uc +3461 drivers/video/fbdev/aty/atyfb_base.c
>
> 3455
> 3456 info->fix.mmio_start = raddr;
> 3457 /*
> 3458 * By using strong UC we force the MTRR to never have an
> 3459 * effect on the MMIO region on both non-PAT and PAT systems.
> 3460 */
> > 3461 par->ati_regbase = ioremap_uc(info->fix.mmio_start, 0x1000);
> 3462 if (par->ati_regbase == NULL)
> 3463 return -ENOMEM;
> 3464
>
> ---
> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
Luis Rodriguez, SUSE LINUX GmbH
Maxfeldstrasse 5; D-90409 Nuernberg
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] ia64: define ioremap_uc()
2016-03-06 12:14 drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc' kbuild test robot
2016-03-07 20:29 ` Luis R. Rodriguez
@ 2016-03-07 20:34 ` Luis R. Rodriguez
2016-03-15 22:07 ` Luis R. Rodriguez
2016-03-15 22:13 ` Andrew Morton
1 sibling, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2016-03-07 20:34 UTC (permalink / raw)
To: tony.luck
Cc: linux-ia64, linux-kernel, fengguang.wu, mingo, bp, Luis R. Rodriguez
All architectures now need ioremap_uc(), ia64 seems defines
this already through its ioremap_nocache() and it already
ensures it *only* uses UC.
Reported-by: 0 day bot
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---
Note, this is actually needed since v4.3 to complete an allyesconfig
compile on ia64, there were others archs that needed this, and this
one just seems to have fallen through the cracks.
arch/ia64/include/asm/io.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/ia64/include/asm/io.h b/arch/ia64/include/asm/io.h
index a865d2a04f75..5de673ac9cb1 100644
--- a/arch/ia64/include/asm/io.h
+++ b/arch/ia64/include/asm/io.h
@@ -433,6 +433,7 @@ static inline void __iomem * ioremap_cache (unsigned long phys_addr, unsigned lo
return ioremap(phys_addr, size);
}
#define ioremap_cache ioremap_cache
+#define ioremap_uc ioremap_nocache
/*
--
2.7.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ia64: define ioremap_uc()
2016-03-07 20:34 ` [PATCH] ia64: define ioremap_uc() Luis R. Rodriguez
@ 2016-03-15 22:07 ` Luis R. Rodriguez
2016-03-15 22:15 ` Luck, Tony
2016-03-15 22:13 ` Andrew Morton
1 sibling, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2016-03-15 22:07 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: tony.luck, linux-ia64, linux-kernel, fengguang.wu, mingo, bp,
Andrew Morton
On Mon, Mar 07, 2016 at 12:34:54PM -0800, Luis R. Rodriguez wrote:
> All architectures now need ioremap_uc(), ia64 seems defines
> this already through its ioremap_nocache() and it already
> ensures it *only* uses UC.
>
> Reported-by: 0 day bot
> Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
*Poke*
Luis
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ia64: define ioremap_uc()
2016-03-07 20:34 ` [PATCH] ia64: define ioremap_uc() Luis R. Rodriguez
2016-03-15 22:07 ` Luis R. Rodriguez
@ 2016-03-15 22:13 ` Andrew Morton
2016-03-15 22:17 ` Luck, Tony
1 sibling, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2016-03-15 22:13 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: tony.luck, linux-ia64, linux-kernel, fengguang.wu, mingo, bp
On Mon, 7 Mar 2016 12:34:54 -0800 "Luis R. Rodriguez" <mcgrof@kernel.org> wrote:
> All architectures now need ioremap_uc(), ia64 seems defines
> this already through its ioremap_nocache() and it already
> ensures it *only* uses UC.
>
> Reported-by: 0 day bot
> Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
> ---
>
> Note, this is actually needed since v4.3 to complete an allyesconfig
> compile on ia64, there were others archs that needed this, and this
> one just seems to have fallen through the cracks.
So a cc:stable was needed. I've added that to my copy of the patch.
Tony ack?
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] ia64: define ioremap_uc()
2016-03-15 22:07 ` Luis R. Rodriguez
@ 2016-03-15 22:15 ` Luck, Tony
0 siblings, 0 replies; 7+ messages in thread
From: Luck, Tony @ 2016-03-15 22:15 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: linux-ia64, linux-kernel, Wu, Fengguang, mingo, bp, Andrew Morton
>> All architectures now need ioremap_uc(), ia64 seems defines
>> this already through its ioremap_nocache() and it already
>> ensures it *only* uses UC.
>>
>> Reported-by: 0 day bot
>> Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
>
> *Poke*
Luis,
Thanks for the reminder. Applied.
-Tony
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] ia64: define ioremap_uc()
2016-03-15 22:13 ` Andrew Morton
@ 2016-03-15 22:17 ` Luck, Tony
0 siblings, 0 replies; 7+ messages in thread
From: Luck, Tony @ 2016-03-15 22:17 UTC (permalink / raw)
To: Andrew Morton, Luis R. Rodriguez
Cc: linux-ia64, linux-kernel, Wu, Fengguang, mingo, bp
>> Note, this is actually needed since v4.3 to complete an allyesconfig
>> compile on ia64, there were others archs that needed this, and this
>> one just seems to have fallen through the cracks.
>
> So a cc:stable was needed. I've added that to my copy of the patch.
> Tony ack?
Acked-by: Tony Luck <tony.luck@intel.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-03-15 22:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-06 12:14 drivers/video/fbdev/aty/atyfb_base.c:3461:2: error: implicit declaration of function 'ioremap_uc' kbuild test robot
2016-03-07 20:29 ` Luis R. Rodriguez
2016-03-07 20:34 ` [PATCH] ia64: define ioremap_uc() Luis R. Rodriguez
2016-03-15 22:07 ` Luis R. Rodriguez
2016-03-15 22:15 ` Luck, Tony
2016-03-15 22:13 ` Andrew Morton
2016-03-15 22:17 ` Luck, Tony
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®