Skip to content

Commit b21bae9

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes/cleanups from Catalin Marinas: "Some fixes that turned up during the merge window: - Add brackets to the io_stop_wc macro - Avoid -Warray-bounds warning with the LSE atomics inline asm - Apply __ro_after_init to memory_limit" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: mm: apply __ro_after_init to memory_limit arm64: atomics: lse: Dereference matching size asm-generic: Add missing brackets for io_stop_wc macro
2 parents 0854dc8 + bb425a7 commit b21bae9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

arch/arm64/include/asm/atomic_lse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ __lse__cmpxchg_case_##name##sz(volatile void *ptr, \
249249
" mov %" #w "[tmp], %" #w "[old]\n" \
250250
" cas" #mb #sfx "\t%" #w "[tmp], %" #w "[new], %[v]\n" \
251251
" mov %" #w "[ret], %" #w "[tmp]" \
252-
: [ret] "+r" (x0), [v] "+Q" (*(unsigned long *)ptr), \
252+
: [ret] "+r" (x0), [v] "+Q" (*(u##sz *)ptr), \
253253
[tmp] "=&r" (tmp) \
254254
: [old] "r" (x1), [new] "r" (x2) \
255255
: cl); \

arch/arm64/include/asm/cmpxchg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static inline void __cmpwait_case_##sz(volatile void *ptr, \
243243
" cbnz %" #w "[tmp], 1f\n" \
244244
" wfe\n" \
245245
"1:" \
246-
: [tmp] "=&r" (tmp), [v] "+Q" (*(unsigned long *)ptr) \
246+
: [tmp] "=&r" (tmp), [v] "+Q" (*(u##sz *)ptr) \
247247
: [val] "r" (val)); \
248248
}
249249

arch/arm64/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn)
172172
}
173173
EXPORT_SYMBOL(pfn_is_map_memory);
174174

175-
static phys_addr_t memory_limit = PHYS_ADDR_MAX;
175+
static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX;
176176

177177
/*
178178
* Limit the memory size that was specified via FDT.

include/asm-generic/barrier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ do { \
285285
* write-combining memory accesses before this macro with those after it.
286286
*/
287287
#ifndef io_stop_wc
288-
#define io_stop_wc do { } while (0)
288+
#define io_stop_wc() do { } while (0)
289289
#endif
290290

291291
#endif /* !__ASSEMBLY__ */

0 commit comments

Comments
 (0)