From: Fengguang Wu <fengguang.wu@intel.com>
To: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Cc: davem@davemloft.net, ffusco@redhat.com, kbuild-all@01.org,
netdev <netdev@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [net-next/master PATCH] lib: fix compile warning in hashlib_init
Date: Thu, 19 Dec 2013 09:15:06 +0800 [thread overview]
Message-ID: <20131219011506.GA27326@localhost> (raw)
In-Reply-To: <1387415314-21786-1-git-send-email-gaowanlong@cn.fujitsu.com>
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@intel.com>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.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
next parent reply other threads:[~2013-12-19 1:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1387415314-21786-1-git-send-email-gaowanlong@cn.fujitsu.com>
2013-12-19 1:15 ` Fengguang Wu [this message]
2013-12-19 1:32 ` [net-next/master PATCH] lib: fix compile warning in hashlib_init Daniel Borkmann
2013-12-19 1:36 ` Wanlong Gao
2013-12-19 5:15 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131219011506.GA27326@localhost \
--to=fengguang.wu@intel.com \
--cc=davem@davemloft.net \
--cc=ffusco@redhat.com \
--cc=gaowanlong@cn.fujitsu.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.