[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] libxl: mark parameters in stub functions as unused

commit ad1d3db985249c64d65d8f73a4c49e2204ddf4e1
Author:     Wei Liu <wl@xxxxxxx>
AuthorDate: Thu Feb 13 21:40:27 2020 +0000
Commit:     Wei Liu <wl@xxxxxxx>
CommitDate: Fri Feb 14 11:08:53 2020 +0000

    libxl: mark parameters in stub functions as unused
    Hopefully this can fix issues like:
    In file included from ../../src/libxl/xen_xl.c:24:0:
 In function 'libxl_cpuid_apply_policy':
 error: unused parameter 'ctx' [-Werror=unused-parameter]
     static inline void libxl_cpuid_apply_policy(libxl_ctx *ctx, uint32_t 
domid) {}
    Fixes: dacb80f9 ("tools/libxl: Remove libxl_cpuid_{set,apply_policy}() from 
the API")
    Signed-off-by: Wei Liu <wl@xxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
 tools/libxl/libxl.h | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h
index d1d31b1e67..fde8548847 100644
--- a/tools/libxl/libxl.h
+++ b/tools/libxl/libxl.h
@@ -2342,9 +2342,13 @@ int 
libxl_cpuid_parse_config_xend(libxl_cpuid_policy_list *cpuid,
  * change in some cases for existing software, but there is 0 of that in
  * practice.
-static inline void libxl_cpuid_apply_policy(libxl_ctx *ctx, uint32_t domid) {}
-static inline void libxl_cpuid_set(libxl_ctx *ctx, uint32_t domid,
-                                   libxl_cpuid_policy_list cpuid) {}
+static inline void libxl_cpuid_apply_policy(libxl_ctx *ctx 
+                                            uint32_t domid 
+static inline void libxl_cpuid_set(libxl_ctx *ctx __attribute__((unused)),
+                                   uint32_t domid __attribute__((unused)),
+                                   libxl_cpuid_policy_list cpuid 
generated by git-patchbot for /home/xen/git/xen.git#staging

Xen-changelog mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.