lkml.org 
[lkml]   [2015]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch for 4.0] x86: silence warning in /dev/mem support
Hi!

> > CC arch/x86/mm/ioremap.o
> > arch/x86/mm/ioremap.c: In function ‘xlate_dev_mem_ptr’:
> > arch/x86/mm/ioremap.c:363:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> > addr = (void *)((unsigned long)addr | (phys & ~PAGE_MASK));
> > ^
> > LD arch/x86/mm/built-in.o
> >
> > pavel@amd:/data/l/linux$ gcc --version
> > gcc (Debian 4.9.2-10) 4.9.2
>
> So this code has not been changed for a year or so in theory, and I've
> never seen this warning with GCC 4.9.1. I'm wondering how it
> triggered. Could you send me your .config that triggers this?

Config sent in private email. 32-bit kernel.

Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2015-04-17 11:21    [W:0.055 / U:4.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site