Re: [PATCH] binfmt_elf CodingStyle cleanup and remove some pointless casts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Jesper Juhl <[email protected]> wrote:
> We still need to cast u_platform from pointer to integer or gcc will yell 
>  at us. But, I don't see why we should first cast it to `unsigned long' and 
>  then to elf_addr_t, so I removed the `unsigned long' cast.

On 64 bit platforms, these:

	some_pointer = (something *)some_u32;
	some_u32 = (u32)pointer;

will generate compile warnings concerning the differently-sized quantities
on the lhs and rhs.

The usual way of suppressing this is

	some_pointer = (something *)(unsigned long)some_u32;
	some_u32 = (unsigned long)pointer;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at
Please read the FAQ at

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux