summaryrefslogtreecommitdiffstats
path: root/drivers/staging/batman-adv/main.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven.eckelmann@gmx.de>2010-11-22 00:55:56 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-29 11:09:12 -0800
commit51f3d8a27c1a1ac6aced25ea93fc5c0520e9256c (patch)
tree1e0c1335745d82561754a82d6649c6cb255712e8 /drivers/staging/batman-adv/main.h
parent1341a00ad356dfb21978ce4e5e979024558042d2 (diff)
downloadop-kernel-dev-51f3d8a27c1a1ac6aced25ea93fc5c0520e9256c.zip
op-kernel-dev-51f3d8a27c1a1ac6aced25ea93fc5c0520e9256c.tar.gz
Staging: batman-adv: Remove hashdata_compare_cb from hash
Function pointers cannot be inlined by a compiler and thus always has the overhead of an call. hashdata_compare_cb's are one of the most often called function pointers and its overhead must kept relative low. As first step, every function which uses this function pointer takes it as parameter instead of storing it inside the hash abstraction structure. This not generate any performance gain right now. The called functions must also be able to be inlined by the calling functions to enable inlining of the function pointer. 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>
Diffstat (limited to 'drivers/staging/batman-adv/main.h')
-rw-r--r--drivers/staging/batman-adv/main.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/batman-adv/main.h b/drivers/staging/batman-adv/main.h
index d8d50f3..97a74b0 100644
--- a/drivers/staging/batman-adv/main.h
+++ b/drivers/staging/batman-adv/main.h
@@ -135,7 +135,6 @@ int mesh_init(struct net_device *soft_iface);
void mesh_free(struct net_device *soft_iface);
void inc_module_count(void);
void dec_module_count(void);
-int compare_orig(void *data1, void *data2);
int choose_orig(void *data, int32_t size);
int is_my_mac(uint8_t *addr);
int is_bcast(uint8_t *addr);
OpenPOWER on IntegriCloud