Return-Path: Received: from mail-io0-f196.google.com ([209.85.223.196]:36716 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbcEYIBA (ORCPT ); Wed, 25 May 2016 04:01:00 -0400 MIME-Version: 1.0 In-Reply-To: <20160525072027.5107.qmail@ns.sciencehorizons.net> References: <20160525072027.5107.qmail@ns.sciencehorizons.net> Date: Wed, 25 May 2016 10:00:59 +0200 Message-ID: Subject: Re: [PATCH 00/10] String hash improvements From: Geert Uytterhoeven To: George Spelvin Cc: "linux-kernel@vger.kernel.org" , Linus Torvalds , alistair.francis@xilinx.com, Bruce Fields , Greg Ungerer , Jeff Layton , linux-m68k , "open list:NFS, SUNRPC, AND..." , Michal Simek , Thomas Gleixner , uclinux-h8-devel@lists.sourceforge.jp, Yoshinori Sato Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: Hi George, On Wed, May 25, 2016 at 9:20 AM, George Spelvin wrote: > I'm not particularly fond of the names of the header files I created, > but if anyone has a better idea please talk fast! 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. includes t. > arch/h8300/include/asm/archhash.h | 52 ++++++++++++ > arch/m68k/include/asm/archhash.h | 67 +++++++++++++++ > arch/microblaze/include/asm/archhash.h | 80 ++++++++++++++++++ > include/linux/hash.h | 111 ++++++++++++------------ > include/linux/stringhash.h | 76 +++++++++++++++++ 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