Julien Grall
5c65f9d5fc
tools/libxc: misc: Mark const the parameter 'keys' of xc_send_debug_keys()
...
OCaml is using a string to describe the parameter 'keys' of
xc_send_debug_keys(). Since Ocaml 4.06.01, String_val() will return a
const char * when using -safe-string. This will result to a build
failure because xc_send_debug_keys() expects a char *.
The function should never modify the parameter 'keys' and therefore the
parameter should be const. Unfortunately, this is not directly possible
because DECLARE_HYPERCALL_BOUNCE() is expecting a non-const variable.
A new macro DECLARE_HYPERCALL_BOUNCE_IN() is introduced and will take
care of const parameter. The first user will be xc_send_debug_keys() but
this can be used in more place in the future.
Reported-by: Dario Faggioli <dfaggioli@suse.com >
Signed-off-by: Julien Grall <jgrall@amazon.com >
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com >
(cherry picked from commit 2b8079610e )
2021-03-19 13:41:20 +00:00
..
2021-03-19 13:41:20 +00:00
2010-08-24 18:42:59 +01:00
2019-05-13 11:28:27 +01:00
2019-09-04 16:17:39 +01:00
2013-12-04 14:02:10 +00:00
2017-09-05 17:35:57 +01:00
2015-12-02 15:27:38 +00:00
2017-10-11 12:20:17 +01:00
2015-07-29 11:14:07 +01:00
2017-10-11 12:20:17 +01:00
2015-07-29 11:14:07 +01:00
2019-03-20 16:52:01 +00:00
2017-10-11 12:20:17 +01:00
2019-04-09 19:34:41 +01:00
2020-05-05 15:48:05 +01:00
2017-02-16 12:47:10 +00:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2018-01-25 12:26:55 +01:00
2018-01-17 11:32:23 +00:00
2015-07-29 11:14:07 +01:00
2015-09-28 17:28:35 +02:00
2018-08-10 13:27:24 +01:00
2016-09-19 17:03:20 +01:00
2018-01-16 18:34:04 +00:00
2018-02-13 11:45:56 +00:00
2014-11-25 15:53:53 +00:00
2013-04-22 12:46:30 +01:00
2013-04-22 12:46:30 +01:00
2014-07-04 09:47:01 +01:00
2014-07-18 13:38:08 +01:00
2013-04-22 12:46:30 +01:00
2013-04-22 12:46:30 +01:00
2013-10-07 09:42:51 +02:00
2019-05-17 16:14:04 +01:00
2018-01-18 10:40:21 +00:00
2020-03-05 11:02:02 +01:00
2019-08-28 18:28:31 +01:00
2015-07-29 11:14:07 +01:00
2015-07-29 11:14:07 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:24:19 +00:00
2015-07-29 11:14:07 +01:00
2016-01-22 12:22:27 +00:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:23:30 +00:00
2017-01-18 09:55:49 +00:00
2015-07-29 11:14:07 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:24:03 +00:00
2021-03-19 13:41:20 +00:00
2018-07-05 15:25:20 +02:00
2015-03-05 16:27:49 +00:00
2016-01-22 12:24:03 +00:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2017-04-06 10:37:24 +01:00
2017-10-11 12:20:17 +01:00
2019-07-22 11:35:19 +02:00
2020-11-09 17:48:16 +00:00
2021-03-19 13:41:20 +00:00
2018-01-18 11:32:51 +00:00
2014-10-06 12:35:55 +02:00
2016-04-26 11:53:49 +02:00
2017-10-11 12:20:17 +01:00
2016-01-22 12:24:03 +00:00
2015-12-08 16:56:18 +00:00
2016-01-07 12:49:33 +00:00
2015-05-05 14:30:46 +01:00
2015-05-05 14:30:46 +01:00
2017-08-15 15:45:43 +01:00
2017-10-11 12:20:17 +01:00
2018-08-10 13:27:24 +01:00
2020-05-05 15:49:10 +01:00
2020-05-05 15:45:43 +01:00
2017-10-27 12:03:04 +01:00
2018-03-07 16:00:37 +00:00
2017-09-26 11:10:08 +01:00
2017-09-01 17:39:26 +01:00
2017-10-11 12:20:17 +01:00
2016-02-18 11:42:59 +00:00
2019-03-12 12:57:13 +00:00
2017-03-15 10:31:16 +00:00
2017-03-14 14:13:14 +00:00
2017-10-11 12:20:17 +01:00
2017-10-11 12:20:17 +01:00
2016-04-26 11:53:49 +02:00