[LinuxPPS] Re: A couple of linuxpps compile fixes.

Rodolfo Giometti giometti at linux.it
Sun Oct 22 23:17:25 CEST 2006


On Sun, Oct 22, 2006 at 05:07:42PM -0400, linux at horizon.com wrote:
> 
> Sorry, I was lazy when I sent the patch and didn't do the thirty
> seconds of work (unpatch and recompile) to regenerate the messages.
> "git checkout HEAD^ drivers/pps/procfs.c" is your friend:
> 
>   CC      drivers/pps/procfs.o
> drivers/pps/procfs.c: In function 'linuxpps_procfs_assert_read':
> drivers/pps/procfs.c:40: warning: cast from pointer to integer of
> different size
> drivers/pps/procfs.c: In function 'linuxpps_procfs_clear_read':
> drivers/pps/procfs.c:53: warning: cast from pointer to integer of
> different size
> drivers/pps/procfs.c: In function 'linuxpps_procfs_create_source_entry':
> drivers/pps/procfs.c:118: warning: cast to pointer from integer of
> different size
> drivers/pps/procfs.c:125: warning: cast to pointer from integer of
> different size
> 
> That seemed the simplest way to shut up the warning, but I'm not
> terribly attached to it.

Ok, now I see. in Linux x86-64, ints are 32 bits, and pointers (and
longs) are 64 bits and storing an integer in storage for pointers is
unportable... currently I think is better keep the code untouched. :)

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list