aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Ryabinin <[email protected]>2018-10-26 15:02:27 -0700
committerLinus Torvalds <[email protected]>2018-10-26 16:25:18 -0700
commit74f213ea25b99fddcf34cbe07dabdb01136bcd86 (patch)
tree5de20b2babd391cc5c97830495800ae043ebfb7e
parent4d54954a197175c0dcb3c82af0c0740d0c5f827a (diff)
include/linux/linkage.h: align weak symbols
Since WEAK() supposed to be used instead of ENTRY() to define weak symbols, but unlike ENTRY() it doesn't have ALIGN directive. It seems there is no actual reason to not have, so let's add ALIGN to WEAK() too. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Andrey Ryabinin <[email protected]> Will Deacon <[email protected]>, Catalin Marinas <[email protected]> Cc: Kyeongdon Kim <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Mark Rutland <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--include/linux/linkage.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index d7618c41f74c..7c47b1a471d4 100644
--- a/include/linux/linkage.h
+++ b/include/linux/linkage.h
@@ -90,6 +90,7 @@
#ifndef WEAK
#define WEAK(name) \
.weak name ASM_NL \
+ ALIGN ASM_NL \
name:
#endif