Re: [PATCH v2] NVMe: Use put_unaligned_be64

2015-01-12 Thread Matthew Wilcox
On Sat, Jan 10, 2015 at 02:22:59PM +0530, Vaishali Thakkar wrote: > This patch introduces the use of function put_unaligned_be64. > > This is done using Coccinelle and semantic patch used is as follows: I appreciate you're using an automated tool to find the problem ... > diff --git a/drivers/bl

[PATCH v2] NVMe: Use put_unaligned_be64

2015-01-10 Thread Vaishali Thakkar
This patch introduces the use of function put_unaligned_be64. This is done using Coccinelle and semantic patch used is as follows: @a@ typedef u64, __be64, uint64_t; {u64,__be64,uint64_t} e64; identifier tmp; expression ptr; expression y,e; type T; @@ - tmp = cpu_to_be64(y); <+... when != tmp (