From patchwork Fri Dec 16 10:56:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101399 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1333793qgi; Fri, 16 Dec 2016 02:58:44 -0800 (PST) X-Received: by 10.84.174.129 with SMTP id r1mr5641808plb.19.1481885924029; Fri, 16 Dec 2016 02:58:44 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s5si7237634pgh.255.2016.12.16.02.58.43; Fri, 16 Dec 2016 02:58:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761278AbcLPK6X (ORCPT + 25 others); Fri, 16 Dec 2016 05:58:23 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:55340 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760765AbcLPK5G (ORCPT ); Fri, 16 Dec 2016 05:57:06 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0M7az9-1cV8Ld41ax-00xLHO; Fri, 16 Dec 2016 11:56:51 +0100 From: Arnd Bergmann To: linux-arch@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@vger.kernel.org, Russell King , Andrew Morton , kernel-build-reports@lists.linaro.org, kvmarm@lists.cs.columbia.edu, Arnd Bergmann Subject: [PATCH 12/13] KVM: arm: avoid binary number literals for gcc-4.2 Date: Fri, 16 Dec 2016 11:56:33 +0100 Message-Id: <20161216105634.235457-13-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161216105634.235457-1-arnd@arndb.de> References: <20161216105634.235457-1-arnd@arndb.de> X-Provags-ID: V03:K0:4IxGduhOqB6XjZRZdXj+cuX90DpwIk9iqclSsMk96W+BO+7ZEu7 +CqLJK16S4jTFItVCCpOQtpa1zvDt9f7W/Uan16smhpSvg2HmjuKBkJxSeytT+j0PL1JQFM d3WbS4TWCdwxFa8WeH2QProrFOu7Hm3za6i2xNArKMstK8UxAbDwofyyR0PLqo7vSuci8F2 DmDrg5Pd1+lOxVjMphOLg== X-UI-Out-Filterresults: notjunk:1; V01:K0:jrtifOEhEok=:zgBt5ixz/ueXrLmGOFq9Je L7qTXZ8CXoXaSXGm+PPlBA3JNA8NfU0qcsM1ov9IqT0ICj/HxWowegRYIpcyVTTqDM+qJMafl 0BHJN1gq+KwiDzGBMX7+ZRvaNp6zvc+iQhe+rVv7n/RBi1GfM6dqy/fMn3Qjp9IRFMUMxd+rO FDniCcMQq/gMZ0koXanYtJl8XSy9dSF9R8H7U80TvzQMngTtu8RKN1lmAz4GcZjruV36DmyAu JADWHke9rG/g4KVmH+C/xJSA2KevSvZMCJ7PdIPKv0QsXjqKzE0CUqdeJA6bRMyxqtwPysjj6 OAeTpoJRYo7Uv7rKVF6R+bAf5yAYDjgwPznf0O0WU/n9SQACOYVWCG9n2C36160S/DNdM9z5R bNYvZj7RzBJXnECfUYHj7V8Zdf1WORT/a4Ui+8fL9GjRcJQy0odBQOIWvDOvb8BoqDq38cfR/ 0X2yFdsFer7jRppSUYlh1zVx3yqvs3u4TDFfwILDPWVRmOQTRBA4oDoY/vB1gCaAnwsmbB+CW C2Z4e71EBnhFoTO500TyTnGL27mLiaH3ODCPi+kSC94QA9TJnCRfV543woKWy85tfS5GC9SxI EU4U/8GwL8XYvZbc715+2QJX8HyBwrqd7zlbjQrKkNcRCicnAF+xdt5He1qDAHi/S2qQXfgcE cCAlyZrh7+9j+mPPiVKFX7x0AAfI7fN4JyDLYf6hd+p401yv/2UyT13wpkT4M1nadorc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Old gcc versions prior to 4.3 don't understand the 0b... syntax for numbers, and this seems to be the only instance in the kernel, so better use hexadecimal instead. arch/arm/include/asm/kvm_mmu.h:127:38: error: invalid suffix "b101" on integer constant Fixes: 159793001d7d ("ARM: KVM: force cache clean on page fault when caches are off") Signed-off-by: Arnd Bergmann --- arch/arm/include/asm/kvm_mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/arch/arm/include/asm/kvm_mmu.h b/arch/arm/include/asm/kvm_mmu.h index 74a44727f8e1..61121300174f 100644 --- a/arch/arm/include/asm/kvm_mmu.h +++ b/arch/arm/include/asm/kvm_mmu.h @@ -124,7 +124,7 @@ struct kvm; static inline bool vcpu_has_cache_enabled(struct kvm_vcpu *vcpu) { - return (vcpu_cp15(vcpu, c1_SCTLR) & 0b101) == 0b101; + return (vcpu_cp15(vcpu, c1_SCTLR) & 0x5) == 0x5; } static inline void __coherent_cache_guest_page(struct kvm_vcpu *vcpu,