Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932428AbbDMU7y (ORCPT ); Mon, 13 Apr 2015 16:59:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58312 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751227AbbDMU7x (ORCPT ); Mon, 13 Apr 2015 16:59:53 -0400 Date: Mon, 13 Apr 2015 13:59:51 -0700 From: Andrew Morton To: "Kirill A. Shutemov" Cc: Pavel Emelyanov , Laurent Dufour , "Kirill A. Shutemov" , Hugh Dickins , Rik van Riel , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Ingo Molnar , linuxppc-dev@lists.ozlabs.org, cov@codeaurora.org, criu@openvz.org Subject: Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook Message-Id: <20150413135951.b3d9f431892dbfa7156cc1b0@linux-foundation.org> In-Reply-To: <20150413140219.GA14480@node.dhcp.inet.fi> References: <9d827fc618a718830b2c47aa87e8be546914c897.1428916945.git.ldufour@linux.vnet.ibm.com> <20150413115811.GA12354@node.dhcp.inet.fi> <552BB972.3010704@linux.vnet.ibm.com> <20150413131357.GC12354@node.dhcp.inet.fi> <552BC2CA.80309@linux.vnet.ibm.com> <552BC619.9080603@parallels.com> <20150413140219.GA14480@node.dhcp.inet.fi> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 37 On Mon, 13 Apr 2015 17:02:19 +0300 "Kirill A. Shutemov" wrote: > > Kirill, if I'm right with it, can you suggest the header where to put > > the "generic" mremap hook's (empty) body? > > I initially thought it would be enough to put it into > , expecting it works as > . But that's not the case. > > It probably worth at some point rework all to include > at the end as we do for . > But that's outside the scope of the patchset, I guess. > > I don't see any better candidate for such dummy header. :-/ Do away with __HAVE_ARCH_REMAP and do it like this: arch/x/include/asm/y.h: extern void arch_remap(...); #define arch_remap arch_remap include/linux/z.h: #include #ifndef arch_remap static inline void arch_remap(...) { } #define arch_remap arch_remap #endif -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/