Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52534

Summary: ppc64-sources-2.6.6-r0 warnings: cast from different size pointers
Product: Gentoo Linux Reporter: Philippe Trottier (RETIRED) <tchiwam>
Component: [OLD] Core systemAssignee: ppc64 architecture team <ppc64>
Status: VERIFIED WONTFIX    
Severity: normal    
Priority: High    
Version: 2004.1   
Hardware: PPC64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log from kernel make

Description Philippe Trottier (RETIRED) gentoo-dev 2004-05-31 02:53:42 UTC
I have noticed these warnings while compile the kernel...

this is something I am usually scared of as it might break stuff in not so easy to find way. and there is quite many like that... in the kernel

Where can it be bad, many programmer make a nice struct to make it easy to load set and get information from hardware, that is good ... they sometimes use long instead of int for 32bit fields and that is bad, or again worst use for example (char *) in their pointers read the whole struct at once from an hardware device... fine if the pointer is 32bit, but we have here 64bit pointers, normally the hardware don't really know about the cpu being 64 or 32 bits.

We should at least check all of them and make sure they don't break and are just that, innofencive warnings.

I hope this helps.
Comment 1 Philippe Trottier (RETIRED) gentoo-dev 2004-05-31 02:55:15 UTC
Created attachment 32373 [details]
Log from kernel make
Comment 2 Tom Gall (RETIRED) gentoo-dev 2004-06-02 19:15:03 UTC
 noted ...  don't plan to do much about it ....
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-06-12 21:52:05 UTC
sticking a fork in it