From 9d59c3d004fe6e0c361dac76e15d67df94224b91 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 1 Mar 2015 13:46:25 -0500 Subject: [PATCH] x86: -Wcast-qual clean-up. --- include/gcc/x86/ck_pr.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/gcc/x86/ck_pr.h b/include/gcc/x86/ck_pr.h index 2ed3e38..30e2430 100644 --- a/include/gcc/x86/ck_pr.h +++ b/include/gcc/x86/ck_pr.h @@ -114,16 +114,16 @@ CK_PR_FAS_S(8, uint8_t, "xchgb") #undef CK_PR_FAS_S #undef CK_PR_FAS -#define CK_PR_LOAD(S, M, T, C, I) \ - CK_CC_INLINE static T \ - ck_pr_load_##S(const M *target) \ - { \ - T r; \ - __asm__ __volatile__(I " %1, %0" \ - : "=q" (r) \ - : "m" (*(C *)target) \ - : "memory"); \ - return (r); \ +#define CK_PR_LOAD(S, M, T, C, I) \ + CK_CC_INLINE static T \ + ck_pr_load_##S(const M *target) \ + { \ + T r; \ + __asm__ __volatile__(I " %1, %0" \ + : "=q" (r) \ + : "m" (*(const C *)target) \ + : "memory"); \ + return (r); \ } CK_PR_LOAD(ptr, void, void *, char, "movl")