From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754903AbbHGGjS (ORCPT ); Fri, 7 Aug 2015 02:39:18 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:59244 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753798AbbHGGjR (ORCPT ); Fri, 7 Aug 2015 02:39:17 -0400 Date: Thu, 6 Aug 2015 23:39:16 -0700 From: Christoph Hellwig To: Ross Zwisler Cc: linux-kernel@vger.kernel.org, linux-nvdimm@ml01.01.org, dan.j.williams@intel.com, Juergen Gross , x86@kernel.org, Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Thomas Gleixner Subject: Re: [PATCH 2/6] x86: clean up conditional pmem includes Message-ID: <20150807063916.GB11543@infradead.org> References: <1438883000-9011-1-git-send-email-ross.zwisler@linux.intel.com> <1438883000-9011-3-git-send-email-ross.zwisler@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438883000-9011-3-git-send-email-ross.zwisler@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 06, 2015 at 11:43:16AM -0600, Ross Zwisler wrote: > Prior to this change x86_64 used the pmem defines in > arch/x86/include/asm/cacheflush.h, and UM used the default ones at the > top of include/linux/pmem.h. The inclusion or exclusion in pmem.h was > controlled by CONFIG_ARCH_HAS_PMEM_API, but the ones in cacheflush.h > were controlled by ARCH_HAS_NOCACHE_UACCESS. > > Instead, control them both with CONFIG_ARCH_HAS_PMEM_API so that it's > clear that they are related and we don't run into the possibility where > they are both included or excluded. Also remove a bunch of stale > function prototypes meant for UM in cacheflush.h - these just conflicted > with the inline defaults in pmem.h, and gave compile errors: This looks reasonable, but can you use the opportunity to also move the pmem arch inlines from asm/cacheflush.h to a new asm/pmem.h?