[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20151015163712.GD32532@n2100.arm.linux.org.uk>
Date: Thu, 15 Oct 2015 17:37:12 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: "H. Nikolaus Schaller" <hns@...delico.com>
Cc: Nathan Lynch <nathan_lynch@...tor.com>,
Szabolcs Nagy <szabolcs.nagy@....com>,
Will Deacon <will.deacon@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
marek@...delico.com
Subject: Re: [PATCH v2] ARM: fix vdsomunge not to depend on glibc specific
byteswap.h
On Thu, Oct 15, 2015 at 07:52:38AM +0200, H. Nikolaus Schaller wrote:
> ERROR: space prohibited before that close parenthesis ')'
> #46: FILE: arch/arm/vdso/vdsomunge.c:64:
> + (((unsigned short)(x) & (unsigned short)0xff00U) >> 8) ))
I have a pet hatred of too many parens. I also have a hatred of idiotic
casts. What about changing the above to one of:
(((x) & 0xff00) >> 8)
(((x) >> 8) & 0xff)
>
> ERROR: space prohibited before that close parenthesis ')'
> #53: FILE: arch/arm/vdso/vdsomunge.c:71:
> + (((unsigned int)(x) & (unsigned int)0xff000000UL) >> 24) ))
and one of:
(((x) & 0xff000000) >> 24)
(((x) >> 24) & 0xff)
?
--
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists