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.
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux