diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-08-29 16:11:05 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-08-29 16:11:05 +0100 |
commit | 8565e53aba37c480486ba3b7ba6c00688d152360 (patch) | |
tree | 01f0cfa4d43f488b9d39a73077f192e7d952b3c0 /xen/include/xen/compat.h | |
parent | 65c1f4b9ec1a6023106d40505d42406f23ccf544 (diff) | |
download | xen-8565e53aba37c480486ba3b7ba6c00688d152360.tar.gz xen-8565e53aba37c480486ba3b7ba6c00688d152360.tar.bz2 xen-8565e53aba37c480486ba3b7ba6c00688d152360.zip |
x86: constify microcode hypercall argument
Linux 2.6.27 marks the data pointer in its firmware struct 'const',
and hence, to avoid a compiler warning, Xen's microcode update
interface should be properly properly constified too.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/compat.h')
-rw-r--r-- | xen/include/xen/compat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/include/xen/compat.h b/xen/include/xen/compat.h index a2a4d6c2dd..86395d134e 100644 --- a/xen/include/xen/compat.h +++ b/xen/include/xen/compat.h @@ -19,7 +19,9 @@ type *_[0] __attribute__((__packed__)); \ } __compat_handle_ ## name -#define DEFINE_COMPAT_HANDLE(name) __DEFINE_COMPAT_HANDLE(name, name) +#define DEFINE_COMPAT_HANDLE(name) \ + __DEFINE_COMPAT_HANDLE(name, name); \ + __DEFINE_COMPAT_HANDLE(const_ ## name, const name) #define COMPAT_HANDLE(name) __compat_handle_ ## name /* Is the compat handle a NULL reference? */ |