From: Andrew Morton Subject: Re: mm: new mm hook framework Date: Thu, 9 Jul 2015 14:21:55 -0700 Message-ID: <20150709142155.f749ec0dd92b0a4ee0ba8d32@linux-foundation.org> References: <20150625040814.6C421660F7B@gitolite.kernel.org> <558BBF05.1050703@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <558BBF05.1050703@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org To: Laurent Dufour Cc: Geert Uytterhoeven , Linux Kernel Mailing List , Linux MM , Linux-Arch List-Id: linux-arch.vger.kernel.org On Thu, 25 Jun 2015 10:42:45 +0200 Laurent Dufour wrote: > > IMHO this screams for the generic version in include/asm-generic/, > > and "generic-y += mm-arch-hooks.h" in arch/*/include/asm/Kbuild/. > > I do like your proposal which avoid creating too many *empty* files. > Since Andrew suggested the way I did the current patch, I'd appreciate > his feedback too. But this infrastructure works the other way. If an architecture wants a private implementation of arch_remap(), it adds a definition into arch/XXX/include/asm/mm-arch-hooks.h and does #define arch_remap arch_remap. If the architecture is OK with the default implementation of arch_remap(), it does nothing at all. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org