Blob Blame History Raw
From 677e51935f9030a779956cf3c6fb0f4d2fb19c10 Mon Sep 17 00:00:00 2001
From: Han Zhou <hzhou@ovn.org>
Date: Wed, 29 Jul 2020 18:36:38 -0700
Subject: [PATCH 14/22] expr.c: Fix argument type of expr_write_scope().

There is compile error introduced by the commit 2054d01247.
***
../lib/expr.c:3328:6: error: symbol 'expr_type_check' redeclared with different
type (originally declared at ../include/ovn/expr.h:481) - incompatible argument
4 (different signedness)
Makefile:1971: recipe for target 'lib/expr.lo' failed
***

Fixes: 2054d01247 ("Add expression writeability scopes.")
Acked-by: Ankur Sharma <ankur.sharma@nutanix.com>
Signed-off-by: Han Zhou <hzhou@ovn.org>
(cherry picked from upstream commit c64ed2a9bb175539ed9493a08e31cc29d10aa8df)

Change-Id: I1de528787319b21a50bdcebbe60894026b32ab06
---
 lib/expr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/expr.c b/lib/expr.c
index c07e7dd4d..6fb96757a 100644
--- a/lib/expr.c
+++ b/lib/expr.c
@@ -3327,7 +3327,7 @@ expr_evaluate(const struct expr *e, const struct flow *uflow,
  * must free(). */
 char * OVS_WARN_UNUSED_RESULT
 expr_type_check(const struct expr_field *f, int n_bits, bool rw,
-                uint32_t write_scope)
+                enum expr_write_scope write_scope)
 {
     if (n_bits != f->n_bits) {
         if (n_bits && f->n_bits) {
-- 
2.26.2