Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2456230rdb; Fri, 8 Dec 2023 08:36:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzx4lWHJLwbncYIbYDRCm6J1oVgrdB68UlQt7D3IVQiw/kSdLG2gN+aoP4urc2CcTFksdc X-Received: by 2002:a05:6a00:93aa:b0:6ce:60d7:2aa0 with SMTP id ka42-20020a056a0093aa00b006ce60d72aa0mr361809pfb.55.1702053379946; Fri, 08 Dec 2023 08:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702053379; cv=none; d=google.com; s=arc-20160816; b=JoJ1d5/YS2Xp+xDPBqS30NniyD6SAo+fHuWjMijTJJQHfMLHm3DYo3a4mu0DCNtHIs btDrzKTHbdwX+VB91UW6r8Umu33pV0O5UqeZeyaLQGlDYE3kUv4dUX6cECIsfJbKyONd /nqwyHwYw267CfwLnt3QL+lmot1ktYNSDqkGj4MaQ0pkbZSncECCEYjTL/va1JxH4Qoh 9FGW7IBqWjY+uZUaEC3nZfm9jVNeolIuk/6DXT2ev7rcGW979OmsqrpLyyWEuKbZFtNl XBBYvmhUlSPj51lfhyCJMlgRe1CbnIs6vj79DSGlalIVqtID/LKvHd5LIYBsfUYaVqjO 7w3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WzXQMQ7nPq1u9q/+8LcMKYnlWNkA5UBzyX2qGSQYOeE=; fh=hPWrg32dlFKNN5MdTsgIUJTVaEJ0Jhxi8OfbSIPXQ0A=; b=YK7TGQHNBReyi26WHI7e33+HTu+t4qgJiK3t75UpYrKPxAhkT6znYAJYnsUmFc/LbE xRHASa7Pb952Dx2gG79Z6WCZL7ykoGO2eBzoDv9jkPnnnxj9QlE0uFSUY6bjB1pFTLTR meAtkRh94AjgvoQ9XxwrpNW5kyfMBeUwaZqvAce0TopBPJrc937jVXtfWuSmAIk0ivpu 322+pLbGOQxLYlCHtmS96a3rcoEfWvGXMcENKLMrWpkS027YrMSuQeliURcanFMYCnNS SOX8x83hSTiCjwj/y+ioQ3LvH0xcDcIIWfj8nX16i7n+OSMmOat433+MBcbMC9yuXnO+ x4wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KmthFkp9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e6-20020a654786000000b005c663eae379si1711498pgs.269.2023.12.08.08.36.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 08:36:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KmthFkp9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id B285D809BE64; Fri, 8 Dec 2023 08:35:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574274AbjLHQf0 (ORCPT + 99 others); Fri, 8 Dec 2023 11:35:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574298AbjLHQfL (ORCPT ); Fri, 8 Dec 2023 11:35:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F169519A9 for ; Fri, 8 Dec 2023 08:35:17 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 144D9C433B6; Fri, 8 Dec 2023 16:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702053317; bh=l/ccn9TohWmVu0gidxLaFZAXe873u+W72QG48wg65qk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KmthFkp9R6S/S5QKzNeYjmgaMpiidbj1m4cc2zhTtKl9OKSy2IzILLGw4PS0qs3VM Hh1heFlMbk9aE/p7RBhwLjnswCE20sB/esq/CO5GoY2rktts5wrkXxi6aHYiCfBRq7 XgjhbwiQXDa+9B2X5cePCKwa6R+ED0TZv6+eghgsMEYO2vhqjU8OtofeTWVZmo0N/u RcF5U3Rm/tOZYbODaFJNlgpCv5VWA8Afh+n+MhcgtQiy7TsGZGRJV1CrT1EDsTBqcx 1yibxRHME3rt9nAgj5bWwwmxecDUzmirP2JGnoaWXn4gfsho0Ws6VszDbfdaPo5/6D x8AlUT9JYDW2Q== From: Naveen N Rao To: , Cc: Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , Steven Rostedt , Mark Rutland , Florent Revest , Masami Hiramatsu Subject: [RFC PATCH 4/9] powerpc/Kconfig: Select FUNCTION_ALIGNMENT_4B Date: Fri, 8 Dec 2023 22:00:43 +0530 Message-ID: <21892186ec44abe24df0daf64f577dac0e78783f.1702045299.git.naveen@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 08:35:51 -0800 (PST) From: Sathvika Vasireddy Commit d49a0626216b95 ("arch: Introduce CONFIG_FUNCTION_ALIGNMENT") introduced a generic function-alignment infrastructure. Move to using FUNCTION_ALIGNMENT_4B on powerpc, to use the same alignment as that of the existing _GLOBAL macro. Signed-off-by: Sathvika Vasireddy --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/linkage.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 6f105ee4f3cf..318e5c1b7454 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -189,6 +189,7 @@ config PPC select EDAC_ATOMIC_SCRUB select EDAC_SUPPORT select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if ARCH_USING_PATCHABLE_FUNCTION_ENTRY + select FUNCTION_ALIGNMENT_4B select GENERIC_ATOMIC64 if PPC32 select GENERIC_CLOCKEVENTS_BROADCAST if SMP select GENERIC_CMOS_UPDATE diff --git a/arch/powerpc/include/asm/linkage.h b/arch/powerpc/include/asm/linkage.h index b88d1d2cf304..b71b9582e754 100644 --- a/arch/powerpc/include/asm/linkage.h +++ b/arch/powerpc/include/asm/linkage.h @@ -4,9 +4,6 @@ #include -#define __ALIGN .align 2 -#define __ALIGN_STR ".align 2" - #ifdef CONFIG_PPC64_ELF_ABI_V1 #define cond_syscall(x) \ asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \ -- 2.43.0