From a8cc095e0dea058815da3338dad925a1cd29baf9 Mon Sep 17 00:00:00 2001 From: Andrey Ryabinin Date: Thu, 14 Feb 2019 11:08:55 +0800 Subject: [PATCH] include/linux/linkage.h: align weak symbols mainline inclusion from mainline-4.20 commit 74f213ea25b category: bugfix bugzilla: 5689 CVE: NA ------------------------------------------------- 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/20180920135631.23833-1-aryabinin@virtuozzo.com Signed-off-by: Andrey Ryabinin Will Deacon , Catalin Marinas Cc: Kyeongdon Kim Cc: Ard Biesheuvel Cc: Alexander Potapenko Cc: Dmitry Vyukov Cc: Mark Rutland Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds (cherry picked from commit 74f213ea25b99fddcf34cbe07dabdb01136bcd86) Signed-off-by: Xie XiuQi Reviewed-by: Cheng Jian Signed-off-by: Yang Yingliang --- include/linux/linkage.h | 1 + 1 file changed, 1 insertion(+) 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 -- GitLab