[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150709142155.f749ec0dd92b0a4ee0ba8d32@linux-foundation.org>
Date: Thu, 9 Jul 2015 14:21:55 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Laurent Dufour <ldufour@...ux.vnet.ibm.com>
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux MM <linux-mm@...ck.org>,
Linux-Arch <linux-arch@...r.kernel.org>
Subject: Re: mm: new mm hook framework
On Thu, 25 Jun 2015 10:42:45 +0200 Laurent Dufour <ldufour@...ux.vnet.ibm.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists