Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx> --- usbredirparser/usbredirfilter.c | 2 ++ usbredirparser/usbredirfilter.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/usbredirparser/usbredirfilter.c b/usbredirparser/usbredirfilter.c index dfabacb..6b5310b 100644 --- a/usbredirparser/usbredirfilter.c +++ b/usbredirparser/usbredirfilter.c @@ -243,6 +243,7 @@ int usbredirfilter_verify( return 0; } +#if ! defined(__KERNEL__) void usbredirfilter_print( const struct usbredirfilter_rule *rules, int rules_count, FILE *out) { @@ -278,3 +279,4 @@ void usbredirfilter_print( product, version, rules[i].allow ? "Allow":"Block"); } } +#endif diff --git a/usbredirparser/usbredirfilter.h b/usbredirparser/usbredirfilter.h index c869e98..e595a60 100644 --- a/usbredirparser/usbredirfilter.h +++ b/usbredirparser/usbredirfilter.h @@ -131,9 +131,11 @@ int usbredirfilter_check( int usbredirfilter_verify( const struct usbredirfilter_rule *rules, int rules_count); +#if ! defined(__KERNEL__) /* Print the passed in rules to FILE out in human readable format */ void usbredirfilter_print( const struct usbredirfilter_rule *rules, int rules_count, FILE *out); +#endif #ifdef __cplusplus } -- 2.1.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel