Received: by 10.192.165.148 with SMTP id m20csp49975imm; Fri, 20 Apr 2018 02:51:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/BMi7Fcentx/7agZaUd0J0J2045BDgSny7vZjuHvd5XMUPxWEYwYo7VkUSiCP0KVlGPopp X-Received: by 2002:a17:902:24e:: with SMTP id 72-v6mr9335257plc.87.1524217871034; Fri, 20 Apr 2018 02:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524217871; cv=none; d=google.com; s=arc-20160816; b=HuEsjpeEUM/n/sKqhChF7swK71zPjarCi7zi1tRA0WJW6XXqG+5o7u6psPZil+VdxU L4YMXpkHPHqvoqyZXa2z40lqk1hXMYrSoyFbS3TfPRR6bK3hwOS9PW5ZMwoJrFcfRXJu wPhqK4evFwkWaChL3E64/AOzOlI1iHWaOiKOfqC7JOipN73sMtrnLDTOtWddOKGOrk+T oz4JUxzJJD82XvLP6aqRwXrJHrsWpxTacBe6BgJEW8vFZ6T8ZuQWuYVEeGLUih6bw5mC VFUA+LA4zo+3s3CCRxv7jltw8O+DTq7XAUaXEbHCEtrFnwQH+s+abbIoQIOKFYBHH/UB uVZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=UbftEfDr34lbToWq7yqRUtp9Y+aNfDLe130EYgjzCS0=; b=lZCaU/jhhDxleya7WhFEUlwAM2ZOWuE7ru1uvijzWVtfKrM73FE+DkK2nR7cu34YxR 5eTpWI69gDmMUhUJShPRBYPS7FmFXoNcqpyD/lWosMIJIMN6wXAIfoT+rrs/0hBKZasB vtQ1ZHw0luH0TXxeibq2ktD5gRPvP4+bvlGf8fTzGxYs1KtftC6MvtdEupe5LGLb9HfU svsQQAQ4U6enNtdWw40BYcuhEjOmKV9z36z+PO3Eu1Ae6XWsJSyiXuYPvle0sgxVVFgP MZU98vBQ0xiTwVQlDgAt/EkAwUINoNECyxHdk22Rzq0wtTO13rs4nKHhO4pngHJ/TmeK D4Ng== 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 72si5050004pfn.44.2018.04.20.02.50.56; Fri, 20 Apr 2018 02:51:10 -0700 (PDT) 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 S1754471AbeDTJtt (ORCPT + 99 others); Fri, 20 Apr 2018 05:49:49 -0400 Received: from foss.arm.com ([217.140.101.70]:47226 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754255AbeDTJts (ORCPT ); Fri, 20 Apr 2018 05:49:48 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 19C7080D; Fri, 20 Apr 2018 02:49:48 -0700 (PDT) Received: from armageddon.cambridge.arm.com (armageddon.cambridge.arm.com [10.1.206.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9585C3F59D; Fri, 20 Apr 2018 02:49:46 -0700 (PDT) Date: Fri, 20 Apr 2018 10:49:44 +0100 From: Catalin Marinas To: Stefan Agner Cc: akpm@linux-foundation.org, mhocko@suse.com, torvalds@linux-foundation.org, pasha.tatashin@oracle.com, ard.biesheuvel@linaro.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] treewide: use PHYS_ADDR_MAX to avoid type casting ULLONG_MAX Message-ID: <20180420094943.25erqjuco7ern2sy@armageddon.cambridge.arm.com> References: <20180419214204.19322-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180419214204.19322-1-stefan@agner.ch> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 11:42:04PM +0200, Stefan Agner wrote: > With PHYS_ADDR_MAX there is now a type safe variant for all > bits set. Make use of it. > > Patch created using a sematic patch as follows: > > // > @@ > typedef phys_addr_t; > @@ > -(phys_addr_t)ULLONG_MAX > +PHYS_ADDR_MAX > // > > Signed-off-by: Stefan Agner > --- > arch/arm64/mm/init.c | 6 +++--- For arm64: Acked-by: Catalin Marinas