Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4122711pxu; Mon, 30 Nov 2020 18:37:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIYRVoiBp8l2OHEtBJoeyQAmSybHsh7D6GcJFC0L8Mgs4sp4VC46BiIVUE66Cs/CsxlKwE X-Received: by 2002:a05:6402:1153:: with SMTP id g19mr877146edw.312.1606790241654; Mon, 30 Nov 2020 18:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606790241; cv=none; d=google.com; s=arc-20160816; b=zCZ3H9x0jcDQsNunhNo4xS4/cNeeL6QhnOLUkDswnNx0D8F507dPE5kolGoGyWoyu3 CHFc9ccTTfs6A/Lwk8gAmwY/44Etra2Jo/Hikd7wbey52fYj6mOV6oQ7DBVsyau0Hhj0 NkB+CdViRgLzxL1bgiLEtsrTGLAPq2q1swljaH5wxO3Vck5cRdC7rbxHM9ofCH1rKgUe iLTymzh4c47SXwkZ3CWfcNq397TYsrKI5bLEz+bn7JPMyJBu0DjD4flb0lrytHP1m9Ud g2hh3efVHXMJeAw9H/P8SBFAnVHYQIPR5/6od6mCy4RRKjNLyO8B6TPbcuiSpIMHXawp /mdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=erX0Hf9jnfXlKk83fOQ03DlA+BiZV/ceV/RiL8I6ZoQ=; b=WApPcveOUi4jMk5mz99lJL0cfihDXb0Azaf/Xud802d86krLmiSuIghMQUSDg/OmmT mQxbkUzMJ0wgUatarOqukEAjS0Kt1L6xHC0VJeL7e5u+muOPXyplozsQeQwgCROHFwFv qQFSBVpxe6+Z5lYUrCxnD84FShQAarMKzz+CHC9hgeEqO/leVOKRBOvR7FeCC39J7MFP GQYY4saXA/ewD44yls1Ey+R4PwijzRBI8wD+7rKN1nTAgdeFBmj/BGt6gh0tJUZTQ9lv V+57JW/NWGxnaBDbSwh7MvDvxMFW7T1IJlh03nvuHEBKnd8gd49V4jKv3en0SnEo7hHZ 9tqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=eMjMdoHg; 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 v5si242074edj.313.2020.11.30.18.36.59; Mon, 30 Nov 2020 18:37:21 -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; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=eMjMdoHg; 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 S1730308AbgK3V61 (ORCPT + 99 others); Mon, 30 Nov 2020 16:58:27 -0500 Received: from ozlabs.org ([203.11.71.1]:34005 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgK3V60 (ORCPT ); Mon, 30 Nov 2020 16:58:26 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4ClJxg2YMkz9sRK; Tue, 1 Dec 2020 08:57:42 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1606773465; bh=nqVDwgyOEZiLm2s85MNpU0RJnN+/CWkXa1ePB8H74O0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eMjMdoHg1nj3aaR/ihevGuljfQKC+8k6BgWcY1goCbVsxBU0fJLF6W28Yyw2Miqnx rE1s2cl00rCqtgbN0YwiOyZspQBteiX7ySTPs1JXQBndGt6HzXMEoTdgyQtSmOyqFJ 56Y/AshGjcuPsexS1vUPumZj6YvOjdB6mOqqXF9/0WDPfWDU3peL+IJ8P3gN5dro/9 x4luHkQy3MSzkcfysb/+XYsKgSuz8wEUhwpNmuCesaRULVrwxkEmQsiIP5v6AxlD4E 2RP4pweF2PjCnzlK/c4P0EbyhCzGxlb/6eCi4YpSHqdmviDAJPj0OUPXHHnFMGUYj5 XgG2n1VE9BzaA== Date: Tue, 1 Dec 2020 08:57:41 +1100 From: Stephen Rothwell To: Geert Uytterhoeven Cc: Michael Turquette , Stephen Boyd , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Gareth Williams , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] clk: renesas: r9a06g032: Drop __packed for portability Message-ID: <20201201085741.670f30d4@canb.auug.org.au> In-Reply-To: <20201130085743.1656317-1-geert+renesas@glider.be> References: <20201130085743.1656317-1-geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/8CcZFUCd6vvSy81ZVtgxF0K"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/8CcZFUCd6vvSy81ZVtgxF0K Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Geert, On Mon, 30 Nov 2020 09:57:43 +0100 Geert Uytterhoeven wrote: > > The R9A06G032 clock driver uses an array of packed structures to reduce > kernel size. However, this array contains pointers, which are no longer > aligned naturally, and cannot be relocated on PPC64. Hence when > compile-testing this driver on PPC64 with CONFIG_RELOCATABLE=3Dy (e.g. > PowerPC allyesconfig), the following warnings are produced: >=20 > WARNING: 136 bad relocations > c000000000616be3 R_PPC64_UADDR64 .rodata+0x00000000000cf338 > c000000000616bfe R_PPC64_UADDR64 .rodata+0x00000000000cf370 > ... >=20 > Fix this by dropping the __packed attribute from the r9a06g032_clkdesc > definition, trading a small size increase for portability. >=20 > This increases the 156-entry clock table by 1 byte per entry, but due to > the compiler generating more efficient code for unpacked accesses, the > net size increase is only 76 bytes (gcc 9.3.0 on arm32). >=20 > Reported-by: Stephen Rothwell > Fixes: 4c3d88526eba2143 ("clk: renesas: Renesas R9A06G032 clock driver") > Signed-off-by: Geert Uytterhoeven > --- > v2: > - Fix authorship. > --- > drivers/clk/renesas/r9a06g032-clocks.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks. I have added that to my fixes tree until it gets picked up elsewhere. --=20 Cheers, Stephen Rothwell --Sig_/8CcZFUCd6vvSy81ZVtgxF0K Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl/FatUACgkQAVBC80lX 0Gwj4Qf7Bge2IGl5zmxh8L/d6Cxz8V2fApcuHXyQ2TF3PeQMWrF/07x4CKb6Ulka /l8LefVGxKMNJePlyDad7ZI2j893BnUiNbZIf78vbYdCvYMze/dZy7DJHPEjnYQI x90IS+NUTSWXI6HHZ2qDCZoCh+wrAXnKV29Gbi2tywb+F4eV9M7eu1s/XJHm80P1 zHjiAClpipnbzl4O7LhOeKEkLfDFkv+6JX788FM5oYOoXXl7JKa2Cxw0DoUVSskN aXldweVNdjdlJWfQoDZ59So/HhcfS++W+6rrunrS+8nSCLQuK6rpop+hZzOvaaEB rxTngm9SqYXsCwnO0hq4Slv7Y4IkbQ== =/Pyh -----END PGP SIGNATURE----- --Sig_/8CcZFUCd6vvSy81ZVtgxF0K--