Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2657423imu; Mon, 19 Nov 2018 04:09:53 -0800 (PST) X-Google-Smtp-Source: AJdET5d+8kP5+0rBlSijs8q01+7akd3WQ4tVOSmMdoD9rkuPoDMA7uaxNqnFkmzIjuWLPYetRA8Z X-Received: by 2002:a62:ca9c:: with SMTP id y28mr3852767pfk.236.1542629393901; Mon, 19 Nov 2018 04:09:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542629393; cv=none; d=google.com; s=arc-20160816; b=xQXTq3sVRKMlB6I/F+q46bww/Y7a5avfkgX3bmcRKfVMAG+fVl7rFPV+rQlLTvvx23 m+C39NPfhJM9FmWwVUVSv2nnlMBnBGLXQKOMIXx8syorJ4nHLR6njq6lUe91NWMww4Cd 5TzAIFu5W6ftJXy7QxrNktFH0GciatUHJ7s2HhurHAO+QLDxcrHetDfvRZNlzFMYs1Rd jH+BVxlITIjb/Eil2m0nIjXvXP44tnSlyIr2yv0IeyLjph8eLXQDmhcUDH2ihntjg48o UGAp6VMpUWBSH3ArEcs+ya7LlTkOqH+4JPGweg4VyWg/LGcfKblOU7i2zpr/Q6m90UqO sA6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=zJAQeQpocZhMOf6I4luuz1ZbycrYuRFuq8xstnRbA+g=; b=BjMdWgo9taw4vv6Nv2Ir7hgEhw01v0+4seXVf1P4CV/O+klKqAr21qZ1HT3ZqfabGV 2CUC/TOpncq1JmICRFylemTAjpGjnHW8tcp5szKcnN4Hnpsz6t+O1WcfPYXzYqU+QlKl rCSdLSEGQEbc93L5REsswhDepNJA2lc9jIJXVBP0nahpUBCcPv3lfBlqNWzTCvgmN3pU r8gcgwkPPI38Fm2ct3Tonc9A5qVk8Z+ADxlDhT2nMd03rm+SKSIC54JEKNMWhsHsCiSM aZFyNs72egNsulwawZbaFwj16W1T1qQOPJ9gG/YKSNCUmu2e6hAs3uZ826CAz5mp1XzM H2EQ== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si13199991pgg.100.2018.11.19.04.09.38; Mon, 19 Nov 2018 04:09:53 -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 S1728723AbeKSWap convert rfc822-to-8bit (ORCPT + 99 others); Mon, 19 Nov 2018 17:30:45 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:54492 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728660AbeKSWap (ORCPT ); Mon, 19 Nov 2018 17:30:45 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-169-kQSol00lMqGqmkexHxz3NQ-1; Mon, 19 Nov 2018 12:07:16 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 19 Nov 2018 12:07:16 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Mon, 19 Nov 2018 12:07:16 +0000 From: David Laight To: 'Olof Johansson' , Catalin Marinas , Will Deacon CC: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] arm64: Explicitly mark 64-bit constant as unsigned long Thread-Topic: [PATCH] arm64: Explicitly mark 64-bit constant as unsigned long Thread-Index: AQHUfhiZwItjBBrszU+mUSyuKaet9KVXA/Iw Date: Mon, 19 Nov 2018 12:07:16 +0000 Message-ID: <51cf0f37dc694a858fcc422763f6ca72@AcuMS.aculab.com> References: <20181117015456.101222-1-olof@lixom.net> In-Reply-To: <20181117015456.101222-1-olof@lixom.net> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: kQSol00lMqGqmkexHxz3NQ-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olof Johansson > Sent: 17 November 2018 01:55 ... > -#if (SCTLR_EL2_SET ^ SCTLR_EL2_CLEAR) != 0xffffffffffffffff > +#if (SCTLR_EL2_SET ^ SCTLR_EL2_CLEAR) != 0xfffffffffffffffful > #error "Inconsistent SCTLR_EL2 set/clear bits" > #endif Wouldn't this be clearer if written: #if SCTLR_EL2_SET != ~SCTLR_EL2_CLEAR which then begs the question of why there are separate 'set' and 'clear' masks. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)