Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp41995pxx; Wed, 28 Oct 2020 17:34:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxajeHUPLLsYkKj8mah3yEu016i2h9rg210S+PUXxmgYftcy63EiYhSMJqUytp/sN3ifflt X-Received: by 2002:a17:906:a996:: with SMTP id jr22mr1654941ejb.463.1603931645052; Wed, 28 Oct 2020 17:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603931645; cv=none; d=google.com; s=arc-20160816; b=t7Z67RprtLPhb8tCPmMRrAx04wMx8r8ehze2UZFl17u0Ihuiri/Rsvk/BHHm+KwmYD wrNeWyOi+wN/I6CKQdqA7bcV3MXYePEAcRFyAm8TYyjnSgqIC4gmK+RZLqJcV7jGgOC3 oISONG+l0QgrYODICBEaT5Y7k29EF1GOEhYkYOoDlXM+q6uUikWrHp9Yv2NUHg+aJ/mb SSiafWR4aI1eqKRgWxeMnPZfG8vxbK9QX67tr6uAa63X2AEUz5zqa9Xu5XPBcuCOrtJo Hi5T76aH2f6iJLnAvGM1DR0JsQjD4KcxOeJmUuro9+AzVSAPd6wQjj9Sb4ZfPtv9giqP gPUg== 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 :message-id:date:subject:cc:to:from; bh=IUw2rDe82Y0TAneti1lfx3fVjFBvh0d8EMjQWiGI0wI=; b=KedxtdSPtjZ5BTkkAOlxgv0IDmO0ayu094Uv3bOr/VF3VmZM/O4W3ZJIlT8mgxn7j9 7wgCWI2QbZib+nSipq57CFQS0pIZLK1Mc+KdmoFWpkef313vufzk5MAxNyZqHM4quf9m g8uuxzWD35LljVecMk+LXHaB1276ofcIUIk0oT124b/VB5bmdr6rqf6Zrq9WeCUM6ZFV cYKbwQAtpC8cNaWmilg1dQ7TI3FOXioqllru8jfdKS/F+ddzl1oeBZ4y9Zj+5dvu+pnA kN1atlW6FEElyTfu8ObJBOzQ8F26rvoywb+ClK6o8YHZuziokAO1m7XvcOyNbdgY/ipZ k7eA== 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 mc11si238035ejb.154.2020.10.28.17.33.43; Wed, 28 Oct 2020 17:34: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 S1729213AbgJ1WAa (ORCPT + 99 others); Wed, 28 Oct 2020 18:00:30 -0400 Received: from newton.telenet-ops.be ([195.130.132.45]:40810 "EHLO newton.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729427AbgJ1WAY (ORCPT ); Wed, 28 Oct 2020 18:00:24 -0400 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by newton.telenet-ops.be (Postfix) with ESMTPS id 4CLs2z06j2zMtwJP for ; Wed, 28 Oct 2020 15:51:23 +0100 (CET) Received: from ramsan.of.borg ([84.195.186.194]) by baptiste.telenet-ops.be with bizsmtp id lSrN2300Q4C55Sk01SrNpH; Wed, 28 Oct 2020 15:51:22 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kXmnK-000oxl-8Y; Wed, 28 Oct 2020 15:51:22 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1kXmnJ-007GYF-Je; Wed, 28 Oct 2020 15:51:21 +0100 From: Geert Uytterhoeven To: Linus Walleij Cc: Heiko Stuebner , linux-gpio@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] pinctrl: Remove hole in pinctrl_gpio_range Date: Wed, 28 Oct 2020 15:51:17 +0100 Message-Id: <20201028145117.1731876-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 64-bit platforms, pointer size and alignment are 64-bit, hence two 4-byte holes are present before the pins and gc members of the pinctrl_gpio_range structure. Get rid of these holes by moving the pins pointer. This reduces kernel size of an arm64 Rockchip kernel by ca. 512 bytes. Signed-off-by: Geert Uytterhoeven --- Compile-tested only (arm/multi_v7_defconfig and arm64/defconfig). --- include/linux/pinctrl/pinctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h index 2aef59df93d70550..70b45d28e7a9293b 100644 --- a/include/linux/pinctrl/pinctrl.h +++ b/include/linux/pinctrl/pinctrl.h @@ -51,8 +51,8 @@ struct pinctrl_pin_desc { * @id: an ID number for the chip in this range * @base: base offset of the GPIO range * @pin_base: base pin number of the GPIO range if pins == NULL - * @pins: enumeration of pins in GPIO range or NULL * @npins: number of pins in the GPIO range, including the base number + * @pins: enumeration of pins in GPIO range or NULL * @gc: an optional pointer to a gpio_chip */ struct pinctrl_gpio_range { @@ -61,8 +61,8 @@ struct pinctrl_gpio_range { unsigned int id; unsigned int base; unsigned int pin_base; - unsigned const *pins; unsigned int npins; + unsigned const *pins; struct gpio_chip *gc; }; -- 2.25.1