Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753801AbbGIVW1 (ORCPT ); Thu, 9 Jul 2015 17:22:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51896 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753837AbbGIVV5 (ORCPT ); Thu, 9 Jul 2015 17:21:57 -0400 Date: Thu, 9 Jul 2015 14:21:55 -0700 From: Andrew Morton To: Laurent Dufour Cc: Geert Uytterhoeven , Linux Kernel Mailing List , Linux MM , Linux-Arch Subject: Re: mm: new mm hook framework Message-Id: <20150709142155.f749ec0dd92b0a4ee0ba8d32@linux-foundation.org> In-Reply-To: <558BBF05.1050703@linux.vnet.ibm.com> References: <20150625040814.6C421660F7B@gitolite.kernel.org> <558BBF05.1050703@linux.vnet.ibm.com> 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: 957 Lines: 20 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 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/