Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1370742ybl; Sun, 18 Aug 2019 02:04:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKN+IZ3TgBR7fZVsL2ounG6Bi/uyn1PkXuDFdd1L9leFnhL+kpRy3scGWMPXxhA70gfu6y X-Received: by 2002:a63:f926:: with SMTP id h38mr14980075pgi.80.1566119081360; Sun, 18 Aug 2019 02:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566119081; cv=none; d=google.com; s=arc-20160816; b=F0vpUz2IGPoINHWz10EMyJpSsKud4MAx1DEDjWf9oGQtYGHF671f12genaX/obW9/x 1TxfjmeL87tsyOfYJW/LDKrrpSIAzyYcMKtS4l1m8W31KZNjAuUJsB0mYb/MymQb1Bid xEO5jMDhCT7y/qbijwFIdRDJP5LReE5wCGPJ/ncQDb0/XfWbsBKtWhGzUzM5+CnZEDrI psajXELNwItC25nbQCUE3bIgFHKb2uTraplpMqsqQ4PPAJM2qywLApz8pO12jyALnbyG Nicdr1Lf4/GoMbTRpzMMkRTOpq/bGEZjQjoiQOEjXLfyuzSIZGH1s7PRWFhD8JxOOibo +ZpQ== 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; bh=yqr7Mvt3N6h0la9Ymc3ixYOS610+YEC5kbvfZcyfF3k=; b=ph5MP8doXH+mv3MksW6fTRRw3U/qAt3r/Lhy2i1kgJEaQl25+XPo3D25HYeh93UdA3 mGdL+PeMIrIGKcyaFUTsx0AFMIl2dCYrhvPSf9pkMrLQV5O1PGFwwsYmLfh3csnSdhAP Nb3E3whijSnYc+LSySw1JCK533Gn1LLeVw11cpxMMxMILD/O8IOH8WI8MZLdjplY6l/x vbfvmCOg3oxdfGZXS42dRbI86XMZLmKVAqn6JGXUiE3cUNnoGCzapTYFTActVm29GRsl GPr/6MqmrA8Aa4KX8f9nHAZckKi8WWN+WZNu2graXnmc8wF0PrW/425IeJgMOoVkUR+S I1lA== 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 60si7551951plf.398.2019.08.18.02.04.26; Sun, 18 Aug 2019 02:04:41 -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 S1726397AbfHRJDk (ORCPT + 99 others); Sun, 18 Aug 2019 05:03:40 -0400 Received: from verein.lst.de ([213.95.11.211]:39051 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbfHRJDk (ORCPT ); Sun, 18 Aug 2019 05:03:40 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 175DB227A81; Sun, 18 Aug 2019 11:03:35 +0200 (CEST) Date: Sun, 18 Aug 2019 11:03:34 +0200 From: Christoph Hellwig To: Andrew Morton Cc: Christoph Hellwig , Dan Williams , Jason Gunthorpe , Bharata B Rao , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org Subject: Re: [PATCH 1/4] resource: add a not device managed request_free_mem_region variant Message-ID: <20190818090334.GA20462@lst.de> References: <20190816065434.2129-1-hch@lst.de> <20190816065434.2129-2-hch@lst.de> <20190816140134.1f3225bed9bf2734c03341b1@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816140134.1f3225bed9bf2734c03341b1@linux-foundation.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 16, 2019 at 02:01:34PM -0700, Andrew Morton wrote: > On Fri, 16 Aug 2019 08:54:31 +0200 Christoph Hellwig wrote: > > > Just add a simple macro that passes a NULL dev argument to > > dev_request_free_mem_region, and call request_mem_region in the > > function for that particular case. > > Nit: > > > +struct resource *request_free_mem_region(struct resource *base, > > + unsigned long size, const char *name); > > This isn't a macro ;) Oops, the changelog needs updating vs the first version of course.