Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp1064174ima; Fri, 1 Feb 2019 15:46:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IayTnJ5Bv+zoxOed5as36OkaNHNXpvzGf4Dv1qWK+M61bs3HxpecLLTgKv6e8liHrVRHxg1 X-Received: by 2002:a63:a064:: with SMTP id u36mr4359522pgn.145.1549064819185; Fri, 01 Feb 2019 15:46:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549064819; cv=none; d=google.com; s=arc-20160816; b=W/mmGzh+PTMFSQbHbOaZPDtvvUYIfgBckv3EXqwpfwk275f/zXuOVgVmXXoYJVi1BS sp0JlM/OD0LvUF/ivGZrswqDZkhFAX95+1xk3xOZ037cwPfT4MqJrWSHoO0Z8T1kuwmk aR8GzcUPgsqsFl1EcH59FpizWOSabc9izSw9IW1XLSSqnEfKANkJmnntFNm3STSuIL7V Zpm3Ej+NrDwiT6nMXCs90K7QtIWy3qrwbIBHq7dovGgnrk2+pzyXRKk2/QiUEeRBVAbI RjtKFIUiLPbYXP1xUL4A2FLXKx1vKwMb1FwEDR3FENiQvTbRtWz62eCCm8kqcsk8i5gx UbNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=wncI4nIe3+wmRCHsyc1Bn8DY2Vqp1EQFMegf6phNXQM=; b=wafRjMEsGsnSn8NLx2ypss6SqQ+xBG1azTcKpZfaRCoCwxW075cnxXbepW2moXyqUg K47WhfukEtHVFmcXBRd1ayV0qQGwCNjroMO97PJtdvo9VZgnuv17y8OhY32HE/uDD0Dr Xkvm69goTf6nB8tml6LYu8N8/pWFUeOPAwE5n/6HvigWG/LYe6rHcn8aQg0LMBlY90VP 93wEvdtN/UL8D7ouZ+EkgFaIbAvJ1jocIJSKmT8ONrEK5XYmw2q2shhHND54/YGDZv4O uDuRLPZuUnrE9pkqbdO4jqY8+ubC/5CuGFqMd1NfeltJWGrVhfWXPfvK1LSbqX+a4Ejp MQWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=C98RIvPh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e66si9065341plb.107.2019.02.01.15.46.43; Fri, 01 Feb 2019 15:46:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=C98RIvPh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727119AbfBAXhi (ORCPT + 99 others); Fri, 1 Feb 2019 18:37:38 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:33998 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbfBAXhi (ORCPT ); Fri, 1 Feb 2019 18:37:38 -0500 Received: from mailhost.synopsys.com (dc8-mailhost1.synopsys.com [10.13.135.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id 9837324E25B6; Fri, 1 Feb 2019 15:37:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1549064257; bh=wncI4nIe3+wmRCHsyc1Bn8DY2Vqp1EQFMegf6phNXQM=; h=From:To:CC:Subject:Date:References:From; b=C98RIvPhudt0jfsfUIQJYOfmIrM8ONFt7JY3IvLDf8CssfbEKou+BTc+oZu4Pd9Fj iIIyV1XntcZQBBLLYuMtqco5TUvDZlkKTk8ulhofBgPSqgGqoQW6a0AefUcw24qPii AG6wNkSx7LCaoqnomJPf9eEB0kU6FgE6nFW8Q9OCLEAxJU7p8gMdB3OWVa17o12vaj sMcyGcMuqBVB5tT+Zd3ygUME94hY7F51f1iR+Q0wAeVWoKl7LJ4+i7KxrL8pBW5iZp pccFbVVabzGwNMCBB+RuWW6Z+0tsUT+MQqR3rhUNoVQRyIlvCAqEPl759ISzSimqMH jmGA/JGQDnxUQ== Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 89824A006A; Fri, 1 Feb 2019 23:37:37 +0000 (UTC) Received: from US01WEMBX2.internal.synopsys.com ([fe80::e4b6:5520:9c0d:250b]) by US01WXQAHTC1.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Fri, 1 Feb 2019 15:37:00 -0800 From: Vineet Gupta To: Eugeniy Paltsev , "linux-snps-arc@lists.infradead.org" CC: Alexey Brodkin , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 2/5] ARCv2: introduce unaligned access under a Kconfig option Thread-Topic: [PATCH v2 2/5] ARCv2: introduce unaligned access under a Kconfig option Thread-Index: AQHUuoXgAZHBPd/yM06NsivaDTeWvg== Date: Fri, 1 Feb 2019 23:36:59 +0000 Message-ID: References: <20190130163244.10870-1-Eugeniy.Paltsev@synopsys.com> <20190130163244.10870-3-Eugeniy.Paltsev@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/1/19 3:28 PM, Vineet Gupta wrote:=0A= > Guess there's no solution to this. We could force select the option in re= levant=0A= > Kconfig, but this applies to pretty much every platform and defeats the p= urpose of=0A= > option in first place.=0A= =0A= Answering my own question:=0A= =0A= #if defined(__ARC_UNALIGNED__) && !defined(CONFIG_ARC_USE_UNALIGNED_MEM_ACC= ESS)=0A= BUILD_BUG_ON_MSG(1, "gcc doesn't support disabling unaligned accesses");=0A= #endif=0A=