libvirt/0b1ecf7b-virHashCodeGen-mockable.patch

38 lines
1.1 KiB
Diff
Raw Normal View History

commit 0b1ecf7b5342f8631d1b1cce8a7937bda511be98
Author: Peter Krempa <pkrempa@redhat.com>
Date: Wed Aug 2 17:31:14 2017 +0200
util: hash: Make virHashCodeGen mockable
Export the function from the util module so that dynamic linking can
override it.
Index: libvirt-3.6.0/src/libvirt_private.syms
===================================================================
--- libvirt-3.6.0.orig/src/libvirt_private.syms
+++ libvirt-3.6.0/src/libvirt_private.syms
@@ -1776,6 +1776,10 @@ virHashUpdateEntry;
virHashValueFree;
+# util/virhashcode.h
+virHashCodeGen;
+
+
# util/virhook.h
virHookCall;
virHookInitialize;
Index: libvirt-3.6.0/src/util/virhashcode.h
===================================================================
--- libvirt-3.6.0.orig/src/util/virhashcode.h
+++ libvirt-3.6.0/src/util/virhashcode.h
@@ -30,6 +30,7 @@
# include "internal.h"
-uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed);
+uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed)
+ ATTRIBUTE_NOINLINE;
#endif /* __VIR_HASH_CODE_H__ */