Re: [PATCH v2 2/5] ARCv2: introduce unaligned access under a Kconfig option

From: Vineet Gupta
Date: Fri Feb 01 2019 - 18:37:40 EST


On 2/1/19 3:28 PM, Vineet Gupta wrote:
> Guess there's no solution to this. We could force select the option in relevant
> Kconfig, but this applies to pretty much every platform and defeats the purpose of
> option in first place.

Answering my own question:

#if defined(__ARC_UNALIGNED__) && !defined(CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS)
BUILD_BUG_ON_MSG(1, "gcc doesn't support disabling unaligned accesses");
#endif