Return-Path: Received: from mail-ig0-f195.google.com ([209.85.213.195]:32845 "EHLO mail-ig0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753304AbcEYIuM (ORCPT ); Wed, 25 May 2016 04:50:12 -0400 MIME-Version: 1.0 In-Reply-To: <20160525081128.6920.qmail@ns.sciencehorizons.net> References: <20160525081128.6920.qmail@ns.sciencehorizons.net> Date: Wed, 25 May 2016 10:50:11 +0200 Message-ID: Subject: Re: [PATCH 00/10] String hash improvements From: Geert Uytterhoeven To: George Spelvin Cc: alistair.francis@xilinx.com, Bruce Fields , Greg Ungerer , Jeff Layton , "linux-kernel@vger.kernel.org" , linux-m68k , "open list:NFS, SUNRPC, AND..." , Michal Simek , Thomas Gleixner , Linus Torvalds , uclinux-h8-devel@lists.sourceforge.jp, Yoshinori Sato Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: On Wed, May 25, 2016 at 10:11 AM, George Spelvin wrote: > Geert Uytterhoeven wrote: >> Usually this is handled through include/asm-generic/. >> Put the generic default implementation in include/asm-generic/hash.h. >> >> Architectures that need to override provide their own version, e.g. >> arch/m68k/include/asm/hash.h. They may #include >> if they still want to reuse parts of the generic implementation. >> >> Other architectures add "generic-y += hash.h" to their >> arch//include/asm/Kbuild. > > I thought about that, but then I'd have to edit *every* architecture, > and might need acks from all the maintainers. > > I was looking for something that was a total no-op on most architectures. > > But if this is preferred, it's not technically difficult at all. As you only include if CONFIG_HAVE_ARCH_HASH is defined, you can also just call the arch-specific one . Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds