]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: batman-adv: Move hash callback related function to header
authorSven Eckelmann <sven.eckelmann@gmx.de>
Sun, 21 Nov 2010 23:55:58 +0000 (00:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:09:12 +0000 (11:09 -0800)
commit60eb502436910fb8118639e2ce4d7a4f732b6754
tree5a3360a6977db75723893b0c8b49bf073d496a12
parent6d5e654240dc14ded3d74aa5df6857572ba9f5e3
Staging: batman-adv: Move hash callback related function to header

To enable inlining of the function pointers hashdata_choose_cb,
hashdata_choose_cb and hashdata_free_cb, also the hash functions which
uses them must be inlined by the called function.

This should increase the performance, but also increases the size of the
generated machine code slightly.

Reported-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/hash.c
drivers/staging/batman-adv/hash.h