From 3e47eb91f414c08872e61ab4c7808adf8b5109f1 Mon Sep 17 00:00:00 2001 From: Ori Kam Date: Tue, 26 Jun 2018 06:46:27 +0000 Subject: [PATCH] fix compliation issues Signed-off-by: Ori Kam --- src/devx.c | 6 ++++-- src/devx_uar.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/devx.c b/src/devx.c index c6785ec..cb0fb4e 100644 --- a/src/devx.c +++ b/src/devx.c @@ -177,7 +177,9 @@ struct devx_fs_rule_handle { uint32_t matcher_handle; }; -int __matcher_create(struct devx_fs_rule_handle *obj, void* in) +#include + +static int __matcher_create(struct devx_fs_rule_handle *obj, void* in) { DECLARE_COMMAND_BUFFER(cmd, MLX5_IB_OBJECT_FLOW_MATCHER, @@ -216,7 +218,7 @@ int __matcher_create(struct devx_fs_rule_handle *obj, void* in) return 0; } -int __matcher_destroy(struct devx_fs_rule_handle *obj) +static int __matcher_destroy(struct devx_fs_rule_handle *obj) { DECLARE_COMMAND_BUFFER(cmd, MLX5_IB_OBJECT_FLOW_MATCHER, diff --git a/src/devx_uar.c b/src/devx_uar.c index 218db37..f39842b 100644 --- a/src/devx_uar.c +++ b/src/devx_uar.c @@ -4,6 +4,7 @@ * See file LICENSE for terms. */ +#include #include #include #include "devx_ioctl.h"