Received: by 10.192.165.148 with SMTP id m20csp130640imm; Fri, 20 Apr 2018 04:21:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx48OghIcOuWv4v8ABshvhQ8ePXwPjSqLgbDotNCSmSgFM7vwl7XwbAfa0njP1V8Q/vyXfGxI X-Received: by 10.167.133.66 with SMTP id y2mr9437714pfn.210.1524223296012; Fri, 20 Apr 2018 04:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524223295; cv=none; d=google.com; s=arc-20160816; b=NLtWk4Alfk7zXdJwHtpDZ4vgm48Lfq64U1bZ2rlWPJIeCmilsmJ2TVy9DVnoftvn+7 4lwvMxeX9F75DrZ1hoqXCr7hrmIBEeEycnXgu/UwkiUtsmXH8XUJun8pND9jzYetYz8N 2cRIw3w4sX6X+/HebsjcRAWdto3wiHYQW1Y51CnKYCnpJ1eAgMc011LrOveGt+8eR3KD s9AQLflvZzHjAxVtnG4ebzyAgHZLO4L91cFB2fKJHFrujpoE9tEym06hp2rwJ49dYuMp HHZdEfFL+6Mxz1baNTRz40aWW6rtt1MElZUMmhDtTOXdeyV4YqBP/5QfQkjZnaRYrnfD Nkdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=TzLJlE4Zg6JXVX0qQrJB6pP5ORxlI9TtDOvJTCGZwO4=; b=OzVfKAR86fZJBQKUZ8yC67DtfV+ut52shKO27igoXHWqJBd0B9qqOitaB1tOStBncW N7U02Imp84L2fVZ4qTWs5aqSk/IyRYBSzFdR7Wu+P3NgZnplxqnrAQtxziftq/iGjiVG JYNnFkxMfCyDrDnyoHv/xX/mmHjqduMU9yeT3BgiOx5gUiNBJwnsXHj6v3LyYi8HUxcc 2ewAKTFLgw8An7tG6eWq7NMOFkfTYFUPNOG1ncdwK1nrgq+wwOlWUOIDQutDZDKLIqgt bGzQYnDM2YlWF3/b0PRgZsofoSC4eM1EC5mQ5aulX+u7qSQ5IrZ4Vqt0GNj34+QWJyhS B5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=IRo8aoSe; 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 p9si4653621pgu.80.2018.04.20.04.21.21; Fri, 20 Apr 2018 04:21:35 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=IRo8aoSe; 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 S1754664AbeDTLUN (ORCPT + 99 others); Fri, 20 Apr 2018 07:20:13 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:60008 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754549AbeDTLUM (ORCPT ); Fri, 20 Apr 2018 07:20:12 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 228175C0EE6; Fri, 20 Apr 2018 13:20:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1524223211; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TzLJlE4Zg6JXVX0qQrJB6pP5ORxlI9TtDOvJTCGZwO4=; b=IRo8aoSeCPNJPTjpwwk0St1zfEdVKFBM7sQ6/SbVFQEtDV6azEPKG0UYtnsRfI5dhmNQsz E+pa8Nerc7nSN7Ob6vFbUcN20kFT7Avjx+CaAZyKstvMPDpwoCfh9lGLu8r+P/88ltuQ0Y W0pSZGlkdIWCWOujkvNTPJGa1W3vP9E= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Fri, 20 Apr 2018 13:20:10 +0200 From: Stefan Agner To: Matthew Wilcox Cc: akpm@linux-foundation.org, mhocko@suse.com, 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 In-Reply-To: <20180420111510.GA10788@bombadil.infradead.org> References: <20180419214204.19322-1-stefan@agner.ch> <20180420111510.GA10788@bombadil.infradead.org> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-2.41 / 15.00]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:29691, ipnet:2a02:418::/29, country:CH]; RCVD_COUNT_ZERO(0.00)[0]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-2.31)[96.81%]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Stefan