[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131219011506.GA27326@localhost>
Date: Thu, 19 Dec 2013 09:15:06 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Wanlong Gao <gaowanlong@...fujitsu.com>
Cc: davem@...emloft.net, ffusco@...hat.com, kbuild-all@...org,
netdev <netdev@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [net-next/master PATCH] lib: fix compile warning in hashlib_init
CC the list.
On Thu, Dec 19, 2013 at 09:08:34AM +0800, Wanlong Gao wrote:
> /git/linux/lib/hash.c: In function 'hashlib_init':
> /git/linux/lib/hash.c:35:2: warning: passing argument 1 of 'setup_arch_fast_hash' from incompatible pointer type [enabled by default]
> /git/linux/include/asm-generic/hash.h:5:20: note: expected 'struct arch_hash_ops *' but argument is of type 'struct fast_hash_ops *'
>
> Reported-by: Fengguang Wu <fengguang.wu@...el.com>
> Signed-off-by: Wanlong Gao <gaowanlong@...fujitsu.com>
> ---
> include/asm-generic/hash.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/asm-generic/hash.h b/include/asm-generic/hash.h
> index 05cb342..b631284 100644
> --- a/include/asm-generic/hash.h
> +++ b/include/asm-generic/hash.h
> @@ -1,8 +1,8 @@
> #ifndef __ASM_GENERIC_HASH_H
> #define __ASM_GENERIC_HASH_H
>
> -struct arch_hash_ops;
> -static inline void setup_arch_fast_hash(struct arch_hash_ops *ops)
> +struct fast_hash_ops;
> +static inline void setup_arch_fast_hash(struct fast_hash_ops *ops)
> {
> }
>
> --
> 1.8.5.2.192.g7794a68
--
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