public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Warning when compiling arch/x86/mm/init_64.c on x86_64
@ 2008-06-10 21:07 Larry Finger
  2008-06-10 23:56 ` Kevin Winchester
  0 siblings, 1 reply; 2+ messages in thread
From: Larry Finger @ 2008-06-10 21:07 UTC (permalink / raw)
  To: Kevin Winchester, Ingo Molnar; +Cc: LKML

Since commit 511631011d39706ac81ee5e4c9084d61e5b4fd34, entitled
"x86: fix pointer type warning in arch/x86/mm/init_64.c:early_memtest", the 
following warning is produced for x86_64:

arch/x86/mm/init_64.c: In function ‘early_memtest’:
arch/x86/mm/init_64.c:520: warning: passing argument 2 of 
‘find_e820_area_size’ from incompatible pointer type

Before this commit, the compilation of this routine on my system was clean. I 
use gcc version 4.2.1. Was this the warning for i386 before the patch? I 
tried simple changes in the definition of find_e820_area_size, but only 
managed to push the warning on to the call to bad_addr_size. At that point I 
decided to let the experts find a proper fix. Note that the warning does no 
harm - I just get nervous about incompatible pointer warnings as it usually 
means that I have screwed something up.

Larry


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Warning when compiling arch/x86/mm/init_64.c on x86_64
  2008-06-10 21:07 Warning when compiling arch/x86/mm/init_64.c on x86_64 Larry Finger
@ 2008-06-10 23:56 ` Kevin Winchester
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Winchester @ 2008-06-10 23:56 UTC (permalink / raw)
  To: Larry Finger; +Cc: Ingo Molnar, LKML

Larry Finger wrote:
> Since commit 511631011d39706ac81ee5e4c9084d61e5b4fd34, entitled
> "x86: fix pointer type warning in arch/x86/mm/init_64.c:early_memtest", the 
> following warning is produced for x86_64:
> 
> arch/x86/mm/init_64.c: In function ‘early_memtest’:
> arch/x86/mm/init_64.c:520: warning: passing argument 2 of 
> ‘find_e820_area_size’ from incompatible pointer type
> 
> Before this commit, the compilation of this routine on my system was clean. I 
> use gcc version 4.2.1. Was this the warning for i386 before the patch? I 
> tried simple changes in the definition of find_e820_area_size, but only 
> managed to push the warning on to the call to bad_addr_size. At that point I 
> decided to let the experts find a proper fix. Note that the warning does no 
> harm - I just get nervous about incompatible pointer warnings as it usually 
> means that I have screwed something up.
> 

The patch was against linux-next, which seems to have changed 
find_e820_area_size() - against mainline it introduced the warning 
instead of fixing it.

-- 
Kevin Winchester


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-10 23:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 21:07 Warning when compiling arch/x86/mm/init_64.c on x86_64 Larry Finger
2008-06-10 23:56 ` Kevin Winchester

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox