From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C997FC46467 for ; Tue, 10 Jan 2023 20:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jh2qBqB2sg9TjLGhaYtULu/iUiLdsi+fvhOfAziPxq8=; b=Gle8m7vt+cEZ98 bEfGLK9ahYkvEjcC/zo3CLDry6NC7i3Uk2A6V1fbdD8MiFbVm/FX6S9ld6TeRx5hdjIsgfXYPe6It KezBil14O9x6VRsH9pCVk4Y4L7gt6iVZCEega+jqefAEfTtn7SXcmL7u5Q4zRDGh44s8Z0VhOBBFn UKjzXDlFGXTlQyYIESvrm4PBX8z4yyWNGgCN267vAH9lUe2dUUgv7nEUUZIW4rK0X9AvQEBBth2mu sttx0Wv9Gudadsk0ururhrbnA9SfNaxLljXJOCaRTwtgXZKSQF+oDqXHV5dHjJubMNZhAFCT2xxSB KE0cha4nE3WU8vC2p/tQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFLLF-008USE-Ot; Tue, 10 Jan 2023 20:35:29 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFLLD-008URj-08 for linux-arm-kernel@bombadil.infradead.org; Tue, 10 Jan 2023 20:35:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=rcZ4SPFKYx+tqc2REErmG5c3gwzYReVP3gYzWilP+RU=; b=BCylYdxJPNoZITKoQl6b6S7eIE y52arEeOIcDrAX+2lFYuERUvbyzLduxy61mENUE3K8fiF6bHsTiP4i2UpwfkLpFEFtcC9gxO7XtM/ GuFdBgusmdVWfRsXnc1CFdgKwhVd7Mtf0UevkS8DpHeKRmq0qaio8/NfhJ+iX9nUZLrgcUGJ6QN5S 9C3ZeXYGqoIMLl5LQTOm6EYoHaPuMDle/wAksygQSdod+FeSUViDVH2TDG7g7ARo/dNWV08URgAIp Vx9Hwbt1mYhhk0wO7t32Rw6JRBEjfLkWYCeP35gHVUzgZAbU8IT10YrvePF6F6hJcjOoYcwwPgKio xOf1pK0w==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pFLKy-003Pwn-0g; Tue, 10 Jan 2023 20:35:13 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7FBBC300129; Tue, 10 Jan 2023 21:35:18 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3768E2C4CAB7F; Tue, 10 Jan 2023 21:35:18 +0100 (CET) Date: Tue, 10 Jan 2023 21:35:18 +0100 From: Peter Zijlstra To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, ndesaulniers@google.com, ojeda@kernel.org, rafael.j.wysocki@intel.com, revest@chromium.org, robert.moore@intel.com, rostedt@goodmis.org, will@kernel.org Subject: Re: [PATCH 3/8] arm64: Extend support for CONFIG_FUNCTION_ALIGNMENT Message-ID: References: <20230109135828.879136-1-mark.rutland@arm.com> <20230109135828.879136-4-mark.rutland@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230109135828.879136-4-mark.rutland@arm.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jan 09, 2023 at 01:58:23PM +0000, Mark Rutland wrote: > diff --git a/arch/arm64/include/asm/linkage.h b/arch/arm64/include/asm/linkage.h > index 1436fa1cde24d..df18a3446ce82 100644 > --- a/arch/arm64/include/asm/linkage.h > +++ b/arch/arm64/include/asm/linkage.h > @@ -5,8 +5,14 @@ > #include > #endif > > -#define __ALIGN .align 2 > -#define __ALIGN_STR ".align 2" > +#if CONFIG_FUNCTION_ALIGNMENT > 0 > +#define ARM64_FUNCTION_ALIGNMENT CONFIG_FUNCTION_ALIGNMENT > +#else > +#define ARM64_FUNCTION_ALIGNMENT 4 > +#endif > + > +#define __ALIGN .balign ARM64_FUNCTION_ALIGNMENT > +#define __ALIGN_STR ".balign " #ARM64_FUNCTION_ALIGNMENT Isn't that much the same as having ARM64 select FUNCTION_ALIGNMENT_4B and simply removing all these lines and relying on the default behaviour? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel