Re: [PATCH 1/6] acpi-dma: fix sparse warning

2013-07-22 Thread Vinod Koul
On Mon, Jul 15, 2013 at 03:04:36PM +0300, Andy Shevchenko wrote: > This patch fixes sparse warning: > drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32 > > Since everything in all ACPI tables is little-endian, by definition, the used > types in practice are uXX. Thus, we have

Re: [PATCH 1/6] acpi-dma: fix sparse warning

2013-07-22 Thread Vinod Koul
On Mon, Jul 15, 2013 at 03:04:36PM +0300, Andy Shevchenko wrote: This patch fixes sparse warning: drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32 Since everything in all ACPI tables is little-endian, by definition, the used types in practice are uXX. Thus, we have to

Re: [PATCH 1/6] acpi-dma: fix sparse warning

2013-07-16 Thread Viresh Kumar
On Mon, Jul 15, 2013 at 5:34 PM, Andy Shevchenko wrote: > This patch fixes sparse warning: > drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32 > > Since everything in all ACPI tables is little-endian, by definition, the used > types in practice are uXX. Thus, we have to

Re: [PATCH 1/6] acpi-dma: fix sparse warning

2013-07-16 Thread Viresh Kumar
On Mon, Jul 15, 2013 at 5:34 PM, Andy Shevchenko andriy.shevche...@linux.intel.com wrote: This patch fixes sparse warning: drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32 Since everything in all ACPI tables is little-endian, by definition, the used types in practice

[PATCH 1/6] acpi-dma: fix sparse warning

2013-07-15 Thread Andy Shevchenko
This patch fixes sparse warning: drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32 Since everything in all ACPI tables is little-endian, by definition, the used types in practice are uXX. Thus, we have to enforce __leXX if we want to convert them to CPU order.

[PATCH 1/6] acpi-dma: fix sparse warning

2013-07-15 Thread Andy Shevchenko
This patch fixes sparse warning: drivers/dma/acpi-dma.c:76:21: sparse: cast to restricted __le32 Since everything in all ACPI tables is little-endian, by definition, the used types in practice are uXX. Thus, we have to enforce __leXX if we want to convert them to CPU order.