Re: [RFC PATCH] bcache: enable big endian support for IBM s390x

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

 



> +static void swap_cache_sb_from_cpu(struct cache_sb *sb,
> +				   struct cache_sb *out)
> +{
> +	int i;
> +
> +	out->offset		= cpu_to_le64(sb->offset);
> +	out->flags		= cpu_to_le64(sb->flags);
> +	out->seq		= cpu_to_le64(sb->seq);

This looks completely bogus and sparse will complain loudly about it.
Please make sure you have proper endianess annotations in place.



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux