Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2726462pxu; Mon, 7 Dec 2020 14:03:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1tLri1Ha++RXYjRGZ9LfzWe6RK0MXetdDqlIkq94L3SsJ2CezRQ6RO5A+U3pRnKdNb5fn X-Received: by 2002:a17:906:2e82:: with SMTP id o2mr21265146eji.106.1607378633019; Mon, 07 Dec 2020 14:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607378633; cv=none; d=google.com; s=arc-20160816; b=rKlhn/l2ONtAw7dyXMQ47JVaKuWIuFACXpxyOq3oie2HN5hsgrzXZOJSUzI6j+A/+F /W4OW86StsJlb6bHjBmzOk6dvN+SuZtUg7iKZWZOKBWuMbDRQu7XBujtcEtWGnGcNnjm Bd0llE3LPEhZs33O1tdxfmiGH3nJ0WnyW3UAmFVGfwYNjyTi5Q6iAiMWSeM9wdBEYmuq AsLii6iEiQuxCxtgVjL5SLWH+SCRuEjOfmcfjzK1In9dc7CCuXTI1+MiUsOxsJpsdXww +wnrpYfBPDsH0v9xZygofCnZ88Qinjg+deG1CJP73HuFcK13imVQ8IxJpMf+3sO7tamT afyg== 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=3cdQnXX3a5ke3GYbLY4c+hmIoB0z4ItTUpmJufeFTDg=; b=ED5DvxVFcOwK8e2RBkcQOXvEbK30jyD2kgJa13AvEawegCPeRYOHULR4EgMyr6VhIK c0Jkm22pr+huo+1biOKRjWCs7jsk9BGoZDtN7Cq5ajMUQqF5bGm4/jgG80jTRJJq1iD6 w4OYuv2GJYP4qIV4E5V2pxpm66CPwqLPCZfE1Wfnaf4GMHoREMjtAKCv9kH7aAL35RZk ez9GWlIeBMO6dEkrhj3L44Z8lNJpU5JhL8YicAGqOhvrWVCLOr73QKzGv7a3OYeC3Sn6 aLZAk/nTxT46qmTT4rUJHQ2yD/70tH+sRGub3HuOsK6cWt7VUfFvk5yB/KvqTCLUJEAw Trhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KGof9gI3; 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 dc18si8713100edb.76.2020.12.07.14.03.29; Mon, 07 Dec 2020 14:03:53 -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=KGof9gI3; 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 S1727416AbgLGV7g (ORCPT + 99 others); Mon, 7 Dec 2020 16:59:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:49280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgLGV7f (ORCPT ); Mon, 7 Dec 2020 16:59:35 -0500 Content-Type: text/plain; charset="utf-8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1607378335; bh=Pi5GADo6j4UFpk7CEuwQxIw6GRAKpKOinEGB1LvlK40=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=KGof9gI3o9RpVbn/pS5WFPRGlaLFmaat4RM4BGFeRNLSHlKSSHteQphl4wn4+azfu KtERqlIJtZSCGenwUfPJkTcYW5ZJo6IBaJZoGiMapsW+KkrIKC2mdgS1XT7LAGDN0s X8oHcPnPLb5vpHTdUsEyhcggEGCUIH0+SovzMe+isE8PeJLcTrgfeCOnJsxYhGv0Ix YEYGj7ZZgjUm10GiavckoUcToMio2df5OtD8hXaMLZTbytitIOHIniT/e+vu/8vmsz c27HS+3Y2UafuVnMgDcRFeLt04g1LbIpjZPSRhAfHIcKz9QI8OZkV7qkZ2RodmdEyF MihTQOyjKVDdQ== 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: Mon, 07 Dec 2020 13:58:53 -0800 Message-ID: <160737833361.1580929.4851886406060076908@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 > --- Applied to clk-fixes