]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xsm: flask: Remove unused function avc_sidcmp
authorJulien Grall <julien.grall@linaro.org>
Wed, 26 Mar 2014 14:29:34 +0000 (15:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Mar 2014 14:29:34 +0000 (15:29 +0100)
Fix compilation with Clang 3.5:

avc.c:657:19: error: unused function 'avc_sidcmp' [-Werror,-Wunused-function]
static inline int avc_sidcmp(u32 x, u32 y)
                      ^

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/avc.c

index a26b34ae1dd5f0925874576d77514066538c095b..fc6580e0b62e1279b6b5d549b05929cd6c9fc8ef 100644 (file)
@@ -654,11 +654,6 @@ int avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid, u16 tclass,
     return rc;
 }
 
-static inline int avc_sidcmp(u32 x, u32 y)
-{
-    return (x == y || x == SECSID_WILD || y == SECSID_WILD);
-}
-
 /**
  * avc_update_node Update an AVC entry
  * @event : Updating event