Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2454001imm; Mon, 24 Sep 2018 04:47:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61mQaNwqwj1d1qyURDSIsqWT6wkI09X69nDP6vX7slgbPET0x+kGKTsgLWfEXjBxZpjv6Pr X-Received: by 2002:a63:1b0b:: with SMTP id b11-v6mr9173293pgb.66.1537789656493; Mon, 24 Sep 2018 04:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537789656; cv=none; d=google.com; s=arc-20160816; b=qsrsxUEV4bkystT69Ori3FhR1SuwaBKwSdnjQtujxBOfiVf+v9RSuif5aVUJpVKqa4 dnKvjLZn3z9DGliG3LMD0AMoOVQhYw1BGoarBXIEukADkmVbjU2qjFUrJPhgkpjjC/xr iFOt+JbzCsBMpgsRYaLcdFd73OYpqW4ROodSfnfC2jZSAiIXD0C66n7GB9IF6nKg3ij5 cshIkitVbSVA/4p1G00e1w2PR+WhAa8nJuwEGBWCW+ZAoRCV6l6JNX/FPI4a2jGIi30e 23f7rGJ0PYJg9qA7Q+y8fR7v0Y9Ekn5QXDrvS2OXq6W3M1PtW03wGVlHgawZEwehsceA /nNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=Nw/QbzbXfErEFlsKjK7+rWOVpm/HHRoicJscm1qa50w=; b=SX2w1zybQvB1NlE8D8jRE6giF9p82KpMCTOc6qodctZdaRwnoDAPnURLHD4C/dsyyP T7zd7nX9EHDQ8yzP4gmfjMnGZ4vlr9wOcixXYRkzpLFowgmsmuy15w5OQxzVgGn9Ap8E GPukxHXqZrDjRfl7FG+waclsqL0DWBbUCx7bS3mqBegdH3aXKhEFhcUIKBbmtz0DKfdv yK5WYtJNS9dDaeW1/0gV84c/LBJMCVUH+7HMdZyFlksd2QqD8Ak/w2JQOmQdosJQiycv Sx87TBSDGGdPWgTfhdvQPJYenyzfFrCcm07fF3HC2V2UmgNLxBYI8i/ZB22maM9CDsHR /TaA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb1-v6si38882832plb.128.2018.09.24.04.47.20; Mon, 24 Sep 2018 04:47:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729335AbeIXRlw (ORCPT + 99 others); Mon, 24 Sep 2018 13:41:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32462 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728954AbeIXRlv (ORCPT ); Mon, 24 Sep 2018 13:41:51 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B33203082E24; Mon, 24 Sep 2018 11:40:12 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8267B5C20D; Mon, 24 Sep 2018 11:40:12 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3E4441808855; Mon, 24 Sep 2018 11:40:12 +0000 (UTC) Date: Mon, 24 Sep 2018 07:40:11 -0400 (EDT) From: Pankaj Gupta To: Dan Williams Cc: Linux Kernel Mailing List , KVM list , Qemu Developers , linux-nvdimm , Jan Kara , Stefan Hajnoczi , Rik van Riel , Nitesh Narayan Lal , Kevin Wolf , Paolo Bonzini , Ross Zwisler , David Hildenbrand , Xiao Guangrong , Christoph Hellwig , "Michael S. Tsirkin" , niteshnarayanlal@hotmail.com, lcapitulino@redhat.com, Igor Mammedov , Eric Blake Message-ID: <247764824.15598220.1537789211903.JavaMail.zimbra@redhat.com> In-Reply-To: References: <20180831133019.27579-1-pagupta@redhat.com> <20180831133019.27579-2-pagupta@redhat.com> Subject: Re: [PATCH 1/3] nd: move nd_region to common header MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.116.59, 10.4.195.16] Thread-Topic: move nd_region to common header Thread-Index: IsiqCHf2PcKye+jwo9EBjSvu5SaxSQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 24 Sep 2018 11:40:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/3] nd: move nd_region to common header > > On Fri, Aug 31, 2018 at 6:31 AM Pankaj Gupta wrote: > > > > This patch moves nd_region definition to common header > > include/linux/nd.h file. This is required for flush callback > > support for both virtio-pmem & pmem driver. > > > > Signed-off-by: Pankaj Gupta > > --- > > drivers/nvdimm/nd.h | 39 --------------------------------------- > > include/linux/nd.h | 40 ++++++++++++++++++++++++++++++++++++++++ > > 2 files changed, 40 insertions(+), 39 deletions(-) > > No, we need to find a way to do this without dumping all of these > internal details to a public / global header. This is required when virtio_pmem driver accesses fields of nd_region struct. Instead if we pass device pointer in place of nd_region, we don't need to put this in global header. Thoughts? e.g virtio_pmem_flush(struct device *dev) Thanks, Pankaj