Received: by 10.192.165.148 with SMTP id m20csp143845imm; Fri, 20 Apr 2018 04:35:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+jjFIEL7JeBZW98XLDmwTcBJvZ4n505vqaf2B0A4u+fYCaLioLvFeJTYPANfK7ackIPTNn X-Received: by 2002:a17:902:b68e:: with SMTP id c14-v6mr9877481pls.286.1524224130350; Fri, 20 Apr 2018 04:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524224130; cv=none; d=google.com; s=arc-20160816; b=i3nauxhV1LebRG5CDHe40kUKmDcxB/1siKxRbpmvhjym7rqK1IIhoFNCzPMD2YtjJU IdBNy3WV1tJcsIZF6wMFMgFDp8lGfGtkpbOgi9ZTaa69IkwDrxC5s5LDGLmvbxqAimb6 8EiNbrHKdmhttzeT/uxggcYpr9lKLXjN6KR8sTSsjhdu3/y7aj0GYCPmmL6zw97A2cM3 v/I6XK5Oul1RtcTKEIGj33hGNx5AluUVrNcQSCVoQl5lIqYXd0pUEOCU2gEHfPyXDZuI 4j99P4Ua1UIJ6nQMEYsP3qrwAsrRR2jrFrUCbX1+39+rIMzNUjkjooLEPKzGVysJ8W/n uagg== 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=lzjQhQaMgW/75p/NKQaPsVm9zr8hLZrzg/FPLI2OM9Q=; b=GcufX2FPO2KohTbtobH2HnTbfDMU/0rk08jdGuqWQ7aCQcnzDtTnuj7/yu7cm0vn45 i5t55D0t70y7WubpBEAEQ1oOVxVugJQVdpEqc/JzqLMep00hLfSuRD4NqvpY+wtaBOEP b8DuqzKcp/GuGTeDhyLg7Q5GpGBYgVLpKy3Qdu/EwDLQnSoNA5UZvhRSurrN/NHQ97Wd 0wTB3Ya+s2u5lELwdKeDX+UG1E3q2iJ0GWi15wAglV9W+i56Xspjuk/zlQvv8cZbbLab 6uX1kT4GIaIK0TnP8lzHrpSmvx47/fMnwnQ8sIeP/d4g+D4eSY7ExPIYkkjdwr6doodz sfqQ== 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 e2si5620144pfm.220.2018.04.20.04.35.14; Fri, 20 Apr 2018 04:35:30 -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 S1754652AbeDTLeI (ORCPT + 99 others); Fri, 20 Apr 2018 07:34:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:40611 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754549AbeDTLeH (ORCPT ); Fri, 20 Apr 2018 07:34:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B58B2AD02; Fri, 20 Apr 2018 11:34:05 +0000 (UTC) Date: Fri, 20 Apr 2018 13:34:04 +0200 From: Michal Hocko To: Stefan Agner Cc: Matthew Wilcox , akpm@linux-foundation.org, catalin.marinas@arm.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: <20180420113404.GZ17484@dhcp22.suse.cz> References: <20180419214204.19322-1-stefan@agner.ch> <20180420111510.GA10788@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 20-04-18 13:20:10, Stefan Agner wrote: > On 20.04.2018 13:15, Matthew Wilcox wrote: > > 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. > > > > There is? I don't see it in linux-next. > > The patch "mm/memblock: introduce PHYS_ADDR_MAX" got merged earlier this > week, should be in the -mm tree. Andrew hasn't released his mmotm tree yet so this is not in linux-next yet as well. -- Michal Hocko SUSE Labs