Re: [PATCH v3 7/8] video: xilinxfb: Fix sparse warnings

From
Michal Simek <monstr@monstr.eu>
Date
2013-05-31 16:33:18
Also in
lkml
Reply to
Arnd Bergmann, 2013-05-31
On 05/31/2013 05:29 PM, Arnd Bergmann wrote:
On Friday 31 May 2013 10:06:43 Timur Tabi wrote:
quoted
On 05/31/2013 09:56 AM, Arnd Bergmann wrote:
quoted
Yes, unfortunately, this is what all other frame buffer drivers do
at the moment. It is technically not correct, but most architectures
are able to call readl/writel on regular memory, or dereference
__iomem tokens, so we often get away with it. It's probably not
worth fixing it in the fbdev code base as that would be a huge
change, and people are migrating to DRM/KMS.
But why bother fixing this bug if it just makes things worse?  Sparse is
supposed to warn us about bad code.  This patch doesn't fix the bug, it
just masks the warnings!
Yes, good point. It's probably best cast the ioremap() output to
a regular pointer here, as that is actually just uncached RAM,
not an MMIO register.
ok. It means I will just remove this patch from this patchset.

Thanks,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform

Attachments

Thread (21 messages) 21 messages, 4 authors, last reply 2013-05-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help