Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2525760pxj; Sun, 6 Jun 2021 05:17:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhEjmNJnIOzJHqp+Re0stXpsT3F+/f8mBuq9DgHvnNf6uKNU5MkQ04Up+uR8GfdnhsCS6l X-Received: by 2002:a17:907:7808:: with SMTP id la8mr11221039ejc.13.1622981825347; Sun, 06 Jun 2021 05:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622981825; cv=none; d=google.com; s=arc-20160816; b=ukYNwoUH4MMeEnJlSlKv5DuyFG0N6zt7exO8RGVGzFZYgcXXWa3ee+fzaFWobn8mXr x6KlgtKU06IM0iNLSWaZ0dvUou23kAc+wkUCN2/gwJHmx+tAN4H6n2WU3hCHeYbxUzTp /v4vCXwxGLbHI+lenul9PWmWQUQ3x2WBXwWSM+rqtHyP7lGeIDK2Wtpcu0DzbEatYj/0 uzWaR5CPefgkqeYBhBUwTInV+ULskZQz6ugySePHR8mM8RE4pEqJDiNafuJ/cH6aidnI xq+/z3auXOENNSUm1t6Ns7SNDwRY2m22KQm5fH7puD+jnH6ULS1GdURvjslo5PILsxyZ Pezw== 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:date :message-id:subject:references:in-reply-to:cc:to:from; bh=O9+jeOQVGxYu3badsbsQZSK117P9JYDgvtpT55s2xiM=; b=fjTHIqlGJpKI1QQKypkVuUfhfxMEgl3t+LwqNNc47aWmPDId1AysK44OonAPTaELKH YM9B0lK4p19xIVmhJzUx8DIdhtcYBZHS52zhKITXuYQktb5fK1lkqg7fxosatPeAi6HT H7T7fWBUTxZVKM7DNqfEbGjk7Wrqu+bsCwUN97NSA213ptgDqEsRoR1LT8xDNwDJYFpb QUw4BkKY4bD6UDiDT5iORr6nG3R7fJ7/aH0gRNYhyYvz8FRlKZIs2p3fjOGFxu7lfYp+ EG2LnEM0lWzQYk9mVfkO1vVEKJPCnZQ8hZuJSevn4vePbdM9VUFgqYCZB23Uv0Pr4UhU HL6A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si9913821ejq.311.2021.06.06.05.16.42; Sun, 06 Jun 2021 05:17:05 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbhFFMOc (ORCPT + 99 others); Sun, 6 Jun 2021 08:14:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbhFFMOB (ORCPT ); Sun, 6 Jun 2021 08:14:01 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C223EC061766 for ; Sun, 6 Jun 2021 05:12:11 -0700 (PDT) Received: by ozlabs.org (Postfix, from userid 1034) id 4Fyb3F74gCz9sXb; Sun, 6 Jun 2021 22:12:09 +1000 (AEST) From: Michael Ellerman To: Benjamin Herrenschmidt , Christophe Leroy , Michael Ellerman , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH] powerpc: Only pad struct pt_regs when needed Message-Id: <162298131711.2353459.17978709783123896091.b4-ty@ellerman.id.au> Date: Sun, 06 Jun 2021 22:08:37 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 May 2021 13:30:51 +0000 (UTC), Christophe Leroy wrote: > If neither KUAP nor PPC64 is selected, there is nothing in the second > union of struct pt_regs, so the alignment padding is waste of memory. Applied to powerpc/next. [1/1] powerpc: Only pad struct pt_regs when needed https://git.kernel.org/powerpc/c/b09049c516af90d4b6643b5d0d2549cd01539086 cheers