Re: [PATCH] bitops: Add missing parentheses to new get_order macro

From: Arnd Bergmann
Date: Fri Feb 24 2012 - 10:10:57 EST


On Friday 24 February 2012, Joerg Roedel wrote:
> d66acc39c7cee323733c8503b9de1821a56dff7e
>
> does not use parentheses around all uses of the parameter n.
> This causes new compile warnings, for example in the
> amd_iommu_init.c function:
>
> drivers/iommu/amd_iommu_init.c:561:6: warning: suggest parentheses around comparison in operand of â&â [-Wparentheses]
> drivers/iommu/amd_iommu_init.c:561:6: warning: suggest parentheses around comparison in operand of â&â [-Wparentheses]
>
> Fix those warnings by adding the missing parentheses.
>
> Reported-by: Ingo Molnar <mingo@xxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxx>
> Cc: David Howells <dhowells@xxxxxxxxxx>
> Cc: Arnd Bergmann <arnd@xxxxxxxx>
> Cc: H. Peter Anvin <hpa@xxxxxxxxx>
> Signed-off-by: Joerg Roedel <joerg.roedel@xxxxxxx>

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/