Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1415862pxb; Fri, 6 Nov 2020 09:05:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwM/jJSKd2Okh7HL+n6JI+SaFerXHAv0ykhPOVr1OkzipKlN5AzuTOP+tt0cGW+uEVxQ4YO X-Received: by 2002:a17:906:814:: with SMTP id e20mr2918211ejd.514.1604682327172; Fri, 06 Nov 2020 09:05:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604682327; cv=none; d=google.com; s=arc-20160816; b=Rt4fO/cgVcTebhD5+BjoY6M+IlVqZd8ON9hi4U6IzV84xHkmodoVu+mQQzR/9732X4 jL7/qfzjh7IPttqxre1Dbmbq28i2l6hxIBKDORiDjXW14G4Y9PWE2xw0iZbttUJiInvc qVUYTfmv1zizJmvCLx6uP2OfIUb1pFkhQNtd1V/HFHZrRF6h0iI52zKWG2aCFeD7mOP0 QnCDW2ZJszHPWW6x90uK/RwD4zCrFazwXLPUDxsySmjxZXTYTmfi9LSfJaXbMnpO9g18 6YKoguqq/fiDM8WoNULk9uzxzdXU+sX9KvIGHS/9FAjRyAQFGAZJyrObrlgAi2aw7k8w BXWA== 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; bh=IxgRn+NDQHTCeHwfBgvEL75Ff6LWDGq3sU/W0ROdACs=; b=xWBNPlLA4xcI84XXNu2oZADaOT3ciE85lGMc2f97mOmpYWcMtN+1r0flL9WfEn7tbe v85TaU1oc03YAYJRSgzbz8H90M0ccc1qiMw7DAXUwBiKCVorYiV+466igXEh/HwCTcb/ kSytZA7/gb/EaFxtawLqCFIXze1eS97dhr+AvS0yKLyxGy1I9xjcLtsGG2AcGOAcb8rO QCjwAhjbrNmDJENR+a9sc/1Vyz/bkezUtXyod6ApANPxmO9Wu+39nakVS4hXsrx2t8cA M0CQFBwM8JIw2Fz5xLg/i45fTw4tE7tf3Z43G57/Sf8X/rTAxoqr95qk2sXdFgilMlzb I5CQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si1259315ejn.180.2020.11.06.09.05.03; Fri, 06 Nov 2020 09:05:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727569AbgKFRC1 (ORCPT + 99 others); Fri, 6 Nov 2020 12:02:27 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:45203 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726034AbgKFRC1 (ORCPT ); Fri, 6 Nov 2020 12:02:27 -0500 Received: by mail-lf1-f68.google.com with SMTP id z21so1595417lfe.12; Fri, 06 Nov 2020 09:02:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IxgRn+NDQHTCeHwfBgvEL75Ff6LWDGq3sU/W0ROdACs=; b=IAJ8iU1BvxrdM2I3e2LNcRjjFUrkrBxAwYcNiFTuBg/CYbdJfpufGOYzvgoXAaWD9z Dc6SI7wOPMOq7BoOZkBCxoysFFkdlXy+0Ab7Gr+w/sR2E2yM7ec8AyrcnGl9AEhg3MQ/ 05asFOY06KdF+NMAIGP5V0UJnKLOcLxXucJ3x2ao5EhYUbxEQk+84UhXUtaui9jzPDBx GEiZ4vmlmzExey3qgTXdUodCDUaMNR2LihtppR0gsOkyjL+EOwyPBhMNrj5gEJi795MQ ihLB42WEWaNgNXNpdMweqqR/o8LWTtZOFqWbznr2qRcGyoAFTd8V1GakpWOusG7UZzRz RTzw== X-Gm-Message-State: AOAM530aI9QXCkcga9Kg0kz8kY0EsPg9hhVk2aQjxUPFJLAjNrJ+JP8W OTra2+jfbXlSHJD3+iTpp5IRQOMjttOuqA== X-Received: by 2002:a05:6512:104e:: with SMTP id c14mr1305423lfb.345.1604682144693; Fri, 06 Nov 2020 09:02:24 -0800 (PST) Received: from xi.terra (c-beaee455.07-184-6d6c6d4.bbcust.telenor.se. [85.228.174.190]) by smtp.gmail.com with ESMTPSA id r23sm225149lfe.228.2020.11.06.09.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 09:02:23 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.93.0.4) (envelope-from ) id 1kb587-0000G4-23; Fri, 06 Nov 2020 18:02:27 +0100 Date: Fri, 6 Nov 2020 18:02:27 +0100 From: Johan Hovold To: Steven Rostedt Cc: Johan Hovold , Jessica Yu , linux-kernel@vger.kernel.org, Linus Torvalds , Rob Herring , Frank Rowand , Greg Kroah-Hartman , Nick Desaulniers , Arnd Bergmann , Geert Uytterhoeven , Dmitry Torokhov , David Miller , Jakub Jelinek , Peter Zijlstra , Thomas Gleixner , Daniel Kurtz , linux-arch@vger.kernel.org, linux-m68k@lists.linux-m68k.org Subject: Re: [PATCH 0/8] linker-section array fix and clean ups Message-ID: <20201106170227.GE4085@localhost> References: <20201103175711.10731-1-johan@kernel.org> <20201106160344.GA12184@linux-8ccs.fritz.box> <20201106164537.GD4085@localhost> <20201106115523.41f7e2ed@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201106115523.41f7e2ed@gandalf.local.home> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 06, 2020 at 11:55:23AM -0500, Steven Rostedt wrote: > On Fri, 6 Nov 2020 17:45:37 +0100 > Johan Hovold wrote: > > > It's simply specifying alignment when declaring the variable that > > prevents this optimisation. The relevant code is in the function > > align_variable() in [1] where DATA_ALIGNMENT() is never called in case > > an alignment has been specified (!DECL_USER_ALIGN(decl)). > > > > There's no mention in the documentation of this that I'm aware of, but > > this is the way the aligned attribute has worked since its introduction > > judging from the commit history. > > > > As mentioned above, we've been relying on this for kernel parameters and > > other structures since 2003-2004 so if it ever were to change we'd find > > out soon enough. > > > > It's about to be used for scheduler classes as well. [2] > > Is this something that gcc folks are aware of? Yes, we appear to be relying > on undocumented implementations, but that hasn't caused gcc to break the > kernel in the past. The scheduler change was suggested by Jakub so at least some of them are. Johan