ppc*: -Wcast-qual clean-up.

ck_pring
Samy Al Bahra 10 years ago
parent a6ac5b81fb
commit ae3a579216

@ -82,16 +82,16 @@ CK_PR_FENCE(release, "lwsync")
#undef CK_PR_FENCE #undef CK_PR_FENCE
#define CK_PR_LOAD(S, M, T, C, I) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \ ck_pr_load_##S(const M *target) \
{ \ { \
T r; \ T r; \
__asm__ __volatile__(I "%U1%X1 %0, %1" \ __asm__ __volatile__(I "%U1%X1 %0, %1" \
: "=r" (r) \ : "=r" (r) \
: "m" (*(C *)target) \ : "m" (*(const C *)target) \
: "memory"); \ : "memory"); \
return (r); \ return (r); \
} }
CK_PR_LOAD(ptr, void, void *, uint32_t, "lwz") CK_PR_LOAD(ptr, void, void *, uint32_t, "lwz")

@ -85,16 +85,16 @@ CK_PR_FENCE(release, "lwsync")
#undef CK_PR_FENCE #undef CK_PR_FENCE
#define CK_PR_LOAD(S, M, T, C, I) \ #define CK_PR_LOAD(S, M, T, C, I) \
CK_CC_INLINE static T \ CK_CC_INLINE static T \
ck_pr_load_##S(const M *target) \ ck_pr_load_##S(const M *target) \
{ \ { \
T r; \ T r; \
__asm__ __volatile__(I "%U1%X1 %0, %1" \ __asm__ __volatile__(I "%U1%X1 %0, %1" \
: "=r" (r) \ : "=r" (r) \
: "m" (*(C *)target) \ : "m" (*(const C *)target) \
: "memory"); \ : "memory"); \
return (r); \ return (r); \
} }
CK_PR_LOAD(ptr, void, void *, uint64_t, "ld") CK_PR_LOAD(ptr, void, void *, uint64_t, "ld")

Loading…
Cancel
Save