Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6268760rwn; Tue, 13 Sep 2022 01:18:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR5lW4XIKleNt1MzaTMKhRQRBkNwKrfJ3ERTXm8UuaFSqGH37IRO03HdlG03fs5UeBUJRDyP X-Received: by 2002:a17:902:c104:b0:176:e2fa:2154 with SMTP id 4-20020a170902c10400b00176e2fa2154mr30850192pli.98.1663057117058; Tue, 13 Sep 2022 01:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663057117; cv=none; d=google.com; s=arc-20160816; b=Jm6U+dBotInrpPM7LtJMrvh6uFrbJ7lpjQDv8lTz3eZ6SINC2Q+Dg6fHMok4rfzRRm NoBOZ8Gy5V1RNPeLPg+iiwwlniu++wcnJ+6vyxhS9lbctkBCHoaBq7KdzrojfxMcaq8o tqAx0uZvGFXXDuJk4qK2p74ntJ5XdhfwurY73jNrVmy16hLqLmi4/TN7uQ6RqCR0loFZ mfZANt6SbvcytGhyoVzxru9bGi545/00IhN/siN4AiRZMyxXxzBZ8w+MbUdswllAZUGk cZn60YSOuPxFXD8dtghVOwW/6uRJms93Lkuw/29Ecmcp5UY7U34hXc/CuAjs1az897FB aArA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=G4K0VJQumircKHw/dO+AhQJVTW8SIk4Eb+pSObyC7wY=; b=Pd7FtMTykjXpKq8Ih8Jp40FiM1+yvsmZmJUeCxKWhvNDf3L0UU2vFNiJUn5i1/u5rB L+e8pULSXZj7vghKQjmJo9xPe6WQINXYrrNloPpoM6Y/O20bKt7iweso6bYU61U7LohK C/ANL+elp7TFfTwlbaNUVAb2v8fumTGqenpC5F/vy7f4IgVoBtFZ4NcvrRLDaJJIj6+x MFyunF8jBrps8oAwl2pgpKXCDgAD3VJtNGY+frr7ad+y47Z1vu+LPbzk3l9k7rsvW10G xVgA63qaNl5dYnWOFa0QfwMWoj2P6RHSffkkqSAcwlM9SpLHhKbu54yUIP0dhISpYJlK uHog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Xnxfubmh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 139-20020a621791000000b00538339a36fasi10780169pfx.138.2022.09.13.01.18.26; Tue, 13 Sep 2022 01:18:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Xnxfubmh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231346AbiIMIJT (ORCPT + 99 others); Tue, 13 Sep 2022 04:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbiIMIJS (ORCPT ); Tue, 13 Sep 2022 04:09:18 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104FD5A82F for ; Tue, 13 Sep 2022 01:09:16 -0700 (PDT) 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=G4K0VJQumircKHw/dO+AhQJVTW8SIk4Eb+pSObyC7wY=; b=XnxfubmhzAX1jY2QhYQzvcdOIW zuxHv1GLKIZ5jlrGE1O71Ynm6mJBQpfqL6A1ylMRcdVIttdQZnsa6iky4dn47YPf3KNiF6OX5nNf4 FlgKDZUtYYhwkCNdm1ncHs26r+47cN5nH571DhDPXzpRuA7pYBvfNDbL4LEx+ro0Z5pNLhdqSdook aB91qBKQd/bJsvzW1otIzEnoQkzT+Y9usqMA8uZFWk726R3Teu5LhXJWqq932W7zRkVK0/JiP+AqJ sU8lAPQwi4lyfvXQxxAVMKSSQeTmJhHfctxaiQaLwLmFEfKPKPi5KJtrX7GBXnZ9469B4nSTUFXOU Pyl+xAqQ==; 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.94.2 #2 (Red Hat Linux)) id 1oY0yF-00C1b8-Na; Tue, 13 Sep 2022 08:08:39 +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 296A230030F; Tue, 13 Sep 2022 10:08:36 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E0353206F9F7C; Tue, 13 Sep 2022 10:08:35 +0200 (CEST) Date: Tue, 13 Sep 2022 10:08:35 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org, Tim Chen , Josh Poimboeuf , Andrew Cooper , Pawan Gupta , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , Joao Moreira , Joseph Nuzman , Steven Rostedt , Juergen Gross , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann , K Prateek Nayak , Eric Dumazet Subject: Re: [PATCH v2 08/59] x86/build: Ensure proper function alignment Message-ID: References: <20220902130625.217071627@infradead.org> <20220902130947.190618587@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 12, 2022 at 09:44:05PM +0200, Peter Zijlstra wrote: > On Mon, Sep 12, 2022 at 10:09:38AM -0400, Linus Torvalds wrote: > > > The patch looks sane, the only thing I worry a bit about is > > > > > +config FUNCTION_ALIGNMENT > > > + int > > > + default 64 if FUNCTION_ALIGNMENT_64B > > .. > > > + default 0 > > > > Is '0' even a valid value then for things like > > At the time I thought to have read that 0 alignment effectively no-ops > the statement, but now I can't find it in a hurry, happy to make it > default to 4. Found it: https://sourceware.org/binutils/docs-2.39/as/Balign.html 7.8 .balign[wl] [abs-expr[, abs-expr[, abs-expr]]] Pad the location counter (in the current subsection) to a particular storage boundary. The first expression (which must be absolute) is the alignment request in bytes. ... If the expression is omitted then a default value of 0 is used, effectively disabling alignment requirements. (for some raisin google served me a very old binutils document last night that doesn't have mention the 0 thing)