Messages in this thread Patch in this message | | | From | Will Deacon <> | Subject | [PATCH 02/13] READ_ONCE: Undefine internal __READ_ONCE_SIZE macro after use | Date | Fri, 8 Nov 2019 17:01:09 +0000 |
| |
The '__READ_ONCE_SIZE()' macro is only used as part of building 'READ_ONCE()', so undefine it once we don't need it anymore.
Signed-off-by: Will Deacon <will@kernel.org> --- include/asm-generic/rwonce.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/asm-generic/rwonce.h b/include/asm-generic/rwonce.h index d189455ae038..abf326634ecd 100644 --- a/include/asm-generic/rwonce.h +++ b/include/asm-generic/rwonce.h @@ -59,6 +59,8 @@ void __read_once_size_nocheck(const volatile void *p, void *res, int size) __READ_ONCE_SIZE; } +#undef __READ_ONCE_SIZE + static __always_inline void __write_once_size(volatile void *p, void *res, int size) { switch (size) { -- 2.24.0.rc1.363.gb1bccd3e3d-goog
| |