Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp953555pxu; Fri, 4 Dec 2020 22:26:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwt5JKurNWPUKptZzP4d3IkFU5JlNw7+NjlIZ1ZbQclNC2lzgZY/uzCdRp2iktsgCeQSdej X-Received: by 2002:a50:c091:: with SMTP id k17mr10822407edf.137.1607149603370; Fri, 04 Dec 2020 22:26:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607149603; cv=none; d=google.com; s=arc-20160816; b=W1Jc7nGemKXvsjducSbMbGg2btU+kSK7Uqv4gQvbT7zZ8Npim8Tk7vB1IWYHoIAkuw MIlY3YM+Wt7RLOu6NHu5Z5WJUbRTPOq/1Bo1rluGJP/OSqUPBdBOuwd3wRv05T7DOeY5 RcMlJ/IYk7FWTEaclQvLw3a1WzFII8Zez6KkZOeXBH2Gneg4+dt/+kRWTJrDPw1f2yFg qha2gaqj34WjW4gzIdT7SWUt7BJtMgr8quEjYDMqTtVYV0N5DRqKPYyCJLgn0lK/3uRt XghpZdMxnXAfNIF+W8U51PMbsgQNJuVv1uS50rO8ojZq7jtK01/uEfUijGyOUP//dzJ8 FOZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=6t/1Fu2AKZXTIE2EGjhCdVY+KmJBJ0AxdCf1wwJtPzs=; b=HjkzuLo5nomKiWjptSLx2Qpne38GrjspCXBDzw8bH08yq+VtuS6XLty744VPWWCMI7 lugVqExLHeBWOE65eoQIyPoOMm2yIA5I2edbMURKWnY6Hkebx5Hm+ZWVuF+SeUQ04UXy J2m2miQiZTOtqKdcH/G8Uv1CynxYB40VnjdJ9uWPXqNShfAdUhQ6wWehW2exHfaY+NCY 9uhvXLngrFC6BhnuYUyY664McU3zJDFtVZIBoLHaBJS4UvNrMtMYrnqLtyxDtfNFLmxd 5De1OmPNnYtiEpqfJ+pi0fCdgglelFGDfWD/TUBAAokpryco1eb8pFZ7U6pQzmrUAsMd EOKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T4bFnift; 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 y24si4132592edl.364.2020.12.04.22.26.18; Fri, 04 Dec 2020 22:26:43 -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=@kernel.org header.s=k20201202 header.b=T4bFnift; 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 S1727977AbgLEGYt (ORCPT + 99 others); Sat, 5 Dec 2020 01:24:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:35532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726999AbgLEGYs (ORCPT ); Sat, 5 Dec 2020 01:24:48 -0500 Content-Type: text/plain; charset="utf-8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607149448; bh=r8vnqMmsHnbgwMXfSQZu84loY6DvrmHia8Sx1hc/RJQ=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=T4bFniftvCd2jeC6yESokQyOHoTMxC9vK6miqN2mi2XZsBNpieVpWrZWJ4/ROoVau zIweZB3ouv+2OYfFYhW50zG34k1z/GoAAlXVdYhFfPpHAER9uNSy+ACWR4QnDhGuRN uF3ewwCPsC0jNHoOsylZXbRo6pbi2K8WY92Dbcw+L49AQqk8J0jnR3fXB3D8pc9QKD HkId29E+OBrSUtnds5+Pr4+rygtaP4uF6TpHP1UUg/g/s/MIu62pjr25Y6h887D3mo 0ABFaab5sm2/qsL/H6aOQgE5NCXBPsqOngGLlOeALbEVA6UTuZ/AUtHNc8K05eNVem BV/WPUFP1yU7w== MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20201130085743.1656317-1-geert+renesas@glider.be> References: <20201130085743.1656317-1-geert+renesas@glider.be> Subject: Re: [PATCH v2] clk: renesas: r9a06g032: Drop __packed for portability From: Stephen Boyd Cc: Gareth Williams , linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven To: Benjamin Herrenschmidt , Geert Uytterhoeven , Michael Ellerman , Michael Turquette , Paul Mackerras , Stephen Rothwell Date: Fri, 04 Dec 2020 22:24:06 -0800 Message-ID: <160714944657.1580929.4595234852977229885@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Geert Uytterhoeven (2020-11-30 00:57:43) > 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 > --- Acked-by: Stephen Boyd Unless you want me to pick this up for clk-fixes?