[PATCH] powerpc: fsl_pamu_domain: Fix build error

2014-08-19 Thread Pranith Kumar
ote: each undeclared identifier is reported only once for each function it appears in make[2]: *** [drivers/iommu/fsl_pamu_domain.o] Error 1 make[1]: *** [drivers/iommu] Error 2 make: *** [drivers] Error 2 We fix this by trying to dereference pci_bus_type only if CONFIG_PCI is defined. Signed-o

Re: [PATCH 1/1] use documented cmpxchg api

2014-06-06 Thread Pranith Kumar
_Q is defined as -1 for > CONFIG_X86_32 so the 8-byte size variant is dead-code, and calls > __cmpxchg_wrong_size() instead. > > Fixed with the following v3: use the documented cmpxchg64 instead of __cmpxchg64. This kills the last user of said API in drivers code. Signed-off-by: Pranith Kuma

Re: [PATCH 1/1] use documented cmpxchg api

2014-06-05 Thread Pranith Kumar
On 06/05/2014 08:34 PM, Peter Hurley wrote: > On 06/05/2014 06:19 PM, Pranith Kumar wrote: >> use the documented atomic_cmpxchg instead of __cmpxchg64 >> >> This kills the last user of said API in drivers code. >> >> >> Signed-off-by: Pranith Kumar >>

[PATCH 1/1] use documented cmpxchg api

2014-06-05 Thread Pranith Kumar
use the documented atomic_cmpxchg instead of __cmpxchg64 This kills the last user of said API in drivers code. Signed-off-by: Pranith Kumar --- drivers/iommu/intel-iommu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel