Received: by 10.223.176.5 with SMTP id f5csp3117548wra; Thu, 1 Feb 2018 11:02:13 -0800 (PST) X-Google-Smtp-Source: AH8x2270PKjuWXahLDQyZeRYeZTBxhkAckS9/94II2BjGdGRoFTXhuUfoI4+Ye/Kf8fy9C78WS51 X-Received: by 10.99.112.70 with SMTP id a6mr29171920pgn.152.1517511732959; Thu, 01 Feb 2018 11:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517511732; cv=none; d=google.com; s=arc-20160816; b=TlKYQC5K7niWzl3qHb9MAZJLyCKMXVIYkO6AevMcPmT+Q3hMKkVneuHjyyIErLed2h 8L80OpWX0OyD32qZ8QmS7xHf7B8ZyoOhwBFV/TLOkbjxiQ+RPO/LnpoD/k/PUxgu3dxM IzxOLgT6k8sUQtPooJQjlwFuPW7Yls0QIK99d7cNJo9Jnn5JjoGZo3u6iI+McJwpcC2n EsBH77h0jW0GwIwYm8JoUFAb/U19jtxbf7sCmlqI+1LV1vSimu9Svq9wpHM8h43J/iVW rxtjTbABkvXhyF1VAdVHw37mP4um1jtMcz2s/7tfviwFnqgNX43oiN6zwNaoSOtPUEU/ FDUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature :arc-authentication-results; bh=yCBN/5ljilYDB4WY+xLk7AFZ3d1c4JKNsGFUfOBspJU=; b=Ybt6OVKqBwCqEseIH8L7oKE6iqOzrcFlZJDZ4a5aIgp8z29Hn9FC3GMJYuZYPNMJXa lRbRA4FfBtbErIwi4mvow41BhkOvWqnsnPBkKTArvVq964uehHn09avhQ+OYSvz/vwZI crKdDyJVNtWCdKmnOoINBLimfNVYOCw21hJfl7RswQdvMyPS9vbPHFkAPIHJqZskIPaa mSFlg6AAyHC5h5pz//wRfwyKdvQ4Wi03rfC7EelsJlg/9dDNqKeoot0L2m8bAPIZZIEK bfh7OwIwG7ufdY2aX85fjH0DWQ2YA18mHNjrWcMFju0B18EpZ4bygM7rA2DG9wHk9XN6 uaPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NPsNAvKL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g78si176276pfe.174.2018.02.01.11.01.46; Thu, 01 Feb 2018 11:02:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NPsNAvKL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754607AbeBATAx (ORCPT + 99 others); Thu, 1 Feb 2018 14:00:53 -0500 Received: from mail-qk0-f172.google.com ([209.85.220.172]:42869 "EHLO mail-qk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752292AbeBATAo (ORCPT ); Thu, 1 Feb 2018 14:00:44 -0500 Received: by mail-qk0-f172.google.com with SMTP id f68so481757qke.9; Thu, 01 Feb 2018 11:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=yCBN/5ljilYDB4WY+xLk7AFZ3d1c4JKNsGFUfOBspJU=; b=NPsNAvKLryZmli8D+fEYrcDiNEbTP5vBTEg6uImm9SMqBWFEhHxQ0lotYpQoWLnbxg C81NyIavTli1wGSSV6+ikgdQOlC0gSr6hPSNbokX4fSPktBwOJjiL74uwL7EUkhiRgMN FbjM/bk3JyMFEJPcFlM5U4d0yqBs7fcWaLI1uGmuYdnaBNE3zisK6hyQTNCUGvWB5uFE xNTn2xs9xiWMWwTl/t8emnXmrCGwrhQ6cEoOf4ozibAOwHJh25+gKaSStsXj+bWotjWI zHfb0muhJBdwsSJcmOQBwOHxODBKmWo+wLJAEph7v9NUf94S+n+jwS0bTprsV0hEellh 8ZnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=yCBN/5ljilYDB4WY+xLk7AFZ3d1c4JKNsGFUfOBspJU=; b=Y6RWTmSKk+yQxFw7xMO3xLDjG0QTaDEfPzms1prk6RJHQZiVzHReOyYVsA78uBoXmR vnMmoHXZnOUX5x1MFblhQdxabZCKDF5HYu5DqVQJuFE6d++YfWbcMCSoGJxgEEOdIoD6 OAQe4v0dNIvzb3Zwh+dumjAAoHY91nR4LNLXmw2GSFLcRbsdK+i2pYa1nSL/vRoeVvNI TF4seKtpNzVpNwSgCq/+bE2Ig7J5nwXJ7N0OIU2+yY1tEFKjcfuCLtwFcmR0SpnsnagT G6Ll1puQd8lg/yKAC8f74J+cBIhusEj4PMHvoetI6BJNyw0v4TWKqyBKSxbsb4wC5JHI 1dRA== X-Gm-Message-State: AKwxyteK6H3OCAWtNgCV7Rufy8UoC70I3nFCrEQ2FcO3n/FQduLkYF9D m2gxBViNLv5FuceooEbwT9k= X-Received: by 10.55.178.199 with SMTP id b190mr51519984qkf.348.1517511644042; Thu, 01 Feb 2018 11:00:44 -0800 (PST) Received: from DESKTOP3JAHB13 ([2607:b400:26:0:d013:571:e578:cbf5]) by smtp.gmail.com with ESMTPSA id y72sm199873qkg.3.2018.02.01.11.00.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 11:00:43 -0800 (PST) From: "Jingoo Han" To: "'Andy Shevchenko'" , "'Niklas Cassel'" Cc: "'Kishon Vijay Abraham I'" , "'Joao Pinto'" , "'Lorenzo Pieralisi'" , "'Bjorn Helgaas'" , "'Niklas Cassel'" , , "'Linux Kernel Mailing List'" References: <20180201161119.3852-1-niklas.cassel@axis.com> <20180201161119.3852-4-niklas.cassel@axis.com> In-Reply-To: Subject: Re: [PATCH 3/3] PCI: designware-ep: Return an error when requesting a too large BAR size Date: Thu, 1 Feb 2018 14:00:40 -0500 Message-ID: <000601d39b8e$f58a76f0$e09f64d0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQIbMSTG4fR7CDNEjdPGIK+atFW6EADXJGl4AlTbNjqi51tV8A== Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, February 1, 2018 1:58 PM, Andy Shevchenko wrote: > > On Thu, Feb 1, 2018 at 6:11 PM, Niklas Cassel > wrote: > > include/linux/sizes.h: > > +SZ_4G 0x100000000ULL > > > + if (size > 0x100000000ULL) { > > #include > > if (size > SZ_4G) { I like this one for the readability. Thank you. Best regards, Jingoo Han > > ? > > -- > With Best Regards, > Andy Shevchenko